• I have WordPress 5.8.1 with default theme Twenty Twenty and all plugins are disabled and I am getting an error while accessing widgets or customize theme. this error in the logs:

    [30-Sep-2021 15:08:42 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function _wp_array_set() in C:\wamp64\www\em9\wp-includes\class-wp-theme-json-resolver.php:230
    Stack trace:
    #0 C:\wamp64\www\em9\wp-includes\class-wp-theme-json-resolver.php(250): WP_Theme_JSON_Resolver::translate(Array)
    #1 C:\wamp64\www\em9\wp-includes\class-wp-theme-json-resolver.php(312): WP_Theme_JSON_Resolver::get_core_data()
    #2 C:\wamp64\www\em9\wp-includes\block-editor.php(294): WP_Theme_JSON_Resolver::get_merged_data(Array)
    #3 C:\wamp64\www\em9\wp-includes\class-wp-customize-widgets.php(843): get_block_editor_settings(Array, Object(WP_Block_Editor_Context))
    #4 C:\wamp64\www\em9\wp-includes\class-wp-hook.php(303): WP_Customize_Widgets->enqueue_scripts('')
    #5 C:\wamp64\www\em9\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #6 C:\wamp64\www\em9\wp-includes\plugin.php(470): WP_Hook->do_action(Array)
    #7 C:\wamp64\www\em9\wp-admin\customize.php(123): do_action('customize_contr...')
    #8 {main}
      thrown in C:\wamp64\www\em9\wp-includes\class-wp-theme-json-resolver.php on line 230
Viewing 2 replies - 1 through 2 (of 2 total)
  • Are there any must-use plugin active? If not, can you go to Dashboard > Updates and use the “reinstall WordPress 5.8.1” link to check if reinstalling WordPress core helps?

    • This reply was modified 3 years, 5 months ago by Jeroen Rotty. Reason: typo
    Thread Starter bassimbg

    (@bassimbg)

    Thanks that worked in test environment.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error in class-wp-theme-json-resolver’ is closed to new replies.