Home › Forums › WoodMart support forum › Problem with widgets in the backoffice
Problem with widgets in the backoffice
- This topic has 3 replies, 2 voices, and was last updated 3 years, 6 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
August 18, 2021 at 12:17 pm #313144
GREENWEOParticipantHello, unable to display widgets in the backoffice correctly.
An error message is systematically sent:
Since WordPress 5.2, a native feature can detect if an extension or a theme causes a fatal error on your site, and notifies you with this automatic email.
Here, WordPress found an error with your theme, “Woodmart”.
Error details
=======================
An error of type E_ERROR was caused in line 334 of the file
/var/www/vhosts/secondemain.co/httpdocs/wp-content/themes/woodmart/inc/functions.php.Error Message : Uncaught Error: [] operator not supported for strings in /var/www/vhosts/secondemain.co/httpdocs/wp-content/themes/woodmart/inc/functions.php:334
Stack trace:
#0 /var/www/vhosts/secondemain.co/httpdocs/wp-includes/class-wp-hook.php(305): woodmart_body_class()
#1 /var/www/vhosts/secondemain.co/httpdocs/wp-includes/plugin.php(189): WP_Hook->apply_filters()
#2 /var/www/vhosts/secondemain.co/httpdocs/wp-includes/post-template.php(836): apply_filters()
#3 /var/www/vhosts/secondemain.co/httpdocs/wp-includes/post-template.php(595): get_body_class()
#4 /var/www/vhosts/secondemain.co/httpdocs/wp-includes/blocks/legacy-widget.php(113): body_class()
#5 /var/www/vhosts/secondemain.co/httpdocs/wp-includes/class-wp-hook.php(303): handle_legacy_widget_preview_iframe()
#6 /var/www/vhosts/secondemain.co/httpdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#7 /var/www/vhosts/secondemain.co/httpdocs/wp-includes/plugin.php(470): WP_Hook->do_action()
#8 /var/www/vhosts/secondemain.co/httpdocs/wp-admin/admin.php(1Thank you for your assistance in solving this problem
Regards
Frank
Attachments:
You must be logged in to view attached files.August 18, 2021 at 12:43 pm #313147
Aizaz Imtiaz AwanKeymasterHello,
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Best Regards
August 18, 2021 at 2:18 pm #313168
GREENWEOParticipantWhen I change the theme, the Woodmart Woocommerce widgets are no longer active, so it’s hard to see the problem.
In the meantime, I have implemented the old version of widgets (https://wordpress.org/plugins/classic-widgets/), as it looks like the new version has some issues with some themes, and maybe yours.
There is no problem with the old Widget versionI will activate the new version in a while after updates to your theme and WordPress to see if the problem is still existing.
I’ll let you know
Thank you for your assistanceAugust 19, 2021 at 6:57 am #313245
Aizaz Imtiaz AwanKeymasterHello,
Yes, you can use the Classic Widgets plugin with our theme as well, It will solve the issue on your site. We are trying to update and solve the issue in the next theme update.
Best Regards.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register