# WordPress 'critical error on this website' fix

URL: https://wp24x7.com/fix/wordpress-critical-error/
Updated: 2026-11-29
Type: page
Audience: site owners seeing the critical error message

> The message 'There has been a critical error on this website' means WordPress caught a fatal PHP error. Check the administration email for a recovery mode link, which lets you log in with the faulty plugin or theme paused, then deactivate it. If no email arrives, read the debug log and rename the named plugin folder. Your content is not lost.

## Key facts

- For: owners whose site shows the critical error message
- First step: open the recovery mode email sent to the administration address
- No email: log errors to debug.log and rename the plugin or theme folder it names
- Content: not lost, it is stored in the database
- Help: emergency support responds in 15 minutes with service credits
- Pricing: rescue is pay-only-if-fixed; the quote comes before work starts

The message "There has been a critical error on this website" means WordPress caught a fatal PHP error. **Check the administration email for a recovery mode link, which lets you log in with the faulty plugin or theme paused, then deactivate it. Your content is not lost.**

## What does this error mean?

Since WordPress 5.2, a fatal error shows this message instead of a blank screen, and WordPress tries to email the administration address a special link. That link opens recovery mode, where the plugin or theme that crashed is paused only for you, so you can reach the dashboard and fix it.

## What are the common causes?

| Cause | Typical trigger |
|:--|:--|
| Plugin update or new plugin | Conflict with another plugin or your PHP version |
| Theme update or bad edit | Changes to theme files, including `functions.php` |
| PHP version too new or too old | Host change or an old plugin |
| Failed core or plugin update | Files left half-written |
| Memory exhaustion | Import, backup or heavy page |
| Injected malicious code | Occasionally, in a plugin or theme file |

## What are the safe steps?

Back up the files and database first. All steps are reversible.

1. **Open the recovery email.** Search the administration inbox for a message from your own site about a technical issue. Click the link, log in, and read which plugin or theme it names. Deactivate it rather than deleting it.
2. **No email? Read the log.** Turn on logging (below), reload the page, then open `wp-content/debug.log` and find the latest "Fatal error" line. It gives a path inside `plugins` or `themes`.
3. **Disable the named plugin.** Over SFTP, rename its folder, for example to `plugin-name-off`.
4. **If no plugin is named,** rename the whole `plugins` folder, test, then restore it and re-test plugins one at a time.
5. **If the theme is named,** rename its folder so WordPress falls back to a default theme.
6. **Check the PHP version** in your hosting panel and try the one the site ran on before.
7. **Switch the debug lines off** once the site is back.

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

Add these above the "stop editing" comment in `wp-config.php`.

## How do I read the log line?

The wording of the message is generic, but the log is not.

| Log line contains | Usually means |
|:--|:--|
| `Call to undefined function` | A plugin expects another plugin or a newer WordPress |
| `Allowed memory size exhausted` | A memory limit was hit |
| `syntax error` | A recently edited file has a typo |

Keep the exact line, because it is what a developer needs. If the error appeared right after you clicked update, the thing you updated is the first suspect. If only one page shows it, look at a block, shortcode or template used only there.

> **What not to do**
Do not ignore the recovery email and start deleting plugins, do not delete `wp-config.php`, do not leave `WP_DEBUG_DISPLAY` on for a public site, and do not rerun a failing update repeatedly.

## A worked example

A site shows the critical error right after a theme update, and no recovery email arrives because its mail was already broken. The debug log names a file in the theme's `inc` folder and says a function is undefined: the theme calls a function that a companion plugin provided, and that plugin was deactivated last week. Reactivating the plugin fixes the page. Reinstalling WordPress would have changed nothing.

_The log line names the real culprit_

## Is it the same as a white screen?

They share a cause but not the symptom. The critical error message appears when WordPress can catch the failure. A blank page appears when the failure happens before that handler runs, or when display is off. The [white screen guide](/fix/wordpress-white-screen-of-death) covers the blank-page variant.

## How do I make the recovery email reliable?

Set the administration email under Settings, General to an inbox you read, and make sure the site can send mail; see [WordPress not sending email](/fix/wordpress-not-sending-email). Keep a note of how to reach your host's file manager or SFTP, since that route works when the dashboard does not.

## When should I stop and call someone?

Stop if the log names a core file, if the error is inside a premium plugin you rely on for payments or bookings, if no recovery email comes and you have no file access, or if you spot code you do not recognise. After the fix, read a plugin's changelog before updating again, or replace it if it is abandoned, and add a backup before the next round of updates using the [maintenance checklist](/wordpress-maintenance-checklist).

## How do we fix it?

[WordPress emergency support](/wordpress-emergency-support) answers within 15 minutes with service credits, and rescue is pay-only-if-fixed. We find the failing file, restore a working state, and tell you what to change so it does not return. If injected code caused it, we handle it under [malware removal](/wordpress-malware-removal).

**Site down with a critical error?**
A person reads it, at any hour.
[Post a project](/post-project)
[Call (804) 375-4450](tel:+18043754450)

## Frequently asked questions

### Where is the recovery mode email?

WordPress sends it to the site's administration email address. Check spam, and check whether that address is one you still read. If it does not arrive, use the file-based steps in this guide.

### Is the critical error the same as the white screen?

It is the same underlying problem, a fatal PHP error. Newer WordPress versions show a message instead of a blank page and can send a recovery link.

### Will deactivating a plugin lose its data?

Deactivating normally keeps the plugin's settings and data. Deleting a plugin can remove them, so deactivate first and delete only when you are sure.

### Should I reinstall WordPress?

Not as a first step. The error is usually a plugin or theme, and reinstalling core does nothing for that.

### What does 'Allowed memory size exhausted' in the log mean?

A page, import or plugin needed more memory than PHP allows. Raising the limit may help, but find what is using the memory too.

### What does 'Call to undefined function' mean?

Usually a plugin or theme expects another plugin, or a newer WordPress or PHP version, that is not present. Reactivating the missing plugin or matching versions often fixes it.

### Why did it appear only on one page?

The cause is likely a block, shortcode or template used only on that page. The log line will name the file involved.

### Can a PHP version change cause it?

Yes. Code written for another PHP version can fail on a newer or older one. Check the version in your hosting panel and try the one the site ran on before the problem.

### How do I make the recovery email reliable?

Set the administration email under Settings, General to an inbox you read, and make sure the site can send mail. Keep a note of how to reach your host's file manager or SFTP.

### Could the cause be malware?

Occasionally. If the log shows code you do not recognise inside a plugin or theme, stop and treat it as a possible compromise; malware removal handles that.

### What should I note down before asking for help?

When it began and what you did just before, the exact Fatal error line from debug.log with its file path, your PHP and WordPress versions, and whether wp-admin and the front end work.
