get_cart_contents_count() on null Uncaught PHP Error
-
Hello! I’m dealing with a recurring PHP error in my debug log- a PHP Fatal error that’s coming from side-cart-woocommerce (running side-cart 2.1 on PHP 7.4)
Below is an example error pull and the stack trace.
[09-Apr-2022 19:36:02 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_cart_contents_count() on null in /nas/content/live/sharedhopesite/wp-content/plugins/side-cart-woocommerce/public/partials/xoo-wsc-markup.php:58
Stack trace:
#0 /nas/content/live/sharedhopesite/wp-content/plugins/side-cart-woocommerce/public/class-xoo-wsc-cart-data.php(37): require_once()
#1 /nas/content/live/sharedhopesite/wp-includes/class-wp-hook.php(307): xoo_wsc_Cart_Data->get_cart_markup(”)
#2 /nas/content/live/sharedhopesite/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#3 /nas/content/live/sharedhopesite/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
#4 /nas/content/live/sharedhopesite/wp-includes/general-template.php(3058): do_action(‘wp_footer’)
#5 /nas/content/live/sharedhopesite/wp-content/themes/genesis/footer.php(56): wp_footer()
#6 /nas/content/live/sharedhopesite/wp-includes/template.php(770): require_once(‘/nas/content/li…’)
#7 /nas/content/live/sharedhopesite/wp-includes/template.php(716): load_template(‘/nas/ in /nas/content/live/sharedhopesite/wp-content/plugins/side-cart-woocommerce/public/partials/xoo-wsc-markup.php on line 58I am NOT seeing the error on the front end (but there is high enough traffic, others may see it),
I AM experiencing /occasional/ errors in a call to Woocommerce via XMLRPC API from Zapier or Postman, (maybe this is connected? I don’t see how.. but sharing this info…just in case)
- The topic ‘get_cart_contents_count() on null Uncaught PHP Error’ is closed to new replies.