Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Error: Call to a member function get_cart_contents_count() on null

Home / Forums / Virtue Theme / Error: Call to a member function get_cart_contents_count() on null

This topic is: Not a support question
[Not a support question]
Posted in: Virtue Theme
May 20, 2019 at 1:06 am

I saw this error in my error.log:
PHP Fatal error: Uncaught Error: Call to a member function get_cart_contents_count() on null in /mysite/wp-content/themes/virtue_premium/lib/custom.php:240

See full stacktrace:

Happened only once. I have no idea how this is caused or where it comes from, maybe it’s even caused by requests by a bot. But Fatal Error should never happen I guess, so an if-else check on null might be worse it to catch this error.

We use the current up-to-date version of Virtue Premium.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.