• We have been getting this error for quite a long time, even back when Zakra was tied to Themegrille. We add products to the cart via url then skip directly to checkout. We use default woocommerce (up to date) for simple purchasing.

    I have already tried selectively disabling plugins with no success.

    2023-08-23T12:48:03+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/engine/easygamecreator/wp-content/themes/zakra/inc/compatibility/woocommerce/class-zakra-woocommerce.php:147
    Stack trace: 0 /home/engine/easygamecreator/wp-content/themes/zakra/inc/compatibility/woocommerce/class-zakra-woocommerce.php(172): Zakra_WooCommerce::woocommerce_cart_link() 1 /home/engine/easygamecreator/wp-includes/class-wp-hook.php(310): Zakra_WooCommerce::woocommerce_header_cart(”) 2 /home/engine/easygamecreator/wp-includes/plugin.php(205): WP_Hook->apply_filters(”, Array) 3 /home/engine/easygamecreator/wp-content/themes/zakra/template-parts/header/header-actions/header-actions.php(27): apply_filters(‘zakra_woocommer…’, ”) 4 /home/engine/easygamecreator/wp-includes/template.php(787): require(‘/home/engine/ea…’) 5 /home/engine/easygamecreator/wp-includes/template.php(720): load_template(‘/home/engine/ea…’, false, Array) 6 /home/engine/easygamecreator/wp-includes/general-template.php(206): locate_tem in /home/engine/easygamecreator/wp-content/themes/zakra/inc/compatibility/woocommerce/class-zakra-woocommerce.php on line 147

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @anvilhouse,

    Thanks for reaching us,

    While checking on our setup, we couldn’t replicate the issue you mentioned above.

    In order to better understand the problem, it would be very helpful if you could provide us with a screen recording/video on how we can replicate the issue on your site.

    If you’re unsure how to take a screen recording/video, please let us know, and we’ll be happy to assist you.

    Regards

    Thread Starter anvilhouse

    (@anvilhouse)

    I don’t seem to be able to replicate the issue myself. So it is quite possible it has nothing to do with the add to cart url when trying to replicate. Would you happen to know what would have the ability to interrupt the get_cart_contents_count() ?
    We do have one php snippet in our functions.php that does empty the cart if another is added, but we are having this same issue on our other website using the Zakra theme and do not have this snippet on it.

    Hi @anvilhouse,

    Thanks for reaching back,

    Can you please update the Zakra theme on all of the site using the theme and check if the issues gets fix or not!

    Let me know the update after doing so and I will get back to you.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Zakra Critical error get_cart_contents_count()’ is closed to new replies.