Home › Forums › WoodMart support forum › Error Widgets Woodmart – Legacy-widget
Error Widgets Woodmart – Legacy-widget
- This topic has 6 replies, 2 voices, and was last updated 2 years, 11 months ago by ammarket.
-
AuthorPosts
-
December 29, 2021 at 12:38 pm #342542
ammarketParticipantHi, every time I have to make changes in some widget in our website, I get an error in WordPress: 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.
This is the same message that we can see here:
https://xtemos.com/forums/topic/fatal-error-on-wordpress-after-installing-woodmart-theme/The error message says the following:
First, visit your website (https://mywebsite.com/) and check for any visible issues. Next, visit the page where the error was caught
https://www.mywebsite.com/wp-admin/widgets.php?legacy-widget-preview%5BidBase%5D=categories&legacy-widget-preview%5Binstance%5D%5Bencoded%5D=YToxOntzOjU6InRpdGxlIjtzOjEwOiJDYXRlZ29yaWVzIjt9&legacy-widget-preview%5Binstance%5D%5Bhash%5D=d685f25ab9d0855b6770226800affe5b&legacy-widget-preview%5Binstance%5D%5Braw%5D%5Btitle%5D=Categories)When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.8.2
Current theme: Woodmart Child (version 1.0.0)
Current plugin: (version )
PHP version 8.0.13Error Details:
==================
Se ha producido un error del tipo E_ERROR en la lĂnea 1176 del archivo /var/www/vhosts/mywebsite.com/httpdocs/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php. Mensaje de error: Uncaught Error: Call to a member function get_cart_contents_count() on null in /var/www/vhosts/mywebsite.com/httpdocs/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
Stack trace:
#0 /var/www/vhosts/mywebsite.com/httpdocs/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
#1 /var/www/vhosts/mywebsite.com/httpdocs/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
#2 /var/www/vhosts/mywebsite.com/httpdocs/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template()
#3 /var/www/vhosts/mywebsite.com/httpdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#4 /var/www/vhosts/mywebsite.com/httpdocs/wp-includes/plugin.php(470): WP_Hook->do_action()
#5 /var/www/vhosts/mywebsite.com/httpdocs/wp-includes/general-template.php(3031): do_action()
#6 /var/www/vhosts/mywebsite.com/httpdocs/wp-includes/blocks/legacy-widget.php(123): wp_footer()
#7 /var/www/vhosts/mywebsite.com/httpdocs/wp-includes/class-wp-hook.php(303): handle_legacy_widget_preview_iframe()
#8 /var/www/vhosts/mywebsite.com/httpdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#9 /var/www/vhosts/mywebsite.com/httpdocs/wp-includes/plugin.php(470): WP_Hook->do_action()
#10 /var/www/vhosts/mywebsite.com/httpdocs/wp-admin/admin.php(175): do_action()
#11 /var/www/vhosts/mywebsite.com/httpdocs/wp-admin/widgets.php(10): require_once(‘…’)
#12 {main}
thrownIn the previous thread I mentioned before, your staff provided a code snippet in order to solve the problem (https://xtemos.com/forums/topic/fatal-error-on-wordpress-after-installing-woodmart-theme/#post-324780).
Does the same code apply in my case? Please, help us with that annoying error that appears every time I have to change some widget on our website.
Thank you so much…Best regards.
Attachments:
You must be logged in to view attached files.December 29, 2021 at 2:49 pm #342578
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?
Also, make sure that you are running the latest version of the theme and WoodMart core plugin.Thank you in advance
January 5, 2022 at 8:29 am #343497
ammarketParticipantSorry for the delay in responding.
Sorry about that, but we can not provide external access to the website (at least for now). We have worked many hours on this ecommerce project and we are in the process of finalizing the website.
But, the problem we are experiencing occurs on our website every time we have to make any changes to any widget on our website. It is an annoying bug related to woodmart theme.
So, we can try to solve it in the following way:
Please, you can tell me which part you need to observe on the website. Then, what I will do is send you a video with that part of the website.For example: “The Woodmart Team needs to see the wp-config.php file”
“The Woodmart Team needs to see the file located at XXXXXXX”Let’s try to solve this problem in this way.
I am waiting for a response from you. Thank you very much.
January 5, 2022 at 8:49 am #343507
Artem TemosKeymasterIn this case, you need to create a staging development copy of your website. There, you will be able to do such kind of experiments without any harm to your production website.
Kind Regards
January 5, 2022 at 10:42 am #343536
ammarketParticipantOk… I have copied the website on a staging environment.
I will create a new user for you…Which user role do you need? Author, Editor, Admin?January 5, 2022 at 12:14 pm #343564
Artem TemosKeymasterWe need admin user to be able to see the error in your Dashboard.
January 11, 2022 at 3:19 pm #344596
ammarketParticipantOk…I understand it…I am working on another issue (fatal error) now related to WPML update…
I will create a new user on the staging website in the next few hours and I will send it to you…Thank you so much.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register