Last updated: · By Asael Dreyer
In short: The message “There has been a critical error on this website” appears when the PHP code of a plugin, theme or core file crashes with a fatal error. Since WordPress 5.2, the site emails the admin a link to Recovery Mode, which disables the faulty component for you only, so you can log in and fix it. In most cases the fix takes 10 to 20 minutes: find the component in the error log, disable it, then update or replace it.
⏱ Time to fix: 10 to 20 minutes · Difficulty: medium · Last checked: 7 Nov 2026 against the WordPress 7.1.4 core code and my own site
At a glance: WordPress Recovery Mode (as of WordPress 7.1.4, 7 Nov 2026)
- Who gets the email: the address in the RECOVERY_MODE_EMAIL constant if it’s set, otherwise the admin email in the site settings.
- Email subject: “Your Site is Experiencing a Technical Issue”.
- Frequency: at most one email a day (the code’s default is one day).
- Link validity: at least as long as the frequency limit, meaning at least one day.
- What the link does: it disables the faulty plugin or theme only in your browser, not for visitors.
What is the WordPress critical error?
A fatal error in PHP is an error that stops the code from running immediately. WordPress itself can’t continue, so instead of a page it shows a generic message. Before version 5.2 the result was usually a white screen. Since then a mechanism was added that catches the error, shows a message and sends an email.
According to the core team’s official announcement, the link in the email sets a cookie in your browser and disables, in that browser only, the plugins and themes that caused the error. Everyone else keeps seeing the error message until you fix it.
In the WordPress 7.1.4 code I checked four wordings of the message. A regular visitor sees “There has been a critical error on this website”, and someone logged in with admin permissions sees an addition that points to checking their email or the plugins and themes screens.
How do you fix it with the recovery mode email?
This is the fast way, when the email has arrived. All the steps happen from the dashboard, with no FTP.
- Look in the site admin’s inbox for a message with the subject “Your Site is Experiencing a Technical Issue”. Check spam too.
- Read in the email which plugin or theme caused the error, and in which file and line.
- Click the Recovery Mode link and log in with an admin user.
- On the plugins screen you’ll see the paused component, with the reason. Deactivate it.
- Exit Recovery Mode with the button in the top bar, and check the site in an incognito window.
- Update the plugin to a fixed version or replace it, and only then activate it again.
What do you do when the recovery mode email doesn’t arrive?
That happens a lot, because most servers don’t send reliable email without SMTP configured. On Cloudways, for example, there is no mail server, and without an SMTP plugin or an email plugin, messages like this may not arrive. In that case you disable the plugin manually:
- Find the culprit in the error log. On Cloudways: Application, then Monitoring, Logs and Error Logs. Filter by Fatal error. According to the Cloudways documentation, it shows the last 1,000 lines. The full explanation is in the Cloudways logs guide.
- Connect to the files with SFTP or the file manager, and open the wp-content/plugins folder.
- Rename the folder of the plugin from the log, for example from plugin-name to plugin-name.off. WordPress will deactivate it automatically.
- If a theme is to blame, rename its folder in wp-content/themes. WordPress will switch to a default theme if one is installed.
- Check the site, and restore the original name only after an update or replacement.
To make sure the email arrives next time, set up SMTP. The steps are in the WP Mail SMTP guide.
What causes the critical error in WordPress?
The message is identical, but the error log says exactly what happened. These are the types I see most, and what each one means:
| What the log says | The usual cause | What to do |
|---|---|---|
| TypeError, Uncaught Error, Call to undefined function | A plugin incompatible with the new PHP version, or with the WordPress version | Update the plugin, or temporarily go back to the previous PHP version |
| Allowed memory size exhausted | The plugin or process used more memory than allowed | Raise memory_limit, and check what is using so much |
| Parse error / syntax error | A manual code change, in functions.php for example | Restore the file from backup, or fix the line |
| Cannot redeclare function | Two plugins, or a plugin and a theme, with the same function | Deactivate one of them |
| Failed opening required | A missing file after an interrupted update | Reinstall the plugin |
An example from the field: on 7 Nov 2026, while I was checking this site’s settings, I ran a small piece of PHP that passed a number to the count() function. PHP 8.4 doesn’t accept that, and the result was TypeError: count(): Argument #1 ($value) must be of type Countable|array, int given. That is exactly the error an old plugin causes after a PHP upgrade. Changing the PHP version on Cloudways is explained in the guide to changing the PHP version.
What did I see in my own site’s settings?
On 7 Nov 2026 I checked, read-only, the settings of cw-servers.com, which runs on Cloudways. These are the settings that determine what a visitor sees during an error:
| Setting | Value on my site | What it means |
|---|---|---|
| WordPress / PHP version | 7.1.4 / 8.4 | The Recovery Mode mechanism is active |
| WP_DEBUG | false | Error details aren’t shown to visitors |
| display_errors (PHP) | Off | The visitor sees only the generic message |
| log_errors (PHP) | On | The details are written to the error log |
| WP_DISABLE_FATAL_ERROR_HANDLER | Not set | Recovery Mode hasn’t been turned off |
| Last recovery email sent | 11 Apr 2023 | It happened to me once, too |
This is the right configuration for a live site: visitors don’t see file paths, and you find all the details in the log. Don’t leave WP_DEBUG on for a public site, because it exposes information. An explanation of turning debugging on temporarily is in the official WordPress documentation.
The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.
The offer ends on December 4, 2026 at 23:59 (UTC+2).
Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.
After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator
Start a free trial server, no credit card. When you move to a paid plan, the code ASAEL takes 30% off your bill for the first three months.
The link fills in the code on the signup form. Just make sure it shows up.
How do you prevent the critical error next time?
Most critical errors come from an update. Four habits cut the risk to almost zero:
- A backup before every update. On Cloudways you can back up an application in a click, and restore if something breaks. See the backups guide.
- Updates on staging first. You clone the site to a test environment, update there, and only then on the live site. The explanation is in the staging environment guide.
- Upgrade PHP carefully. Before moving to a new version, check that all your plugins support it. The PHP settings on Cloudways are in the PHP settings guide.
- Automatic updates with a check. Cloudways SafeUpdates updates, tests the site and rolls back if something breaks. See the SafeUpdates guide.
If the site returns a 500 error with no WordPress message, the problem is probably at the server level or in .htaccess. See the 500 error guide.
Don’t want to deal with this yourself? On the website maintenance page I’ve detailed what to include in a maintenance package and what it costs.
Frequently asked questions
It’s the message WordPress shows when the PHP code of a plugin, theme or core crashes with a fatal error. The site wasn’t necessarily hacked: usually it’s a plugin that isn’t compatible with the PHP version or the WordPress version. The exact details are in the error log.
Find in the error log which plugin caused the error, connect with SFTP or the file manager, and rename its folder in wp-content/plugins. WordPress deactivates it, and the site comes back. Then update or replace the plugin.
To the address in the RECOVERY_MODE_EMAIL constant in wp-config.php, if it’s set. Otherwise to the admin email in the site settings. Check spam too, and note that without SMTP configured the email may not arrive at all.
At least one day. In the core code, the link’s validity can’t be shorter than the email rate limit, whose default is one day. That’s also why at most one email a day is sent for the same problem.
Both usually come from a PHP fatal error. Since WordPress 5.2 the error is caught and a message with a recovery email is shown. A completely white screen appears when the error happens before the mechanism loads, or when it has been turned off.
Yes, and it’s one of the common causes. An old plugin that uses code the new PHP version doesn’t accept will crash, with a TypeError for example. Temporarily go back to the previous PHP version, update the plugin, and test on staging before the next upgrade.
Related guides
- The WordPress white screen
- Logs and debugging on Cloudways
- Error 500
- PHP settings on Cloudways
- Cloudways review
- All the guides on this topic: troubleshooting
Sources
- Fatal Error Recovery Mode in 5.2 – Make WordPress Core
- Debugging in WordPress – WordPress Developer Resources
- How to View Application Logs Using the Cloudways Platform – Cloudways Knowledge Base
- How to Resolve 500 Internal Server Error – Cloudways Knowledge Base
- The WordPress 7.1.4 core code (class-wp-fatal-error-handler, class-wp-recovery-mode, class-wp-recovery-mode-email-service) and my own site’s settings – read on 7 Nov 2026, read-only
Official sources: Fatal Error Recovery Mode in 5.2 and How to View Application Logs (Cloudways Knowledge Base). Written and checked by Asael Dreyer · Updated: 7 Nov 2026
Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details