Critical error when I try to 'customise' regardless of theme

  • Unknown's avatar

    I had an issue happening with my widgets. I had lots of old style widgets and Jetpack started throwing errors trying to render them.

    I removed all the widgets from my widget area and deactivated some of the Jetpack social widgets.

    However, now, regardless of what theme I have set, when I try to ‘customise’ a theme I get a ‘critical error’, and the widgets page in settings says my theme has ‘no widget areas’.

    I enabled debug and get the following:

    [03-Aug-2021 02:28:57 UTC] PHP Fatal error: Uncaught Error: Cannot unset string offsets in /home/y02zuki/public_html/blog/wp-includes/class-wp-customize-widgets.php:1216
    Stack trace:
    #0 /home/y02zuki/public_html/blog/wp-includes/class-wp-hook.php(303): WP_Customize_Widgets->preview_sidebars_widgets('')
    #1 /home/y02zuki/public_html/blog/wp-includes/plugin.php(189): WP_Hook->apply_filters('', Array)
    #2 /home/y02zuki/public_html/blog/wp-includes/widgets.php(1035): apply_filters('sidebars_widget...', '')
    #3 /home/y02zuki/public_html/blog/wp-includes/class-wp-customize-widgets.php(379): wp_get_sidebars_widgets()
    #4 /home/y02zuki/public_html/blog/wp-includes/class-wp-customize-widgets.php(354): WP_Customize_Widgets->customize_register()
    #5 /home/y02zuki/public_html/blog/wp-includes/class-wp-hook.php(303): WP_Customize_Widgets->schedule_customize_register(Object(WP_Customize_Manager))
    #6 /home/y02zuki/public_html/blog/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
    #7 /home/y02zuki/public_html/blog/wp-includes/plugin.php(470): WP_Hook in /home/y02zuki/public_html/blog/wp-includes/class-wp-customize-widgets.php on line 1216

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    I see that your site is using the open-source WordPress software and therefore you need to seek help at these forums:

    https://wordpress.org/support/forums/

    These forums are for providing support to WordPress.com hosted sites only. If you want to know more about the differences between WordPress.com and the WordPress software you can read this document:

    WordPress.com vs. WordPress.org

  • The topic ‘Critical error when I try to 'customise' regardless of theme’ is closed to new replies.