Error: get_cart_contents_count()




Wordpress LScache Plugin: Error: get_cart_contents_count()

Last Updated on: Wed, 15 Apr 2026 00:00:02
Playing around i`m getting: #5 /home/57fd6015f911cf2dc47fcf91/app/public_html/wp-includes/functions.php(952): in /home/57fd6015f911cf2dc47fcf91/app/public_html/wp-content/plugins/litespeed-cache/thirdparty/class-litespeed-cache-thirdparty-woocommerce.php on line 428 #4 /home/57fd6015f911cf2dc47fcf91/app/public_html/wp-includes/class-wp.php(737): do_action_ref_array(wp, Array) #3 /home/57fd6015f911cf2dc47fcf91/app/public_html/wp-includes/plugin.php(601): LiteSpeed_Cache->check_cacheable(Object(WP)) #2 /home/57fd6015f911cf2dc47fcf91/app/public_html/wp-content/plugins/litespeed-cache/includes/class-litespeed-cache.php(1661): LiteSpeed_Cache->is_cacheable() #1 /home/57fd6015f911cf2dc47fcf91/app/public_html/wp-content/plugins/litespeed-cache/includes/class-litespeed-cache.php(1542): apply_filters(litespeed_cache..., true) #0 /home/57fd6015f911cf2dc47fcf91/app/public_html/wp-includes/plugin.php(235): LiteSpeed_Cache_ThirdParty_WooCommerce::is_cacheable(true) Stack trace: [11-Feb-2017 23:22:45 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/57fd6015f911cf2dc47fcf91/app/public_html/wp-content/plugins/litespeed-cache/thirdparty/class-litespeed-cache-thirdparty-woocommerce.php:428 Litespeed :Version 1.0.14.1 WooCommerce: Version 2.6.14 Hi @batooo Do you recall what page you were viewing when you got that error? We will try to reproduce it internally. Thanks, Kevin Hi @batooo This should no longer be an issue in the next version. Thanks for reporting this. Kevin



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference