• When customers add products to their cart they are getting this error. I have latest version of everything (WC, WP and this plugin)

    public_html/wp-content/plugins/woocommerce/includes/wc-notice-functions.php line 137

    When I disable this plugin, the error goes away

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author James Golovich

    (@jamesgol)

    Can you check your webserver logs to see if there is a full stack trace to see where it is being called from?

    Is there more to the error message than just the file and line number?

    Thread Starter handmadesupplies

    (@handmadesupplies)

    Sorry I didnt realise I cut some off.
    The full error is

    [19-Oct-2017 08:33:16 UTC] PHP Warning: array_filter() expects parameter 1 to be array, null given in /home/handmad6/public_html/wp-content/plugins/woocommerce/includes/wc-notice-functions.php on line 137

    This is all that shows in the log also.

    Plugin Author James Golovich

    (@jamesgol)

    This is an interesting one because there’s almost nothing this plugin can do to cause that error. We do add and occasionally delete WooCommerce notices but not in a way that should be leaving it in that state.

    Do you have other WooCommerce related plugins installed that could be interacting with the notices in a way that only causes the issue to come out?

    I would recommend clearing all the WooCommerce sessions and seeing if that solves the issue. The notices are saved per session/user.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error when adding products to cart’ is closed to new replies.