Skip to content

There Has Been a Critical Error on Your Website: How to Fix It in WordPress

On this page

Last updated: · By

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.

  1. Look in the site admin’s inbox for a message with the subject “Your Site is Experiencing a Technical Issue”. Check spam too.
  2. Read in the email which plugin or theme caused the error, and in which file and line.
  3. Click the Recovery Mode link and log in with an admin user.
  4. On the plugins screen you’ll see the paused component, with the reason. Deactivate it.
  5. Exit Recovery Mode with the button in the top bar, and check the site in an incognito window.
  6. 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:

  1. 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.
  2. Connect to the files with SFTP or the file manager, and open the wp-content/plugins folder.
  3. Rename the folder of the plugin from the log, for example from plugin-name to plugin-name.off. WordPress will deactivate it automatically.
  4. If a theme is to blame, rename its folder in wp-content/themes. WordPress will switch to a default theme if one is installed.
  5. 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 saysThe usual causeWhat to do
TypeError, Uncaught Error, Call to undefined functionA plugin incompatible with the new PHP version, or with the WordPress versionUpdate the plugin, or temporarily go back to the previous PHP version
Allowed memory size exhaustedThe plugin or process used more memory than allowedRaise memory_limit, and check what is using so much
Parse error / syntax errorA manual code change, in functions.php for exampleRestore the file from backup, or fix the line
Cannot redeclare functionTwo plugins, or a plugin and a theme, with the same functionDeactivate one of them
Failed opening requiredA missing file after an interrupted updateReinstall 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:

SettingValue on my siteWhat it means
WordPress / PHP version7.1.4 / 8.4The Recovery Mode mechanism is active
WP_DEBUGfalseError details aren’t shown to visitors
display_errors (PHP)OffThe visitor sees only the generic message
log_errors (PHP)OnThe details are written to the error log
WP_DISABLE_FATAL_ERROR_HANDLERNot setRecovery Mode hasn’t been turned off
Last recovery email sent11 Apr 2023It 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.

Black Friday80% off
80% off 2 months of managed hosting

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).

Ends in—days—hours—minutes—seconds
Code:
Grab the 80% now

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

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.

Frequently asked questions

What does There has been a critical error on this website mean?

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.

How do I fix a WordPress critical error without dashboard access?

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.

Where is the recovery mode email sent?

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.

How long is the recovery mode link valid?

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.

What is the difference between a critical error and a white screen?

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.

Can a PHP upgrade cause a critical error?

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.

Sources

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

Picture of Asael Dreyer
Asael Dreyer

Hi, I'm Asael Dreyer, CEO of an SEO agency that runs hundreds of websites hosted on dozens of Cloudways servers.
Everything you will find here comes from hands-on experience, mine and my teams', straight from the field: from the guides to the recommendations. All to help you get the most out of Cloudways.

More about me →

Need help? Got a question about your server or this guide? Write to us and we will get back to you.

More guides on this topic:
מפריד
Thanks for your message!
We will get back to you soon.
Ready to get started?

Sign up with the coupon code ASAEL