• 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

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

    Thanks for reaching us,

    It would be better if you could provide us with some details related to the version of the Zakra theme and the Woocoomerce plugin. While checking with the latest version of the Zakra and Woocoomerce plugins, the issue did not replicate on our end.

    So we want to check once by installing the version you have on your end and provide an appropriate solution if it has been occur from the Zakra theme.

    Kindly provide us with the detail and we will be back.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Zakra Woocommerce uncaught error’ is closed to new replies.