Identify the plugin, the theme or the PHP code behind a critical WordPress error and restore the site without losing your data. The priority is to restore a situation under control without wiping the traces useful to the diagnosis.

How do I recognise a WordPress critical error?
On WordPress, a visible outage can come from the core, the theme, a plugin, PHP, the database or the server. A reliable fix isolates one variable at a time and always keeps the option of going back. Start by noting when it appeared, the most recent changes, the URLs concerned and the behaviour observed.
Note the page's HTTP status, test in a private window, and read the PHP error log along with debug.log if WordPress debugging is enabled. Note too whether the admin is still reachable: the answer points straight at the theme, a plugin or the server environment.
The message “There has been a critical error”
A recovery email sent to the administrator
The front end or the admin is unreachable
One signal alone does not prove the cause: “The message “There has been a critical error”” can come from “A plugin incompatible with the PHP or WordPress version” just as easily as from “A fatal error introduced in the theme or a code snippet”. Look for at least two findings that agree before you apply a lasting fix.
Read the fatal error message before touching the plugins
Since WordPress 5.2, a fatal PHP error triggers the message “There has been a critical error on this website” and an email to the admin address. That email names the plugin or theme at fault, the file and the line, and carries a link to recovery mode that is valid for a limited time.
If the email does not arrive, enable WP_DEBUG and WP_DEBUG_LOG temporarily in wp-config.php, leaving WP_DEBUG_DISPLAY false: the error is then written to wp-content/debug.log without being shown to visitors. A line like “PHP Fatal error: Uncaught Error: Call to undefined function”, or “Allowed memory size exhausted”, is often enough to name the cause.
Disabling a component with no access to wp-admin
When the admin stops answering, rename the offending plugin's folder in wp-content/plugins over FTP or with the file manager: WordPress treats it as disabled on the next load. For a theme, rename its folder; WordPress then falls back to a default theme if one is installed.
With SSH access, WP-CLI does the same thing more cleanly: wp plugin deactivate plugin-name, or wp plugin deactivate --all for a quick test. Remember to turn WP_DEBUG back off once you have found the cause, and delete debug.log if it is publicly reachable.
Causes to check
For a WordPress critical error, the 4 causes below are ranked from the commonest to the rarest. Test the one matching the site’s most recent change first, one at a time.
A plugin incompatible with the PHP or WordPress version
A fatal error introduced in the theme or a code snippet
PHP memory exhausted during loading
An interrupted update leaving files in an inconsistent state
The recovery email WordPress sends, the Site Health report, the update history and the PHP logs often name the file and the line at fault. Start from that evidence rather than disabling plugins at random.
A good fix does not merely make the symptom disappear. It explains why the problem appeared and how to check that it does not come back.
Precautions before starting
Make a full backup of the files and the database, even if an automatic backup already exists, and write down the versions of WordPress, the theme, the plugins and PHP. Keep that copy off the server in question, and check it opens.
If the site is still taking form submissions or orders, plan a short maintenance window so nothing is written while you work.
Which cause best matches your situation?
Pick the situation closest to what you are seeing to get the first recommended action.
Want a human opinion on your exact situation?
Get a recommendationDiagnosis and fix
| Phase | Objective | A mistake to avoid |
|---|---|---|
| Observe | Reproduce it and gather the evidence | Changing several settings before you have a baseline |
| Isolate | Confirm the component or the rule responsible | Deleting files without keeping a copy |
| Fix | Apply the smallest documented change | Restoring a version that still contains the same cause |
| Validate | Test the whole journey and monitor it | Concluding from the home page loading alone |
How do I resolve a WordPress critical error step by step?
The 4 steps below tackle a WordPress critical error from the least intrusive to the heaviest. After each change, repeat the same test; if nothing changes, go back to the previous state before moving on to the next step.
- 01
Step 1
Read the recovery email and the PHP logs to identify the component at fault.
- 02
Step 2
Enable recovery mode, or disable the plugin concerned from the files.
- 03
Step 3
Restore only the healthy component, or fix the error on a test copy.
- 04
Step 4
Re-enable the pieces one by one, then purge the caches.
check the front end, wp-admin and the scheduled tasks.
Validate the resolution
Walk through the journey that was failing, then check the admin, the editor, the media library, the forms and user login. Clear the caches (plugin, server and CDN) before you conclude, or an old version can hide the result.
Validation checks
Watch the PHP log for a few days: some errors only surface when a scheduled task (WP-Cron) or a nightly backup runs.
Prevent a recurrence
Prevention has to answer the cause you identified. For a WordPress critical error, the first measure is “Test updates on a staging site”; note too the signal that would have shown the incident sooner, and who is responsible for watching for it.
Test updates on a staging site
Keep a compatible PHP version
Receive the technical alerts
Limit unmaintained plugins
Apply updates on a staging copy, or failing that after a verified backup, one plugin at a time. Checking the key pages after each update catches most regressions before visitors do.
Frequently asked questions about a WordPress critical error
I am not getting the recovery-mode email, what should I do?
Check the admin email address in Settings > General, and your spam folder. If the server sends no email, enable WP_DEBUG_LOG in wp-config.php: the fatal error will be written to wp-content/debug.log with the file and line at fault.
Can a critical error come from the hosting?
Yes. A change of PHP version, a memory limit set too low or a missing PHP extension all cause a fatal error without the site changing at all. Compare the active PHP version with the versions your plugins support.
Does recovery mode fix the problem?
No. It only pauses the component at fault for your admin session so you can log in. The component then has to be updated, replaced or fixed, otherwise the error comes back for visitors.
How do you check the fix will hold?
Check the front end, wp-admin and the scheduled tasks. Confirm there is no new fatal error in the logs. Test a backup once things are stable. Then watch the logs, the alerts and the relevant metrics for several days.
How to resolve it
If a WordPress critical error persists after these steps, we can pick the diagnosis up again from your logs and your access details, without acting blind on the site.
Get a diagnosisSummary with an AI
Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

































🍪