• Hello, We are getting this error

    PHP Fatal error:  Uncaught Error: Call to undefined function wc_empty_cart() in /home/customer/www/websiteURL.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-session-handler.php:372
    Stack trace:
    #0 /home/customer/www/websiteURL.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-session-handler.php(363): WC_Session_Handler->forget_session()
    #1 /home/customer/www/websiteURL.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-session-handler.php(99): WC_Session_Handler->destroy_session()
    #2 /home/customer/www/websiteURL.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-session-handler.php(71): WC_Session_Handler->init_session_cookie()
    #3 /home/customer/www/websiteURL.com/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(861): WC_Session_Handler->init()
    #4 /home/customer/www/websiteURL.com/public_html/wp-content/plugins/paypal-for-woocommerce/angelleye-includes/angelleye-session-functions.php(37): WooCommerce->ini in /home/customer/www/websiteURL.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-session-handler.php on line 372
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @monzu02

    I understand that you are getting a PHP error.

    This kind of problem is usually caused by a conflict with your theme or with another plugin.
    ?
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Hope this helps!

    Roxy

    (@roxannestoltz)

    Hi @monzu02 ,

    Just to add to what Daniel has suggested:

    home/customer/www/websiteURL.com/public_html/wp-content/plugins/paypal-for-woocommerce/angelleye-includes/angelleye-session-functions.php(37): WooCommerce

    According to your stack trace, it appears that the Paypal for WooCommerce: by angelleye is causing errors.

    Please could you temporarily disable this specific plugin and check to see if the issue is still present?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function wc_empty_cart()’ is closed to new replies.