• Resolved bluantinoo

    (@bluantinoo)


    Not a big problem, but this notice adds up lines to debug log at every page load, eventually log file becomes heavy.

    this is the complete message:

    PHP Notice: A non well formed numeric value encountered in /public_html/wp-content/plugins/woocommerce-abandoned-cart/woocommerce-ac.php on line 1280

    Thanks for fixing it.

    • This topic was modified 7 years, 2 months ago by bluantinoo.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi,

    Thank you for sharing with us the error message and for pointing out the issue.

    I will fix the issue in our next plugin update. Once we will release the plugin with the fix, I will let you know.

    If you do not comfortable till next plugin update then can you please provide us your email address? So I can share with you modify plugin file with the fix.

    Regards,
    Chetna Bhutka

    Thread Starter bluantinoo

    (@bluantinoo)

    Hi Chetna,
    I’ve just changed the affected line from this:

    $cart_cut_off_time = $cut_off_time * 60;

    to this:

    $cart_cut_off_time = intval($cut_off_time) * 60;

    the error is gone away

    Thread Starter bluantinoo

    (@bluantinoo)

    Ops,
    i just found other similar notices:

    woocommerce-abandoned-cart/includes/wcal-common.php on line 10

    woocommerce-abandoned-cart/includes/classes/class-wcal-abandoned-orders-table.php on line 293

    I solved in the same way.

    Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi,

    Thank you for pointing out the issue of our plugin.

    We will fix this issue in our next plugin update.

    Let me know if you have any question with our plugin.

    Regards,
    Chetna Bhutka

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Notice: A non well formed numeric value’ is closed to new replies.