WordPress is very reliable, but a single plugin update can still take your whole site offline with one short message: "There has been a critical error on this website." Your visitors see nothing else, and sometimes you can't reach the dashboard either. If that is happening to you, this article will help you.
We are here to help you find the cause and bring your site back, step by step. This is one of the most common problems WordPress users ask about. When we checked the WordPress.org Fixing WordPress support forum on November 30, 2026, four of its 93 most recent threads were about this exact message, more than any other single error.
Related Articles
- How To Fix The WordPress White Screen Of Death
- How To Debug WordPress
- How To Back Up And Restore WordPress
What "Critical Error On This Website" Means
The message appears when PHP hits a fatal error and WordPress can't finish loading the page. Before WordPress 5.2, the same problem showed a blank white screen. Since 5.2, WordPress catches the error, shows this message and emails the site's admin a special login link, called recovery mode, as explained in the WordPress 5.2 developer note.
In almost every case, the cause is a plugin, a theme, or a mismatch with your server's PHP version. Your posts and pages are safe in the database. The error only stops the code from running.
How We Tested It
We reproduced the error on a fresh WordPress 7.1.5 site with PHP 8.3, which we named "Rahul Vithala". We made a small test plugin, "Demo Store Add-on", that calls a WooCommerce function. Then we updated it while WooCommerce wasn't installed, which is a common real-world cause: an add-on running without the plugin it needs.
The moment version 1.1 was active, every page broke. Visitors saw only the short message. As the logged-in admin, we saw a longer version that told us to check our email.

Quick Checklist
If you are in a hurry, work through these in order. Each step is explained below.
- Look for the recovery email and use its link to deactivate the plugin it names.
- No email? Turn on the debug log and find the file that failed.
- Rename that plugin's folder in File Manager or FTP.
- If the log points to your theme, rename the theme's folder.
- If the log mentions memory or PHP, fix the server setting.
Step 1: Check Your Admin Email For The Recovery Link
First, open the inbox of the address under Settings → General → Administration Email Address. WordPress sends an email with the subject "Your Site is Experiencing a Technical Issue", according to its source code. It names the plugin or theme that failed and includes a recovery mode link.
Next, click the link and log in. In recovery mode, the broken plugin is paused for you, so you can open Plugins and deactivate it, then update or replace it. By default, WordPress sends at most one of these emails a day.
Our browser-based test site has no mailbox, so we couldn't check this email. If it doesn't arrive on your site, move on to Step 2.
Step 2: Turn On The Debug Log
The debug log tells you exactly which file caused the error. Open wp-config.php in your host's File Manager or by FTP, and add these lines above the line that says "That's all, stop editing!":
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Now reload your site once. Then open wp-content/debug.log. On our test site, the first line pointed straight at the culprit: "Call to undefined function wc_get_product()" in /wp-content/plugins/demo-store-addon/demo-store-addon.php. The folder name after /plugins/ or /themes/ tells you what to disable.

The official debugging guide explains these settings. Set WP_DEBUG back to false when you are done, because the log can grow large and may show file paths.
Step 3: Disable The Plugin By Renaming Its Folder
If you can't reach the dashboard, you can still switch off a plugin. In File Manager or FTP, go to wp-content/plugins and rename the plugin's folder. We renamed demo-store-addon to demo-store-addon-off with our test setup's file tools, which works the same way as renaming it in File Manager.
After that, our site loaded normally again. On the Plugins screen, WordPress showed: "The plugin demo-store-addon/demo-store-addon.php has been deactivated due to an error: Plugin file does not exist."

Don't know which plugin it is? Rename the whole plugins folder to plugins-off. If the site comes back, rename it to plugins again and reactivate your plugins one at a time until the error returns. That last plugin is the cause.

Step 4: Check Your Theme
If the log points to a file in /wp-content/themes/, rename your active theme's folder. WordPress then falls back to a default theme, such as Twenty Twenty-Five, if one is installed. That's why we recommend keeping one default theme on every site, even if you never use it.
Step 5: Check PHP Version And Memory
Some errors in the log point to your server instead:
- "Allowed memory size … exhausted": raise the PHP memory limit, as shown in our memory limit guide.
- Errors right after a PHP upgrade: an old plugin may not support your new PHP version. Check the plugin's page on WordPress.org for its "Requires PHP" line, and update or replace it. Our guide to updating PHP in WordPress explains how to switch versions safely.
- Errors in
wp-adminorwp-includesfiles: a core update may have failed. Restore a backup, or upload fresh copies of those two folders from WordPress.org.
Common Mistakes When Fixing It
- Deleting the plugin instead of renaming it: renaming is easy to undo, and you can rename the folder back once an update is available. Deleting it throws away your chance to compare versions.
- Editing wp-config.php in a word processor: apps like Word can turn straight quotes into curly ones, and PHP then fails with a new error. Use your host's code editor or a plain text editor.
- Showing errors to visitors: keep
WP_DEBUG_DISPLAYset tofalse, so error details go to the log file, not onto your pages. - Updating everything at once: if ten plugins update together and the site breaks, you have ten suspects instead of one.
How To Prevent The Critical Error
- Take a backup before every update, so you can roll back in minutes.
- Test big updates on a staging site first.
- Update plugins one at a time, not all at once, so you know which one broke the site.
- Make sure your admin email works, because that is where the recovery link goes. An SMTP plugin helps if your host can't send email.
Critical Error On This Website: FAQs
Will I lose my posts and pages?
No. Your content is stored in the database, and the error only stops PHP from building the page. Once you fix the cause, everything comes back.
Does this message mean my site was hacked?
Usually not. It is normally caused by an update or a conflict. But if the log points to a plugin you never installed, treat it as a possible hack and contact your host.
Why didn't I get the recovery email?
Either the administration email address is wrong, or your server can't send email. Use the debug log and folder renaming steps instead, and fix your site's email afterwards.
Final Words
The critical error on this website looks scary, but it nearly always comes down to one plugin, a theme or a PHP setting. Check the recovery email, read the debug log, and rename the folder it points to. In our test, renaming one folder brought the site back. Let us know in the comments which plugin caused the error on your site.
Sources
We checked these sources for this guide on November 30, 2026:
- Fatal error recovery mode in WordPress 5.2, Make WordPress Core
- Debugging in WordPress, WordPress Developer Resources
- Common WordPress errors, WordPress.org Documentation
- Recovery mode email code, WordPress on GitHub
- Fixing WordPress forum, WordPress.org Support




