• Resolved sjallen

    (@sjallen)


    
    Flexible Shipping plugin version: 4.11.3
    Current plugin: WooCommerce (version 6.3.0)
    PHP version 7.4.25
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 372 of the file /www/user/public/web/app/plugins/woocommerce/includes/class-wc-session-handler.php. Error message: Uncaught Error: Call to undefined function wc_empty_cart() in /www/user/public/web/app/plugins/woocommerce/includes/class-wc-session-handler.php:372
    Stack trace:
    #0 /www/user/public/web/app/plugins/woocommerce/includes/class-wc-session-handler.php(363): WC_Session_Handler->forget_session()
    #1 /www/user/public/web/app/plugins/woocommerce/includes/class-wc-session-handler.php(99): WC_Session_Handler->destroy_session()
    #2 /www/user/public/web/app/plugins/woocommerce/includes/class-wc-session-handler.php(71): WC_Session_Handler->init_session_cookie()
    #3 /www/user/public/web/app/plugins/woocommerce/includes/class-woocommerce.php(825): WC_Session_Handler->init()
    #4 /www/user/public/web/app/plugins/woocommerce-dpd-uk/classes/class-woocommerce-dpd-uk.php(81): WooCommerce->initialize_session()
    #5 /www/user/public/web/wp/wp-includes/class-wp-hook.php(307): WPDesk_WooCommerce_DPD_UK->init_services_verifier('')

    The problem is that we are unaware of what action triggers the error (we couldn’t recreate the error ourselves).

    Could you support me with the error, please?

    Regards,
    Sadie

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support WojtekPS

    (@wojtekpyrgies)

    Hi @sjallen,
    Thank you for pointing that error out. I have passed the details to our developers for further investigation and we will get back to you as soon as possible.

    Let me know if you have any other questions?

    Kind regards,

    Plugin Support lusp

    (@lusp)

    Hi @sjallen,

    The error you have pasted was triggered by the DPD UK plugin you are using alongside with Flexible Shipping. We have just released the DPD UK 1.10.3 update containing the proper fixes. Please do the update and the problem should not occur anymore.

    Kind regards,
    Luke

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.