“There has been a critical error on this website”: what it means and what to do

Short answer: a plugin, your theme or your server’s PHP setup hit a fatal error, and WordPress stopped loading the page rather than show a broken one. It’s almost always fixable, and your content is usually safe.

What the message means

Since version 5.2, WordPress catches fatal PHP errors and shows this message instead of a blank white screen. The most common causes:

  • A plugin update that clashes with another plugin, your theme or your PHP version
  • A theme update or a change to theme files
  • A PHP version change by your host (newer PHP can break old plugins)
  • The site running out of memory
  • A corrupted file after an interrupted update

Step 1: Check your email

WordPress usually emails the site’s admin address when this happens. The subject mentions a technical issue on your site. That email names the plugin or theme that caused it and contains a recovery mode link.

Click the link, log in, and WordPress lets you into the dashboard with the faulty plugin paused. Deactivate it there, and your site should come back.

No email? Check spam, and check which address is set as the admin email. On many sites, it’s an old address nobody reads.

Step 2: Think about what changed

Ask yourself what happened just before the error:

  • Did you (or someone) update a plugin, theme or WordPress itself?
  • Did you install something new?
  • Did your host send a notice about a PHP upgrade or server maintenance?

The answer usually points straight at the cause.

Step 3: Disable plugins without the dashboard

If you can’t get into the dashboard, you can still turn plugins off through your hosting file manager (in cPanel) or FTP:

  1. Go to the folder wp-content.
  2. Rename the folder plugins to plugins-off. This deactivates every plugin at once.
  3. Load your site. If it works, a plugin was the cause.
  4. Rename the folder back to plugins, then go to Plugins in the dashboard and reactivate them one by one until the error returns. The last one you activated is the culprit.

If the site still shows the error with plugins off, the theme is the next suspect. Renaming your active theme’s folder inside wp-content/themes makes WordPress fall back to a default theme, as long as one is installed.

Step 4: Turn on debugging to see the real error

In wp-config.php (in your site’s main folder), find the line that says define( 'WP_DEBUG', false ); and replace it with:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Reload the site, then open wp-content/debug.log. The last lines show the exact error and the file it came from. Switch debugging off again when you’re done.

What not to do

  • Don’t reinstall WordPress from scratch or delete your site to “start again.”
  • Don’t edit files you don’t understand without a backup.
  • Don’t keep clicking update on everything, hoping it fixes itself.

When to call for help

Call a professional if you’re not comfortable in the file manager, if the error came back after you fixed it, or if your site takes payments and every hour costs you sales.

Stuck? Report your issue for a free, no-obligation quote. On a WP Doctor care plan, every update is preceded by a full backup, and if a routine update causes a critical error, fixing it is included.

Not sure how healthy your site is?

Get a free WordPress health check. We check your site from the outside and email you a plain-English report within one working day. No logins, no obligation.

← All guides