I’ve been trying to upgrade manually to 5.8 from 5.7.2, since the auto-upgrade seemed to have failed. I went to follow the WordPress instructions for manually updating.
I did step 1. At step 2, I cannot access the admin panel — it only comes up with the critical error message. (“There has been a critical error on this website.”) Here is the log for the fatal error:
Fatal error: Uncaught Error: Class 'WP_Theme_JSON_Resolver' not found in /htdocs/wp-includes/script-loader.php:1530 Stack trace: #0 /htdocs/wp-includes/class-wp-hook.php(303): wp_default_styles(Object(WP_Styles)) #1 /htdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #2 /htdocs/wp-includes/plugin.php(518): WP_Hook->do_action(Array) #3 /htdocs/wp-includes/class.wp-styles.php(135): do_action_ref_array('wp_default_styl...', Array) #4 /htdocs/wp-includes/functions.wp-styles.php(24): WP_Styles->__construct() #5 /htdocs/wp-includes/functions.wp-styles.php(176): wp_styles() #6 /htdocs/wp-login.php(96): wp_enqueue_style('login') #7 /htdocs/wp-login.php(1285): login_header('Log in /htdocs/wp-includes/script-loader.php on line 1530
There was also a warning:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_enable_block_templates' not found or invalid function name in /htdocs/wp-includes/class-wp-hook.php on line 303
I disabled plug-ins (by renaming it the folder to plugins.hold) and the same thing appeared, I think. I tried to disable the two non-default themes that I had (renamed their folders), but then I couldn’t access the site at all through my browser (as in, there was no critical error message displayed, because Safari can’t reach the server).
I’m new to WordPress and totally unfamiliar with PHP, so it’s hard for me to diagnose what might be going on. In terms of themes, I have the Humani theme https://themeforest.net/item/humani-nonprofit-charity-wordpress-theme/32583278 and its plugin requirements (just for context). Do you think it is related to that theme? If so, I’ll go post in their support, rather than on this forum.
- The topic ‘Fatal error “‘WP_Theme_JSON_Resolver’ not found”, in manual upgrade to 5.8’ is closed to new replies.