Home › Forums › WoodMart support forum › The WordPress 5.8 caught an error with Woodmart. please update the theme
The WordPress 5.8 caught an error with Woodmart. please update the theme
- This topic has 3 replies, 2 voices, and was last updated 3 years, 5 months ago by
Elise Noromit.
-
AuthorPosts
-
September 5, 2021 at 2:21 am #316504
Raymond_xuParticipanthi
After I upgraded wordpress to version 5.8, I received a warning email, please help to deal with it and upgrade to a suitable theme version:
=======================================================
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.In this case, WordPress caught an error with your theme, Woodmart.
First, visit your website (https://www.bluekiee.com/) and check for any visible issues. Next, visit the page where the error was caught (https://www.bluekiee.com/wp-admin/widgets.php?legacy-widget-preview%5BidBase%5D=woodmart-instagram&legacy-widget-preview%5Binstance%5D%5Bencoded%5D=YTo1OntzOjU6InRpdGxlIjtzOjEzOiJPdXIgSW5zdGFncmFtIjtzOjg6InVzZXJuYW1lIjtzOjE3OiJvemRlc2lnbmZ1cm5pdHVyZSI7czo2OiJudW1iZXIiO3M6MToiOSI7czo0OiJzaXplIjtzOjk6InRodW1ibmFpbCI7czo2OiJ0YXJnZXQiO3M6NjoiX2JsYW5rIjt9&legacy-widget-preview%5Binstance%5D%5Bhash%5D=372cd0e210a2236ce7bc065a7abafc23) and check for any visible issues.
visit your website (https://www.bluekiee.com/) and check for any visible issues. Next, visit the page where the error was caught (https://www.bluekiee.com/wp-admin/widgets.php?legacy-widget-preview%5BidBase%5D=woocommerce_product_categories&legacy-widget-preview%5Binstance%5D%5Bencoded%5D=YTo4OntzOjU6InRpdGxlIjtzOjEwOiJDYXRlZ29yaWVzIjtzOjc6Im9yZGVyYnkiO3M6NToib3JkZXIiO3M6ODoiZHJvcGRvd24iO2k6MDtzOjU6ImNvdW50IjtpOjA7czoxMjoiaGllcmFyY2hpY2FsIjtpOjE7czoxODoic2hvd19jaGlsZHJlbl9vbmx5IjtpOjA7czoxMDoiaGlkZV9lbXB0eSI7aToxO3M6OToibWF4X2RlcHRoIjtzOjA6IiI7fQ%3D%3D&legacy-widget-preview%5Binstance%5D%5Bhash%5D=e3d1b20af1a77868c4f807c3012f80c9&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Btitle%5D=Categories&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Borderby%5D=order&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bdropdown%5D=0&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bcount%5D=0&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bhierarchical%5D=1&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bshow_children_only%5D=0&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bhide_empty%5D=1&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bmax_depth%5D=) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.visit your website (https://www.bluekiee.com/) and check for any visible issues. Next, visit the page where the error was caught (https://www.bluekiee.com/wp-admin/widgets.php?legacy-widget-preview%5BidBase%5D=woocommerce_product_categories&legacy-widget-preview%5Binstance%5D%5Bencoded%5D=YTo4OntzOjU6InRpdGxlIjtzOjEwOiJDYXRlZ29yaWVzIjtzOjc6Im9yZGVyYnkiO3M6NToib3JkZXIiO3M6ODoiZHJvcGRvd24iO2k6MDtzOjU6ImNvdW50IjtpOjA7czoxMjoiaGllcmFyY2hpY2FsIjtpOjE7czoxODoic2hvd19jaGlsZHJlbl9vbmx5IjtpOjA7czoxMDoiaGlkZV9lbXB0eSI7aToxO3M6OToibWF4X2RlcHRoIjtzOjA6IiI7fQ%3D%3D&legacy-widget-preview%5Binstance%5D%5Bhash%5D=e3d1b20af1a77868c4f807c3012f80c9&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Btitle%5D=Categories&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Borderby%5D=order&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bdropdown%5D=0&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bcount%5D=0&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bhierarchical%5D=1&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bshow_children_only%5D=0&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bhide_empty%5D=1&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Bmax_depth%5D=) and check for any visible issues.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.8
Current theme: Woodmart (version 6.1.4)
Current plugin: (version )
PHP version 7.4.23Error Details
=============
An error of type E_ERROR was caused in line 1176 of the file /home/customer/www/bluekiee.com/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php. Error message: Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/customer/www/bluekiee.com/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
Stack trace:
#0 /home/customer/www/bluekiee.com/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
#1 /home/customer/www/bluekiee.com/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
#2 /home/customer/www/bluekiee.com/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
#3 /home/customer/www/bluekiee.com/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#4 /home/customer/www/bluekiee.com/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#5 /home/customer/www/bluekiee.com/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
#6 /home/customer/www/bluekiee.com/public_html/wp-includes/blocks/legacy-wError Details
=============
An error of type E_ERROR was caused in line 1176 of the file /home/customer/www/bluekiee.com/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php. Error message: Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/customer/www/bluekiee.com/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
Stack trace:
#0 /home/customer/www/bluekiee.com/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
#1 /home/customer/www/bluekiee.com/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
#2 /home/customer/www/bluekiee.com/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
#3 /home/customer/www/bluekiee.com/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#4 /home/customer/www/bluekiee.com/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#5 /home/customer/www/bluekiee.com/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
#6 /home/customer/www/bluekiee.com/public_html/wp-includes/blocks/legacy-wSeptember 6, 2021 at 8:20 am #316684
Elise NoromitMemberHello,
Please add this code to the functins.php of the child theme we will fix this in out nearest update:
function woodmart_cart_count() { if ( ! is_object( WC() ) || ! property_exists( WC(), 'cart' ) || ! method_exists( WC()->cart, 'get_cart_contents_count' ) ) { return; } $count = WC()->cart->get_cart_contents_count(); ?> <span class="wd-cart-number<?php echo woodmart_get_old_classes( ' woodmart-cart-number' ); ?>"><?php echo esc_html( $count ); ?> <span><?php echo esc_html( _n( 'item', 'items', $count, 'woodmart' ) ); ?></span></span> <?php }
Best Regards
September 6, 2021 at 3:02 pm #316824
Raymond_xuParticipantDear supportor:
I never installed child theme , what can i to fix these issues?
September 6, 2021 at 11:20 pm #316865
Elise NoromitMemberHello,
I have done that please check how it works.
If you have any questions please feel free to contact us.
Best Regards
Attachments:
You must be logged in to view attached files. -
AuthorPosts
- You must be logged in to create new topics. Login / Register