Zakra Woocommerce uncaught error
-
I have started getting an error in the header for the zakra theme, woocommerce compatibility in our cart header on our website. This started happening with the most recent woocommerce updates and I am wondering if some depreciated function is still being utilized? Any help to fix would be great as this probably effects a large majority of the free versions being used.
2023-01-02T19:27:03+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/softweir/public_html/wp-content/themes/zakra/inc/compatibility/woocommerce/class-zakra-woocommerce.php:147
Stack trace:0 /home/softweir/public_html/wp-content/themes/zakra/inc/compatibility/woocommerce/class-zakra-woocommerce.php(172): Zakra_WooCommerce::woocommerce_cart_link()
1 /home/softweir/public_html/wp-includes/class-wp-hook.php(308): Zakra_WooCommerce::woocommerce_header_cart(”)
2 /home/softweir/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(”, Array)
3 /home/softweir/public_html/wp-content/themes/zakra/inc/hooks/header.php(396): apply_filters(‘zakra_woocommer…’, ”)
4 /home/softweir/public_html/wp-includes/class-wp-hook.php(308): zakra_header_main_action(”)
5 /home/softweir/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
6 /home/softweir/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
7 /home/softweir/public_html/wp-content/themes/z in /home/softweir/public_html/wp-content/themes/zakra/inc/compatibility/woocommerce/class-zakra-woocommerce.php on line 147
- The topic ‘Zakra Woocommerce uncaught error’ is closed to new replies.