I’ve just discovered that my wordpress site is throwing a critical error. I last published a post yesterday and it was fine. I haven’t made any changes to the site, code, themes, or plugins since then. But maybe there could have been an automatic update to wordpress or some other plugin.
With debugging on, this error message occurs both with and without all themes and plugins disabled:
Fatal error: Uncaught Error: Class "_WP_Dependency" not found in /home/tuhopymy/public_html/wp-includes/class-wp-dependencies.php:260 Stack trace: #0 /home/tuhopymy/public_html/wp-includes/script-loader.php(1609): WP_Dependencies->add() #1 /home/tuhopymy/public_html/wp-includes/class-wp-hook.php(324): wp_default_styles() #2 /home/tuhopymy/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /home/tuhopymy/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() #4 /home/tuhopymy/public_html/wp-includes/class-wp-styles.php(135): do_action_ref_array() #5 /home/tuhopymy/public_html/wp-includes/functions.wp-styles.php(24): WP_Styles->__construct() #6 /home/tuhopymy/public_html/wp-includes/functions.wp-styles.php(214): wp_styles() #7 /home/tuhopymy/public_html/wp-includes/blocks.php(296): wp_style_is() #8 /home/tuhopymy/public_html/wp-includes/blocks.php(682): register_block_style_handle() #9 /home/tuhopymy/public_html/wp-includes/blocks/legacy-widget.php(65): register_block_type_from_metadata() #10 /home/tuhopymy/public_html/wp-includes/class-wp-hook.php(324): register_block_core_legacy_widget() #11 /home/tuhopymy/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #12 /home/tuhopymy/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #13 /home/tuhopymy/public_html/wp-settings.php(727): do_action() #14 /home/tuhopymy/public_html/wp-config.php(112): require_once('/home/tuhopymy/...') #15 /home/tuhopymy/public_html/wp-load.php(50): require_once('/home/tuhopymy/...') #16 /home/tuhopymy/public_html/wp-blog-header.php(13): require_once('/home/tuhopymy/...') #17 /home/tuhopymy/public_html/index.php(17): require('/home/tuhopymy/...') #18 {main} thrown in /home/tuhopymy/public_html/wp-includes/class-wp-dependencies.php on line 260
There has been a critical error on this website.
I have no idea why this is happening or what to do. I didn't change anything, so there's nothing I can change back. What else can I do to resolve this?