There Has Been a Critical Error on This Website: Fix It
There has been a critical error on this website? Use the recovery email, debug log and plugin checks to fix WordPress fast and stop it from happening again.

Quick answer: There has been a critical error on this website is the message WordPress shows when PHP hits a fatal error and stops loading the page. The cause is usually a plugin, a theme, an outdated PHP version, low memory or a broken update. Check your admin email for the recovery link, read the debug log, then disable the faulty plugin or theme.
Bianca Halvorsen opened her laptop at 7:40 on a Monday morning in April, coffee in one hand, and typed in the address of her own shop.
Ferncrest Bike Works sits a few blocks from the river path in Eugene, Oregon. Spring is her busy season, and most customers book a tune up or a rental on her website. She checks the calendar before she unlocks the door.
The calendar did not load. Neither did the home page. Just a white screen with one plain line of text.
The full message reads: There has been a critical error on this website. WordPress had added a small troubleshooting link under it. No logo, no menu, no booking button.
She called her nephew Archer, who had built the site four years earlier as a summer project. He was in a lecture in Portland and texted back one question. Did you get an email from WordPress?
She had not. And that missing email turned out to be the first clue.
What there has been a critical error on this website actually means
WordPress runs on PHP, the programming language your server uses to build each page. When PHP code fails so badly that it cannot continue, that is a fatal error.
WordPress 5.2 added a safety net called fatal error recovery mode. Now, instead of a blank page, visitors see the critical error message, and WordPress tries to email the site's admin address with details and a special login link.
So in WordPress, there has been a critical error on this website does not mean you were hacked or that your content is gone. Your pages, posts and orders are still in the database. Some code broke, and WordPress stopped rather than show a half built page.
The usual suspects, according to the official WordPress common errors guide, are:
- A plugin that conflicts with another plugin, your theme or WordPress itself
- A theme with broken or outdated code
- A PHP version that is too old (or too new) for one of your plugins
- The PHP memory limit being too low
- An update that stopped halfway and left files corrupted
If your site shows strange redirects, spam pages or a Google warning instead, that is a different problem. Our guide on what to do when WordPress is hacked covers it.
What the downtime costs: the money math
While Archer sat through his lecture, Bianca did the math on a napkin. Here is the example math she used. Plug in your own numbers.
- In spring, her site took about 14 online bookings a day, tune ups and rentals together
- Her average booking was about $95
- The site had broken around 2 a.m. Monday, and at that point she had no idea how long the fix would take
- A day and a half offline means about 21 lost bookings, or roughly $1,995
- Even if half of those customers called the shop instead, she would still lose about $1,000
Turn it into a cost per hour. Say your site brings in 3 leads an hour during the workday, you close 1 in 4 and the average job is worth $400. Every hour your site shows the critical error costs about $300. Eight hours is $2,400. That is example math, not a statistic. Your traffic and close rate will differ.
The error message is free. The hours it sits there are not.
Site showing the critical error right now and every hour hurts? π Get My WordPress Site Fixed β
How to fix a WordPress critical error, step by step
Archer called at 10:15, between classes, and walked his aunt through the same steps we follow. Work through them in order and stop when the site comes back. First, if your host offers a backup or snapshot button, take one now.
Step 1: Look for the recovery mode email
When the error happens, WordPress sends an email to the admin address set under Settings, then General. The subject usually mentions that your site is experiencing a technical issue. Inside, it names the plugin or theme that caused the error and gives you a recovery link.
Click that link and log in. WordPress pauses the broken plugin or theme for you only, so you can reach the dashboard and deactivate it. Your visitors will still see the error until you do.
Bianca never got the email. The admin address was still Archer's old college email, unopened for two years. This happens a lot. Check spam too, and know that some servers cannot send email at all without an SMTP plugin.
Step 2: Turn on the debug log and read it
If there is no email, make WordPress tell you what broke. Connect to your site with your host's file manager or an FTP app, open the wp-config.php file in the main folder 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 );
The first line turns on debug mode. The second saves errors to a file called debug.log inside the wp-content folder. The third keeps those errors off the public page, so visitors never see file paths. This setup comes straight from the WordPress debugging documentation, which also warns that debug tools are not meant to stay on for a live site.
Reload your site once, then open wp-content/debug.log and find the line that starts with PHP Fatal error. A file path inside wp-content/plugins points to that plugin. One inside wp-content/themes points to your theme.
Bianca's log pointed straight at her booking plugin. It had updated itself overnight.
When you are done, set WP_DEBUG back to false and delete debug.log. That file can be opened by anyone who guesses the address, and it can reveal details about your server.
Step 3: Deactivate plugins by renaming the folder
If you cannot log in, you can still switch plugins off from the file manager. Go to wp-content, find the folder named plugins and rename it to plugins_old. WordPress can no longer find any plugins, so it deactivates all of them. The WordPress docs recommend exactly this approach.
If the site loads now, a plugin was the cause. Rename the folder back to plugins. Then go to the Plugins screen in your dashboard and activate them one at a time, reloading the site after each one. The one that brings the error back is your culprit.
If the log already named the plugin, just rename that one plugin's folder instead.
Step 4: Switch to a default theme
If plugins were not the problem, test the theme. In wp-content/themes, rename your active theme's folder. WordPress will fall back to a default theme such as Twenty Twenty-Five, if one is installed. If the site loads, your theme or a recent edit to its functions.php file is at fault.
Custom themes built years ago are frequent offenders, because they were written for older PHP versions.
Found the broken plugin but not sure what replaces it safely? π Talk Through My Fix With Us β

