Home Forums WoodMart support forum Problem with widgets in the backoffice

Problem with widgets in the backoffice

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #313144

    GREENWEO
    Participant

    Hello, 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(1

    Thank you for your assistance in solving this problem

    Regards

    Frank

    Attachments:
    You must be logged in to view attached files.
    #313147

    Hello,

    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

    #313168

    GREENWEO
    Participant

    When 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 version

    I 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 assistance

    #313245

    Hello,

    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.

Viewing 4 posts - 1 through 4 (of 4 total)