“There Has Been a Critical Error on This Website”: How to Fix It
What the WordPress critical error means, how to get back into your site in minutes using recovery mode, and what to do when the recovery email never arrives.
Disclosure: this guide includes affiliate links to Fiverr. If you hire through them, we may earn a commission at no extra cost to you. How we choose recommendations.
Fix it fast: the 4-step version
- Check your email, including spam, for a message from WordPress with a recovery mode link.
- Click the link, log in, and deactivate the plugin or theme it names.
- No email? In your hosting File Manager, rename the
pluginsfolder to switch off every plugin at once. - Still broken? Turn on the debug log to find the cause, or hire a WordPress expert.
You open your website and instead of your homepage, you see this:
It looks alarming, but it’s one of the most fixable WordPress problems. Your content is almost always safe. Something, usually a plugin, a theme or a bit of code, has crashed, and WordPress has stopped loading to protect your site.
What the critical error actually means
Behind the friendly message is a fatal PHP error: a piece of code your site runs has failed so badly that the page can’t load. Before WordPress 5.2, this showed up as a blank white screen. Since then, WordPress shows the critical error message instead, and emails your site’s admin a special recovery link.
According to WordPress’s own documentation, a fatal error “is often caused by a plugin, theme, or custom code,” and recovery mode can restore admin access without needing FTP or code edits.
The most common causes
The quickest clue is what changed just before the error appeared:
| What happened just before | Likely cause | Go to |
|---|---|---|
| You updated or installed a plugin | That plugin is broken or clashes with another | Fix 1 or Fix 2 |
| You updated or changed your theme | Theme bug or incompatibility | Fix 3 |
You (or someone) edited code, such as functions.php or a snippet | A typo or broken code | Undo the edit |
| Your host upgraded PHP, or you changed it | An old plugin or theme doesn’t support the new PHP version | PHP version |
| WordPress updated automatically | A plugin or theme isn’t compatible yet | Fix 1 |
| Nothing you know of | Automatic update, memory limit, or possibly a hack | Fix 4 |
Back up before you change anything
If your host offers backups, take one now, or check that a recent one exists. Rename folders rather than deleting them, so every step below can be undone.
Fix 1: Use recovery mode
When the error happens, WordPress tries to email the address set as your site’s admin email. Search your inbox and spam folder for a message from WordPress about a technical issue on your site.
Open the recovery link 1 min
The email describes the problem, often naming the plugin or theme responsible, and includes a link to log in with recovery mode switched on. Click it, and you’ll see “Recovery Mode Initialized. Please log in to continue.” Log in as normal.
Deactivate the broken plugin or theme 2 min
WordPress pauses the faulty plugin or theme for your session only, so you can safely reach your dashboard. A notice tells you what failed. Go to Plugins (or Appearance → Themes) and deactivate it.
Exit recovery mode and check your site 1 min
Click Exit Recovery Mode in the admin toolbar, then open your site in a private window. If it loads, you’ve found the culprit.
Deactivating the plugin is a temporary fix. Check for an update, contact the plugin’s developer, or replace it with an alternative. If it’s a plugin your site depends on, such as your shop or booking system, that’s a good time to bring in a developer.
Fix 2: No recovery email? Disable plugins manually
The recovery email often never arrives, because it’s sent from your web server and can be caught by spam filters. You can switch plugins off without logging in, using your hosting account’s File Manager (or an FTP app).
Open your site’s files 3 min
Log in to your hosting account (for example Bluehost), open File Manager, and go to your site’s folder, usually public_html. Then open wp-content.
Rename the plugins folder 1 min
Rename plugins to plugins-off. WordPress can’t find any plugins, so they’re all switched off at once.
Reload your site. If it works, a plugin is the cause.
Find the exact plugin 10 min
Rename plugins-off back to plugins. Then, inside it, rename one plugin folder at a time, for example contact-form-7 to contact-form-7-off, reloading your site after each. Start with whichever plugin you updated most recently. When the site comes back, you’ve found it.
WordPress’s documentation describes this same approach: renaming a plugin’s folder deactivates it.
Log in to WordPress afterwards and go to Plugins. You may need to re-activate the plugins that weren’t causing the problem.
Fix 3: Switch off your theme
If disabling plugins didn’t help, your theme may be the problem.
- In File Manager, go to
wp-content/themes. - Make sure a default WordPress theme (one named “Twenty” plus a year) is in the folder. If not, download one from WordPress.org and upload it.
- Rename your active theme’s folder, for example
astratoastra-off. WordPress falls back to the default theme. - Reload your site. If it loads, your theme is the cause. Rename the folder back once you’ve updated or fixed it.
Your site will look different with the default theme, but your content is untouched.
Fix 4: Turn on the debug log to find the cause
The debug log records the exact error, including the file and line, which tells you, or a developer, precisely what broke.
- In File Manager, open
wp-config.phpin your site’s main folder for editing. - Find the line that says
define( 'WP_DEBUG', false );and replace it with these three lines:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
- Save, then reload your site once to trigger the error.
- Open
wp-content/debug.logand scroll to the bottom. Look for a line starting PHP Fatal error. The file path tells you the culprit: a path containing/plugins/plugin-name/points to that plugin, and/themes/theme-name/to your theme.
Switch debugging off afterwards
Once you’ve found the problem, change WP_DEBUG back to false and delete debug.log. Leaving it on can expose details about your site.
Other fixes: PHP version, memory and backups
Undo a recent code edit
If you or someone else edited functions.php or added a code snippet just before the error, that edit is the most likely cause. Restore the original file from a backup, or remove the code you added using File Manager.
Check your PHP version
Hosts upgrade PHP regularly, and older plugins or themes can break on newer versions. In your hosting control panel, find the PHP settings. If the version changed recently, switching back to the previous version usually brings the site back straight away. Then update or replace the old plugin or theme so you can move to the newer version safely.
Raise the memory limit
If the debug log mentions “Allowed memory size exhausted”, your site ran out of memory. Add this line to wp-config.php, above the line that says “That’s all, stop editing”:
define( 'WP_MEMORY_LIMIT', '256M' );
Your hosting plan sets the maximum, so if this doesn’t help, ask your host to raise it.
Restore a backup
If nothing else works, restore a backup from before the error through your host or backup plugin. You’ll lose changes made since that backup, so note anything you’ll need to redo.
Could it be a hack?
If you also see strange redirects, unknown admin users or spam pages, your site may have been hacked. Follow our guide to what to do in the first hour after a WordPress hack.
Should you fix it yourself or hire someone?
| Your situation | Our advice |
|---|---|
| The recovery email names a plugin you can live without | DIY: deactivate it and find an alternative |
| You’re comfortable renaming folders in File Manager | DIY with Fix 2 and Fix 3 |
| The broken plugin runs your shop, bookings or memberships | Hire: you need it working, not switched off |
| The debug log points to custom code or your theme | Hire a WordPress developer |
| Your site is down and costing you customers | Hire for a same-day fix |
You’re not comfortable editing wp-config.php | Hire: one typo can make things worse |
Our recommended WordPress experts
Fixing WordPress errors is one of the most common jobs on Fiverr. In October 2026 we saw WordPress error and bug-fix gigs starting around $15–$30. Urgent fixes, complex plugins and custom code cost more. See our website fix cost guide for other common prices.
WordPress error fixing specialist
For critical errors caused by plugins, themes or updates.
- Look for reviews that mention “critical error” or “white screen”
- Share your debug log line, if you have it, for a faster quote
- Ask them to fix the cause, not just deactivate the plugin
Same-day emergency fix
For stores and lead-generating sites losing money every hour.
- Filtered to sellers offering 24-hour delivery
- Message first to confirm they can start immediately
- Worth paying more for speed if you’re losing sales
Vetted Fiverr Pro WordPress developer
For WooCommerce, membership sites and heavily customized builds.
- Freelancers hand-vetted by Fiverr
- Can fix custom code and plugin conflicts properly
- Worth it when your site is your main income
Copy this brief and send it to the freelancer
Red flags when hiring
- They want your main hosting password instead of a temporary login
- Their only fix is “delete the plugin” for something your site needs
- They won’t take a backup first
- No reviews mention critical errors or WordPress debugging
- They ask you to pay or talk outside Fiverr
New to hiring? Our guide to hiring a freelancer for the first time explains how to give access safely.
How to stop it happening again
- Back up before every update. Set up automatic daily backups stored off your server.
- Update one plugin at a time and check your site after each, so you know which one broke it.
- Use a staging site to test big updates first, if your host offers one.
- Keep your admin email up to date in Settings → General, so recovery emails reach you.
- Delete plugins you don’t use, and never install pirated (“nulled”) ones.
- Check plugin compatibility before your host upgrades PHP.
FAQ
What does “There has been a critical error on this website” mean?
It means a fatal PHP error stopped WordPress from loading the page. It’s usually caused by a plugin, theme or custom code, and your content is almost always safe.
I didn’t get the recovery mode email. What now?
Check your spam folder and that your admin email is correct. If it still hasn’t arrived, disable plugins by renaming the plugins folder in your hosting File Manager, as described in Fix 2.
Will fixing the critical error delete my content?
No. Renaming plugin or theme folders and turning on the debug log don’t touch your posts, pages or media. Restoring an old backup is the only fix that can undo recent changes.
Why did my site break after an update?
The updated plugin, theme or WordPress version may clash with another plugin, or not support your PHP version. Update one thing at a time and keep backups so you can roll back.
How do I find which plugin is causing the critical error?
Check the recovery email, which often names it. Otherwise, turn on the debug log and look for the plugin folder named in the “PHP Fatal error” line, or disable plugins one at a time.
How much does it cost to fix a WordPress critical error?
Simple fixes are free if you do them yourself. On Fiverr, WordPress error-fixing gigs started around $15–$30 in our October 2026 checks. Urgent or complex fixes cost more.
Site still down?
A WordPress expert can usually track down a critical error quickly, especially if you send them the debug log line.
Get a WordPress expert