Guide. Updated 1 December 2026. 3 minute read.

"There has been a critical error on this website": what it means and how to fix it

The message looks alarming, but it usually means one plugin, theme or setting stopped working after a change. Your content is almost always still there.

Since WordPress 5.2, a fatal PHP error no longer shows a white screen. Instead visitors see one line, There has been a critical error on this website, and WordPress emails the site's admin address with details and a special login link. Here's how to get from that message to a working site.

Step 1: check the email WordPress sent

Look in the inbox of the site's admin email for a message titled Your Site is Experiencing a Technical Issue. It names the plugin or theme that caused the error, and contains a recovery mode link. That link logs you in with the faulty plugin paused, so you can deactivate it, update it or roll it back from the normal Plugins screen.

If the email names a plugin, that's usually the whole fix: deactivate it, check the site works, then decide whether to update, replace or roll it back.

Step 2: no email? Read the error log

Most hosts keep a PHP error log in the control panel. If yours doesn't, WordPress can write its own. Add these lines to wp-config.php, above the line that says That's all, stop editing:

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

Reload the broken page, then open wp-content/debug.log. The line you want starts with PHP Fatal error, and it looks like this (an example):

PHP Fatal error:  Uncaught Error: Call to undefined function some_function()
in /var/www/html/wp-content/plugins/example-plugin/includes/init.php:42

The path tells you the culprit: here, the plugin in the example-plugin folder. Remove the three lines again when you're done; a debug log left switched on can grow large and shouldn't be public.

Step 3: switch off the culprit without logging in

If you can't get into the dashboard, use your host's file manager or SFTP:

  • A plugin: rename its folder in wp-content/plugins, for example example-plugin to example-plugin-off. WordPress deactivates it automatically.
  • The theme: rename the active theme's folder in wp-content/themes. WordPress falls back to a default theme if one is installed, so your site will look different but work.

Reload the site. If it works, you've found it.

The usual causes

  • A plugin update that clashes with another plugin or your PHP version. The most common cause by far.
  • A PHP upgrade by your host. Older plugins and themes written for PHP 7 can fail on PHP 8.
  • Memory limit. The log says Allowed memory size of … bytes exhausted. Your host can raise the PHP memory limit; also find out what is using so much.
  • A half-finished update that timed out, leaving a mix of old and new files. Reinstalling the plugin or WordPress itself fixes it.
  • An edit to theme files (functions.php) with a typo in it.

When to stop and get help

Stop if the log points at WordPress's own files (wp-includes or wp-admin), if several plugins fail at once, if you see files you don't recognise, or if the site handles orders and every minute counts. Unfamiliar files and sudden errors can also be signs of a hack, and renaming folders won't fix that.

Our WordPress fix covers exactly this: we find the cause in the logs, take a full backup before changing anything, fix it and test it on desktop and mobile, usually within one working day, for a fixed £149 + VAT.

Rather we fixed it?

WordPress fix: One defined problem fixed: critical error, white screen, plugin clash, broken form.

Questions

Have I lost my website?

Almost never. The critical error stops pages from being built, but your posts, pages and images are still in the database and on the server. Once the faulty part is switched off, the site comes back as it was.

I didn't change anything. Why did it break?

Something changed even if you didn't: a plugin updated itself overnight, or your host moved the server to a newer PHP version. Both are common causes.

I don't get the recovery email. What now?

It goes to the site's admin email address, which is often an old address or a developer's. Check spam folders, then use the file method in this guide, which doesn't need the email.

Can I just restore yesterday's backup?

Yes, if you have one and nothing important happened since (orders, enquiries, new content). It's a fast way back, but the faulty update will usually reinstall itself, so you still need to find the cause.

Tell us what's wrong. We'll fix it.

Pick a fix and order online, or send us a message for a fixed quote.