"There Has Been a Critical Error on This Website" in WordPress: Fix
WordPress shows a critical error message. Use the recovery email or the error log to find the plugin or theme and switch it off.
This message appears when WordPress hits a fatal PHP error. Since WordPress 5.2 it shows this message instead of a blank page, and it usually sends an email with a recovery link.
Step 1: Check your admin email

WordPress emails the site administrator address with the subject "Your Site is Experiencing a Technical Issue". The email names the plugin or theme at fault and has a recovery mode link. Open the link, log in, and deactivate that plugin or theme.
Step 2: No email? Read the error log

Open wp-config.php and add the three debug lines from our white screen guide. The log at wp-content/debug.log names the file that failed.
Step 3: Switch it off

Rename the plugin folder in wp-content/plugins, or the theme folder in wp-content/themes, by adding -off to its name. Reload the site.
Common causes
- A plugin or theme update that does not support your PHP version.
- Two plugins that clash.
- An old plugin on a newer PHP version, for example after the host moved you from PHP 7.4 to PHP 8.
- A code snippet added to
functions.phpwith a typo.
If you edited functions.php
Open the file in File Manager and undo your last change. A missing semicolon or bracket is enough to cause this.
After the fix
Update plugins one at a time, and keep a backup before each update.
Related guides
- Writing Clear Error Reports: Screenshots, URLs and Steps
- WordPress Tag and Date Archives Duplicate Content: Settings
- WordPress Permalinks Change: Redirect Old URLs and Avoid 404s
- Error Establishing a Database Connection in WordPress: Full Checklist