I would recommend completely re-uploading the wp-includes directory again. Download the package from for the version that matches your WordPress and unpack it on your computer. Then connect via FTP and upload the directory there. If you have questions about the FTP connection, you can contact the support of your hoster.
Thread Starter
JohnP
(@johnp)
OK, I’ve done that.
The public error now says:
“There has been a critical error on this website. Please check your site admin email inbox for instructions.”
But no email has been received.
The PHP error log now has new entries such as:
[29-Apr-2023 19:13:36 UTC] PHP Warning: require(/home/intens5/public_html/wp-includes/version.php): failed to open stream: No such file or directory in /home/intens5/public_html/wp-settings.php on line 33[29-Apr-2023 19:13:36 UTC] PHP Fatal error: require(): Failed opening required ‘/home/intens5/public_html/wp-includes/version.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/intens5/public_html/wp-settings.php on line 33 [29-Apr-2023 19:28:12 UTC] PHP Warning: require(/home/intens5/public_html/wp-includes/sodium_compat/autoload.php): failed to open stream: No such file or directory in /home/intens5/public_html/wp-includes/compat.php on line 342
[29-Apr-2023 19:28:12 UTC] PHP Fatal error: require(): Failed opening required ‘/home/intens5/public_html/wp-includes/sodium_compat/autoload.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/intens5/public_html/wp-includes/compat.php on line 342 [29-Apr-2023 19:28:12 UTC] PHP Warning: require_once(/home/intens5/public_html/wp-includes/pomo/mo.php): failed to open stream: No such file or directory in /home/intens5/public_html/wp-includes/load.php on line 1364
[29-Apr-2023 19:28:12 UTC] PHP Fatal error: require_once(): Failed opening required ‘/home/intens5/public_html/wp-includes/pomo/mo.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/intens5/public_html/wp-includes/load.php on line 1364 [29-Apr-2023 19:28:12 UTC] PHP Warning: require(/home/intens5/public_html/wp-includes/sodium_compat/autoload.php): failed to open stream: No such file or directory in /home/intens5/public_html/wp-includes/compat.php on line 342
[29-Apr-2023 19:28:12 UTC] PHP Fatal error: require(): Failed opening required ‘/home/intens5/public_html/wp-includes/sodium_compat/autoload.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/intens5/public_html/wp-includes/compat.php on line 342
[29-Apr-2023 19:28:12 UTC] PHP Warning: require_once(/home/intens5/public_html/wp-includes/pomo/mo.php): failed to open stream: No such file or directory in /home/intens5/public_html/wp-includes/load.php on line 1364
[29-Apr-2023 19:28:12 UTC] PHP Fatal error: require_once(): Failed opening required ‘/home/intens5/public_html/wp-includes/pomo/mo.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home/intens5/public_html/wp-includes/load.php on line 1364
Thread Starter
JohnP
(@johnp)
With the plugins deactivated, the PHP error log now reads:
[29-Apr-2023 20:38:18 UTC] PHP Fatal error: Uncaught Error: Class 'WP_Theme_JSON_Data' not found in /home/intens5/public_html/wp-includes/class-wp-theme-json-resolver.php:175
Stack trace:
0 /home/intens5/public_html/wp-includes/class-wp-theme-json-resolver.php(563): WP_Theme_JSON_Resolver::get_core_data()
1 /home/intens5/public_html/wp-includes/script-loader.php(3240): WP_Theme_JSON_Resolver::get_merged_data()
2 /home/intens5/public_html/wp-includes/script-loader.php(3436): {closure}()
3 /home/intens5/public_html/wp-includes/class-wp-hook.php(308): {closure}('')
4 /home/intens5/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
5 /home/intens5/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
6 /home/intens5/public_html/wp-settings.php(620): do_action('wp_loaded')
7 /home/intens5/public_html/wp-config.php(82): require_once('/home/intens5/p…')
8 /home/intens5/public_html/wp-load.php(50): require_once('/home/intens5/p…')
9 /home/intens5/public_html/wp-blog-header.php(13): require_once('/home in /home/intens5/public_html/wp-includes/class-wp-theme-json-resolver.php on line 175
Files are missing from the wp-includes directory. Did you really upload all of them? Please check this again carefully.
Thread Starter
JohnP
(@johnp)
I’ve deleted and re-uploaded wp-includes. No failed transfers reported.
Plugins are off, normal theme is off.
Public page is now white, same “critical error” message shows on /wp-admin
No PHP errors are being logged.
Thread Starter
JohnP
(@johnp)
When I rename wp-config, the error persists.
I have a wordfence-waf.php file in the root, but renaming it produces a 500 error, and this PHP error Log:
[29-Apr-2023 22:06:37 UTC] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0[29-Apr-2023 22:06:37 UTC] PHP Fatal error: Unknown: Failed opening required ‘/home/intens5/public_html/wordfence-waf.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in Unknown on line 0
Thread Starter
JohnP
(@johnp)
PROBLEM SOLVED!
I replaced the wp-admin directory and all the files in the root, and now we are back in business. Thank you very much for your advice.
