Key points
- The message hides a fatal PHP error, usually from a plugin or the theme.
- The debug log names the file and line at fault.
- Recovery mode lets you disable the culprit without FTP.
One update, and suddenly the site shows a single sentence: “There has been a critical error on this website.” It is one of the fixes we are asked for most often, and the cause takes minutes to find if you go step by step.
1. Look for the recovery email
Since WordPress 5.2, an email goes to the admin address with a “recovery mode” link. It opens the dashboard with the faulty plugin or theme paused. Check your spam folder.
2. Turn on the debug log
If no email arrives, add these lines to wp-config.php, just above “That’s all, stop editing!”:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
Reload the page and open wp-content/debug.log. The last “PHP Fatal error” line gives the file and line; the path tells you right away whether it is a plugin (/plugins/name/) or the theme.
3. Disable the culprit
Using FTP or your host’s file manager, rename the plugin folder (for example woocommerce to woocommerce-off). WordPress deactivates it. For a theme, rename its folder and WordPress falls back to a default theme if one is installed.
The causes we see most
- A plugin that is not compatible with the server’s PHP version, often after moving to PHP 8.
- Code pasted into
functions.phpwith a syntax error. - An interrupted update that left incomplete files.
- A PHP memory limit set too low.
FAQ
Should WP_DEBUG stay on?
No. Once fixed, set WP_DEBUG back to false and delete debug.log, which can contain sensitive information.
Can I lose my content?
No: posts and pages live in the database. Renaming a plugin folder deletes nothing.
Facing this on your site? We diagnose and fix it without putting your content at risk.



