Support » Plugin: WooCommerce Cart Abandonment Recovery » Intermittent error with cart

  • Resolved Arnan de Gans

    (@adegans)


    Since your update from a few days ago I intermittently see this error:

    [15-Oct-2019 06:24:50 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_cart_subtotal() on null in /home/ajdgso5/public_html/wp-content/themes/storefront/inc/woocommerce/storefront-woocommerce-template-functions.php:77
    Stack trace:
    #0 /home/ajdgso5/public_html/wp-content/themes/storefront/inc/woocommerce/storefront-woocommerce-template-functions.php(120): storefront_cart_link()
    #1 /home/ajdgso5/public_html/wp-includes/class-wp-hook.php(286): storefront_header_cart('')
    #2 /home/ajdgso5/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #3 /home/ajdgso5/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #4 /home/ajdgso5/public_html/wp-content/themes/ajdgsolutions/header.php(48): do_action('storefront_head...')
    #5 /home/ajdgso5/public_html/wp-includes/template.php(722): require_once('/home/ajdgso5/p...')
    #6 /home/ajdgso5/public_html/wp-includes/template.php(671): load_template('/home/ajdgso5/p...', true)
    #7 /home/ajdgso5/public_html/wp-includes/general-template.php(41): locate_template(Arr in /home/ajdgso5/public_html/wp-content/themes/storefront/inc/woocommerce/storefront-woocommerce-template-functions.php on line 77

    I’ve been in a chat with WooCommerce support and we sort of concluded that it’s not a WooCommerce or Storefront error. Since you were the only other recent update, logically it’s related to your update somehow. Though, reading the error suggests it’s a theme thing…

    Thoughts?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author CartFlows Team

    (@cartflows)

    Hello @adegans,

    We tried to reproduce this issue, but we unable to reproduce it.
    
    Can you please try checking if the error persists if you temporarily switch to another theme?
    
    Deactivate all plugins temporarily and see if that solves the error. Then, activate plugins one by one to see which plugin is causing the problem.
    
    Please let me know how that goes.

    Thank You!

    It’s a production site, and the error happens intermittently. I can’t just switch plugins or themes. I can’t reproduce the issue either, but it keeps popping up in my error_log a few times per day.

    Looking again at the code I’m not so convinced it’s a issue with your plugin. But if you have ideas… I’m all ears.

    Further digging – I found an older log from May on a test server that has the error as well. I didn’t use your plugin in may (only since July).

    So that sort of confirms the issue is elsewhere…

    Plugin Author CartFlows Team

    (@cartflows)

    Hello @adegans,

    Never Mind.

    If you need anything else, please open a support ticket here.

    We are happy to help you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.