Key points
- "There has been a critical error on this website" almost always hides a PHP fatal error, named in debug.log or in the host's error log.
- The recovery mode email goes to the administration address: if it doesn't arrive, you have to use the files.
- Renaming an extension folder deactivates it without deleting any of its settings.
- The free Maintenance module keeps the two previous versions of each extension and theme, provided it is turned on before the update; nexya Pro automatically rolls back an update that breaks the site.
- nexya does not diagnose PHP errors in general and does not roll back the WordPress core.
Critical WordPress error: what this message really means
Since version 5.2, a critical WordPress error has been displayed as “There has been a critical error on this website”. Behind this, there is almost always a PHP fatal error: a plugin, theme, or WordPress file itself requested something that PHP could not execute, and the page came to a sudden halt.
WordPress intentionally hides the details from visitors. This is useful for security, but leaves the administrator without a clue. The phrase added below, which invites you to check the administrator’s inbox, refers to a specific email: the recovery mode email.
The usual causes are well known: a recently updated plugin or theme that conflicts with another, a PHP version changed by the host, PHP memory set too low, or a file modified by hand. The message remains the same in all these cases. You must therefore read the actual error before touching anything.
The recovery mode email, and why it doesn’t arrive
When WordPress detects a fatal error in a plugin or theme, it sends an email to the admin address set in Settings > General. This message names the plugin in question, often cites the file and line number, and contains a link that opens the admin area in recovery mode. The faulty plugin is paused there for your session only, while you fix it.
On forums, the same complaint keeps coming up: the email never arrived. Most cases are due to one of these reasons.
- The administration address is old or no longer checked: that of an agency, a former service provider, or a closed company.
- The site sends its emails via the server’s mail() function, without authentication: the message ends up in spam or is rejected along the way.
- WordPress does not send a new email for every error: after a first send, it waits before sending another. Therefore, also check for an older message, including your spam folder.
Reading the actual error: debug.log and server log
The exact message is worth more than any guesswork. Two places contain it.
The first is the WordPress debug log. In the wp-config.php file at the root of the site, add before the line asking to stop editing: define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_LOG’, true ); define( ‘WP_DEBUG_DISPLAY’, false );. Reload the crashing page, then open the wp-content/debug.log file.
The second is the host’s PHP error log, generally accessible from your control panel. It is useful when wp-config.php cannot be modified.
The line to look for starts with “PHP Fatal error”. The path that follows tells you who is responsible: wp-content/plugins/ points to a plugin, wp-content/themes/ to a theme. “Allowed memory size exhausted” indicates a lack of memory, not a broken plugin. Once the site is repaired, set WP_DEBUG back to false: on some servers, the debug.log file can be read from the outside.
Fixing a WordPress critical error, step by step
-
1
Check for the recovery mode email
Open the inbox of the administration address, including spam, and look for an older message if needed. If it's there, its link opens the administration with the faulty extension paused.
-
2
Read the exact error
Enable WP_DEBUG and WP_DEBUG_LOG in wp-config.php, reload the page, and then open wp-content/debug.log. The "PHP Fatal error" line gives the path of the problematic extension or theme.
-
3
Deactivate the culprit via files
Without administration access, use FTP or the file manager to rename the extension folder in wp-content/plugins, or the theme folder in wp-content/themes. Settings are preserved in the database.
-
4
Restore the previous version
Once the administration is back, turn on the Maintenance module from the hub if you haven't already, then restore one of the two versions saved before the update. Copies only exist for updates made while the module was turned on.
Without wp-login access: disabling the plugin via files
When the error also affects the login page, the administration area will not open at all. You still have access to the files: FTP, SFTP, or the host’s file manager.
In wp-content/plugins, rename the folder of the plugin named in the error, for example by adding “-off” to the end. WordPress will no longer find it and will deactivate it. If the error points to a theme, rename its folder in wp-content/themes: WordPress will fall back to a default theme, if one is still installed.
If no name appears, rename the entire plugins folder, check if the site comes back, then restore its name and reactivate the plugins one by one. It is slow, but safe.
Nothing is erased: settings remain in the database. Restoring the folder’s name puts the plugin back just as it was, error included.

Restoring the previous version with the Maintenance module
Once the administration area is back, you have to decide what to do with the faulty plugin. If the crash followed an update, reverting to the previous version is often the simplest answer while waiting for the author to publish a fix.
The nexya Maintenance module keeps the two previous versions of each plugin and theme, set aside before they were updated. You can restore one from the administration area without searching for an old archive or going through FTP. The module is part of the free version and is enabled from the hub.
One condition matters: these copies only exist for updates made while the module was enabled. You must therefore turn it on before the crash, not after.
During repairs, the same module can display a waiting page to visitors, while you continue to see the normal site. With nexya Pro, rollbacks happen automatically: an update that breaks the site is undone without you having to intervene.
Turning on the Maintenance module before an update ensures that the previous version still exists the day you need it.
What nexya does not do
nexya does not diagnose general PHP errors. The plugin does not read debug.log for you and does not fix a low PHP memory limit, an incompatible PHP version, or a manually modified file.
Nor does it roll back the WordPress core. If the error appears after an update to WordPress itself, you need to restore the extension or theme named in the error to a compatible version, or report it to its author.
Finally, when the error blocks everything, including the dashboard, the previous version kept by the module is only useful once access is recovered. Therefore, dealing with the files comes first.

Preparing for next time
Most prolonged outages are less about the error itself than what was missing when it happened. A few simple actions will make the next one shorter.
- Set an administration address in Settings > General that someone actually reads.
- Send the site’s emails through a reliable channel: the Mail module sends via SMTP, via an API, or through a connected Gmail or Microsoft 365 account, and keeps a log of every message.
- Turn on the Maintenance module before updates so that previous versions are saved.
- Take a database export with the same module before a major update.
- Turn on the Activity Log module, which shows who changed what, with before and after views: you can quickly link an outage to the change that preceded it.
FAQ
I didn't receive the administrator email, how can I reopen the site?
Use the files: FTP, SFTP, or the host's file manager. Rename the folder of the problematic extension in wp-content/plugins, or the entire plugins folder if you don't know which one it is. The administration usually comes back immediately.
I can't even open wp-login.php anymore, is it more serious?
No, it's the same error, which also affects the login page. The procedure remains the same: read the error in debug.log, then use the files to deactivate the named extension or theme.
Can the Maintenance module fix the site without admin access?
No. It restores the previous version of an extension or theme from the dashboard. If the dashboard no longer opens, you must first deactivate the problematic extension via the files.
Is automatic rollback free?
No. The free version keeps the previous versions and lets you restore one manually. Automatic rollback of an update that breaks the site is part of nexya Pro.
The error appeared after a WordPress update, can nexya roll it back?
No, the plugin does not roll back the WordPress core. Locate the problematic extension or theme in debug.log, then install a compatible version or report the issue to its author.
The modules in this post
Try nexya Pro free for 7 days
Every module, forms, newsletters and the page cache, on your site. No commitment.