Other causes of the WordPress critical error
Plugins and themes cause most cases. These three cover most of the rest.
PHP version incompatibility
Every plugin is written for a range of PHP versions. When your host runs an older version than a plugin needs, or when the host upgrades PHP and an old plugin cannot handle it, you get a fatal error.
That was Bianca's real problem. Her booking plugin's new version required a newer PHP version, and her hosting plan was still running PHP 7.4. The WordPress requirements page currently recommends PHP 8.3 or newer and notes that 7.4 has reached end of life. You can see your version under Tools, then Site Health, then Info, then Server. Most hosts let you change it in the control panel. Change it on a staging copy first if you can, because a newer PHP can break an old theme just as easily.
PHP memory limit
If the log says Allowed memory size exhausted, WordPress ran out of memory. The wp-config.php documentation explains that WordPress tries to set 40MB for a single site by default, and you can raise it with a line like this in wp-config.php:
define( 'WP_MEMORY_LIMIT', '256M' );
Some hosts cap memory and ignore this setting, so you may need to ask them. If the site keeps running out anyway, look for a heavy plugin.
Failed or partial updates
If an update times out halfway, some files are new and some are old, and the mix can crash PHP. Delete the broken plugin's folder and upload a fresh copy from wordpress.org or the vendor. If the site is stuck on a Briefly unavailable for scheduled maintenance message, delete the .maintenance file in your site's main folder, as the WordPress docs describe.
When to restore a backup or call your host
If none of the steps above work, or the log points to a WordPress core file rather than a plugin or theme, restoring a backup is often the fastest way back. Most hosts keep daily backups. Pick the last one from before the error appeared. You may lose anything added since then, like a recent order or blog post, so write those down first.
Your host's support team can also read the server's own error logs, check your PHP and memory settings and roll back a backup. Give them the time the error started and any line from debug.log.
A critical error WordPress keeps showing, or one that returns every few weeks, usually means old code: an abandoned plugin, a theme built for PHP 7, or ten plugins doing the job of three. At some point the patchwork costs more than a rebuild. Our checklist of signs your website needs a redesign helps you decide.
How Bianca got Ferncrest back online
Here is how the morning ended. Following Archer's instructions, Bianca opened the file manager in her hosting account, found the booking plugin's folder in the log and renamed it. The home page came back at 10:40. The booking calendar did not, because the plugin was now off.
She opened a chat with her host, and they switched her plan to PHP 8.3. That evening Archer renamed the plugin folder back, tested a booking, fixed two theme warnings the log showed on the new PHP and turned debug mode off.
Total time the booking calendar was down: about 17 hours instead of a day and a half. Using her napkin math, that is still roughly 10 lost bookings, or about $950, before counting the customers who called instead. Example math again, but it was enough to change how she ran the site.
How to prevent the critical error in WordPress
You cannot make a WordPress site immune to errors. You can make them rare and short. This is the routine Archer set up for his aunt.
- Fix the admin email: an inbox someone reads daily, and confirm the site can actually send mail.
- Use a staging site. Run updates on the copy first, book a test appointment, then push changes live.
- Back up every day, keep one copy away from your host and test a restore now and then.
- Update on a schedule, one plugin at a time, never the night before your busiest day.
- Delete plugins you do not use. Deactivated plugins are still code on your server.
- Check your PHP version twice a year and plan upgrades before your host forces them.
- Add uptime monitoring so you hear about downtime at 2 a.m., not from a customer.
If that sounds like a part time job, it is. Our guide on website maintenance explains why it pays off, and this breakdown of what website maintenance includes shows the tasks month by month.
Rather never see that white screen again? π Keep My WordPress Site Healthy β
Frequently asked questions
What does there has been a critical error on this website mean?
It means PHP hit a fatal error while loading your WordPress site and had to stop. A plugin, theme, PHP version, memory limit or failed update is usually the cause. Your content is still in the database.
Why didn't I get the WordPress recovery mode email?
The admin email under Settings, then General, may be outdated, the email may be in spam, or your server may not be able to send mail. Turn on the debug log to find the cause without it.
How do I fix the error if I can't log in to WordPress?
Use your host's file manager or FTP. Rename the wp-content/plugins folder to deactivate all plugins, or rename your theme's folder to fall back to a default theme.
Where is the WordPress debug log?
With WP_DEBUG and WP_DEBUG_LOG set to true in wp-config.php, errors are saved to wp-content/debug.log. Delete the file and turn debugging off when you are done.
Can a critical error hurt my Google rankings?
A few hours of downtime is unlikely to cause lasting harm, but a site that stays broken for days can lose visibility as Google keeps finding errors. The bigger loss is usually the customers who leave.
Get help with your WordPress site
Bianca still gets an email every Monday now. It comes from her maintenance plan, it says everything updated fine, and it lands in an inbox she actually reads. The best critical error is the one you only hear about after it was fixed.
At Web Design Studios in Morrisville, North Carolina, we fix broken WordPress sites, clean up plugin clutter, upgrade PHP safely on a staging copy and can take over the weekly updates and backups for you. If your site is old enough that fixes keep piling up, we can also rebuild it on clean code, with website packages starting at $299 for up to 3 pages.
Want a second set of eyes on your WordPress site before the next update? π Ask Us to Check My Site β
We also offer website redesign, website development and technical SEO. Or explore all our services.
Bianca, Archer and Ferncrest Bike Works are a composite based on the conversations we have with small business owners every week.
