-
Download a new WordPress installation zip:
-
Remove the folders wp-admin & wp-includes from your server:
-
Reupload those folders from the fresh downloaded WordPress zip:
Note: this does not delete your site content, the content of your website is in the database and in the wp-content folder.
Update your PHP version and use a stable WordPress version:
To resolve the fatal error caused by an incompatible PHP version or an outdated WordPress version, you should:
- Check your current PHP version and WordPress version.
- Ensure that your PHP version meets the requirements of your WordPress version. WordPress 5.3 and later require PHP 7.4 or higher.
- If necessary, update your PHP version to the latest stable release.
- Update your WordPress installation to the latest stable version.
Disable WordPress Auto Update:
If you experience fatal errors after updating WordPress, you can disable automatic updates to prevent further issues.
- Open your wp-config.php file.
- Add the following code:
define( 'WP_AUTO_UPDATE_CORE', false );
- Save the changes to your wp-config.php file.