After updating a plugin, theme, or PHP version, WordPress may display the message “There has been a critical error on this website.” In this situation, not only individual pages but also the administration area may be unavailable. The safest first step is often to use the built-in Recovery Mode rather than immediately deleting component files through your hosting account.
Recovery Mode temporarily pauses the loading of the problematic plugin or theme for your administrator session. This allows you to access the site, identify the cause of the failure, disable or update the component, and check whether WordPress has returned to normal operation.
What a Fatal Error Means in WordPress
A fatal error is a critical PHP error that stops code execution. WordPress cannot fully generate the page, so visitors may see a critical error message, a white screen, or a server response with status code 500.
The most common causes include incompatible plugin and WordPress versions, conflicts between two plugins, a theme error, a PHP update, or corrupted files. Sometimes the problem is caused by insufficient PHP memory, but increasing the memory limit will not fix an error in the code itself.
Before starting recovery, record what changed: which component was updated, when the error appeared, whether the PHP version was changed, and whether the site is unavailable to all users. If a recent backup exists, confirm that it is accessible, but do not restore it immediately: first try to identify the cause of the failure.
- Do not randomly delete plugin or theme folders.
- Do not edit the database without a backup.
- Do not enable PHP error display for all visitors on a live site.
How WordPress Recovery Mode Works
When WordPress detects a critical error, it may send a notification to the administrator’s email address with a special one-time link. The email usually identifies the component that caused the problem and includes the time when the error occurred.
Open the link from the email in the same browser where you have administrator access. Recovery Mode does not automatically fix the code or permanently change the site. It only isolates the problematic component for the current session so that you can access the dashboard and perform troubleshooting.
If the email does not arrive, check the spam folder, confirm the administrator address, and review the server’s email settings. The message may also fail to arrive if the site cannot send email or if the error occurred before WordPress was fully initialized.
- A Recovery Mode link has a limited validity period and is intended for a specific session.
- Do not share the link with anyone else: it contains an access token for Recovery Mode.
- If the link has expired or no longer works, request a new notification or use WP-CLI or your hosting control panel.
What to Do After Logging In
Review the error text and the name of the file where it occurred. If WordPress identifies a specific plugin or theme, temporarily disable the component through the administration area. Then check whether a newer version is available, whether its PHP requirements have changed, and whether the developer has reported a known conflict.
If the failure began after an update, it is safer to return to the previous compatible version from a backup or by using a trusted rollback method. Do not download random plugin ZIP archives from unverified websites.
- Create a backup of the files and database before activating the component again.
- After disabling the plugin, check the homepage, several internal pages, forms, and the cart if the site is an online store.
- When troubleshooting is complete, exit Recovery Mode and test the site in a private browser window.
Recovering with WP-CLI When the Admin Area Is Unavailable
WP-CLI is suitable for sites with SSH access and an installed WordPress instance where the wp command is available. Run commands from the site’s root directory or provide its location with the --path parameter. Creating a backup before making changes is recommended.
To disable a problematic plugin, use its technical slug—the folder name in wp-content/plugins—not necessarily the name displayed in the administration area.
wp plugin deactivate plugin-slug --skip-plugins --skip-themes
How to Activate a Default Theme
If the theme caused the error, activate another installed theme. The example below uses a theme folder name; make sure that theme actually exists on the server.
wp theme activate twentytwentyfour --skip-plugins --skip-themes
Checking Components with WP-CLI
You can view the list of installed plugins and their status with a separate command. If WordPress cannot start because of another active component, the --skip-plugins and --skip-themes parameters allow the command to run without loading plugins and themes.
wp plugin list --skip-plugins --skip-themes
wp theme list --skip-plugins --skip-themes
What to Check in PHP Logs and Configuration
The message displayed on screen is often abbreviated, so review the WordPress, PHP, and web server error logs for troubleshooting. File locations depend on the hosting provider and configuration. They may include wp-content/debug.log, a PHP-FPM log, or a separate error log in the server control panel.
You can enable logging in wp-config.php, but configure the settings carefully. WP_DEBUG_DISPLAY should not remain enabled in production because errors may reveal file paths, code fragments, and other technical information to visitors.
- Look for entries with a date and time matching when the problem appeared.
- Pay attention to the plugin or theme name, function, and line number.
- Compare the PHP-FPM logs with the web server log if the site returns a 500 error.
- After troubleshooting, disable debugging or at least disable displaying errors on screen.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
Checking Compatibility and Safely Re-enabling Components
Once the site opens again, do not activate all disabled components at the same time. First check the WordPress, PHP, plugin, and theme versions. Compatibility information should be available in the developer’s documentation or release notes.
Enable components one at a time, opening the site and performing key actions after each change. If the error returns, you will be able to identify the responsible component precisely. For complex sites, it is useful to test updates on a staging copy before applying them to production.
If the problem is related to PHP, do not switch versions without checking the compatibility of all critical plugins. An older component may work on one PHP version but fail after switching to a newer one. At the same time, continuing to use an outdated PHP version creates security risks, so schedule an upgrade after stabilizing the site.
- Remove or replace any component that is no longer supported.
- Check file permissions and ownership if the error appeared after restoring from a backup.
- Clear the WordPress, caching plugin, CDN, and browser caches after fixing the problem.
- Check cron jobs, integrations, payments, and email delivery—not just the homepage.
What to Do If Recovery Mode and WP-CLI Are Unavailable
The last resort is to access the files through your hosting file manager or SFTP. Create a backup, then temporarily rename the suspected plugin’s folder in wp-content/plugins, for example, to plugin-slug-disabled. WordPress will no longer find or load the component.
This method may restore access, but it does not replace proper troubleshooting. After renaming the folder, the plugin’s saved settings usually remain in the database, while dependencies and incomplete updates may require additional checks. Do not delete database tables or records without understanding their purpose.
For a theme, you can temporarily rename its folder if another working theme is installed on the system. If access is still unavailable, contact your hosting provider and ask for the exact PHP error log and the time when the error occurred.
- Do not rename all folders at once: this will make it harder to identify the cause.
- Do not edit WordPress core files to hide the error.
- After recovery, restore the folder’s correct name only after checking the component’s compatibility.
- If the site has been compromised or there are signs of malicious code, isolate it first and change account credentials after cleaning it.
Frequently asked questions
Does Recovery Mode delete the problematic plugin?
No. Recovery Mode only prevents the problematic component from loading temporarily for your session. The plugin or theme remains on the site until you disable, update, or delete it yourself.
What should I do if the Recovery Mode email does not arrive?
Check the spam folder, the administrator address, and your email delivery settings. If the site cannot send notifications, use SSH and WP-CLI, your hosting control panel, or contact your hosting provider’s support team.
Can I simply delete the plugin folder through FTP?
This is acceptable as an emergency way to restore access, but it is not the best first step. Deleting the files does not remove the settings and may leave an incomplete configuration. Create a backup first and try to disable the plugin through Recovery Mode or WP-CLI.
Why does the site work for the administrator but not for visitors?
Recovery Mode isolates the problem only in your administrator session. For regular visitors, the component may continue to cause the error, so you must disable or fix it and then test the site in a private window without an administrator session.
Will increasing memory_limit help after a fatal error?
Only if the logs show an out-of-memory error. For a plugin conflict, incompatible code, or a theme error, increasing the limit will not remove the cause and may only conceal the problem temporarily.
Conclusion
The safest sequence after a fatal error is to check for the Recovery Mode email, record the error message, temporarily disable the suspected component, and review the logs. If the administration area is unavailable, use WP-CLI with the plugin and theme skip parameters.
After recovery, check compatibility between PHP, WordPress, the theme, and plugins, test the site’s key functions, and do not leave error display enabled for visitors. Backups and a staging environment can help prevent similar failures during future updates.