Skip to main content
Guides

How to Fix the WordPress Critical Error

Habib AhmedBy Habib AhmedAugust 26, 20268 min read
WordPress critical error message with a Recovery Mode login screen on a laptop

The Websloop: UK & US web dev agency. We build fast, SEO-first websites that rank and convert.

Get a free quote

"There has been a critical error on this website" means a plugin, theme, or PHP problem crashed the site before the page could load. WordPress usually emails your admin address a Recovery Mode link. Click it to log in with everything disabled, find the cause, and fix it without touching code directly.

What This Error Actually Means

WordPress added this message in version 5.2 as a safety net. Instead of showing a blank white screen, it catches the fatal PHP error, stops the page from crashing completely, and offers a way back in. The error itself is generic on purpose. The real cause is always something specific, and finding it is the whole job.

What Causes It

A malfunctioning plugin is the most common trigger, according to WPBeginner's troubleshooting guide, usually right after an update. Five other causes show up again and again:

  • A theme with broken or incompatible code.
  • An outdated PHP version that a plugin no longer supports.
  • The PHP memory limit getting exceeded by a resource-heavy plugin.
  • A corrupted database table or a wrong database password in wp-config.php.
  • Malware, a hacked file, or incorrect file permissions.

We've hit this exact error on Banksia Breeze Projects, a renovation company's WordPress site we maintain. A plugin conflict took the dashboard down without warning. The admin email fired the Recovery Mode link within minutes, and disabling the conflicting plugin brought the site straight back. No data lost, no rebuild needed.

The Fastest Fix: Recovery Mode

Check your admin email inbox, including spam, for a message titled "Your Site is Experiencing a Technical Issue." Click the Recovery Mode link inside it. That logs you into wp-admin with every plugin and the active theme temporarily paused, so you can see which one is causing the crash and deactivate it directly.

WordPress admin email notification with a Recovery Mode link after a critical error
The Recovery Mode email lands in your admin inbox within minutes of the crash. Check spam if it isn't in the main folder.

No Recovery Email? Trigger It Manually

If the email never arrives, WordPress's own login screen has a manual entry point. WPBeginner confirms the exact URL: add ?action=entered_recovery_mode to your login page, so it reads yoursite.com/wp-login.php?action=entered_recovery_mode. That takes you straight to the recovery login screen, no email required.

Still Locked Out? Disable Plugins by FTP

If wp-admin is unreachable entirely, connect by FTP or your host's file manager. Open wp-content/plugins and rename the folder to something like plugins-off. WordPress treats every plugin inside as deactivated the moment it can't find the folder. If the site loads again, rename the folder back and reactivate plugins one at a time until the error returns.

FTP file manager showing the wp-content plugins folder being renamed to disable all plugins
Renaming the plugins folder by FTP deactivates every plugin at once, no dashboard access required.

Switch to a Default Theme

A broken theme causes the same crash a broken plugin does. Rename your active theme's folder inside wp-content/themes the same way. WordPress falls back to a default theme automatically, which confirms or rules out the theme as the cause in one step.

Turn On Debugging to Find the Exact Cause

Open wp-config.php by FTP and set WP_DEBUG to true. Reload the site, then check wp-content/debug.log. It names the exact file, line, and plugin that triggered the fatal error, which turns guesswork into a direct fix. Turn WP_DEBUG back to false once you're done, since a debug log left running on a live site slows it down and can expose file paths to anyone who finds it.

Increase the PHP Memory Limit

Plugins like WooCommerce and Elementor can push memory use past a host's default limit, and PHP kills the script when it hits the ceiling. Raising the limit to 256 megabytes in wp-config.php or through your host's control panel often clears the error instantly, especially on stores and page-builder-heavy sites.

Check File Permissions and Core Files

Incorrect permissions on wp-content, wp-includes, or wp-admin can silently block WordPress from reading files it needs. Most hosts expect folders at 755 and files at 644. If permissions look correct, re-upload WordPress's core files fresh, since a partial update can leave core files corrupted or missing.

When to Restore From a Backup

If none of the above fixes it, or the cause turns out to be a hacked file, restoring the last clean backup is faster than continuing to debug. This only works if backups are actually running and actually tested. A backup nobody has restored from is a guess, not a safety net.

Preventing It From Happening Again

Every cause above traces back to something changing on the site: an update, a new plugin, a resource spike, or a file nobody checked. Our website maintenance and support plans exist for exactly this: staged updates instead of automatic ones, tested backups, and uptime monitoring that catches a crash before a customer does. A critical error on a monitored, backed-up site is a five-minute rollback. On an unmonitored one, it's a support ticket you file after losing traffic.

Get help fixing it →

Want this done for your site, not just your reading list?

We handle it end-to-end. Free audit call, no pushy sales process.

Book a free call

Frequently Asked Questions

Ready to put this into practice?

We build websites that rank, load fast, and convert. Serving businesses across the USA, UK & UAE. Let's talk about yours.

Habib Ahmed, Founder and Lead Developer at The Websloop
Habib Ahmed

Founder & Lead Developer at The Websloop

Habib has been building fast, SEO-first WordPress websites for clinics and local service businesses across the USA, UK & UAE since 2015. 150+ projects delivered.

More from the blog

Related guides on the same stack, written from client projects rather than from a keyword list. Each one cites its sources inline so you can check the numbers before acting on them.

Sources & authorship

Who wrote this, and what it is based on

Habib Ahmed, founder and lead developer at The Websloop
Habib Ahmed, founder and lead developer

Building client websites since 2015

Sources last checked 14 August 2026. Outside figures used on this page are listed here with their source, so you can check them yourself instead of taking our word for it.

Google treats a page as fast on three measures. Largest Contentful Paint under 2.5 seconds, Interaction to Next Paint under 200 milliseconds, and Cumulative Layout Shift under 0.1. All three are read at the 75th percentile of real page loads.

LCP should occur within 2.5 seconds of when the page first starts loading.
Core Web Vitals, web.dev (Google)https://web.dev/articles/vitals