FreeWebsite audit: design, mobile, SEO, technical SEO and AI visibility, reviewed by a real specialist.
WordPress

"There Has Been a Critical Error on This Website": How to Fix It

The most feared message in WordPress usually has a simple cause. Here is how to diagnose it safely, get your site back and stop it from happening again.

Code on a laptop screen while debugging a WordPress site

You open your website and instead of your homepage you see one line: "There has been a critical error on this website." It is alarming, but it is also one of the most common and most fixable WordPress problems. In our experience, the vast majority of cases are caused by a plugin, theme or PHP compatibility issue.

Step 1: Check your email

WordPress usually sends the site administrator an email with the subject "Your Site is Experiencing a Technical Issue." It often names the plugin or theme that caused the error and includes a special recovery mode link. Use it to log in and deactivate the culprit.

Step 2: Think about what changed

Errors rarely appear from nowhere. Did you or your host recently update a plugin, the theme, WordPress core or the PHP version? Did someone add custom code? The most recent change is the most likely cause.

Step 3: Enable debugging

If there is no email, enable debug logging by adding these lines to your wp-config.php file:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

Reload the page, then check wp-content/debug.log. The error message will point to the exact file and line causing the problem.

Step 4: Deactivate the problem plugin or theme

If you cannot access the dashboard, connect via your hosting file manager or FTP and rename the plugin folder in wp-content/plugins. WordPress will deactivate it automatically. If the theme is at fault, rename the theme folder and WordPress will fall back to a default theme.

Step 5: Check PHP version compatibility

Hosts upgrade PHP versions regularly. Older plugins and themes may not be compatible. Your hosting control panel usually lets you switch PHP versions temporarily while the incompatible code is updated or replaced.

Getting the site back online is step one. Finding out why it broke is what stops it happening again.

Other possible causes

  • PHP memory limit exhausted
  • Corrupted core files after a failed update
  • Database errors or corrupted tables
  • Conflicts between two plugins doing similar things
  • Malware that has modified core or plugin files

How to prevent it next time

  1. Take a full backup before every update
  2. Test major updates on a staging site first
  3. Update regularly instead of all at once every few months
  4. Remove plugins you no longer use
  5. Choose well maintained plugins with recent updates
  6. Monitor uptime so you know immediately when something breaks

If you would rather not touch server files, that is exactly what our emergency support and care plans are for. We fix critical errors daily, usually within hours.

Numan AhmadMuhammad WaqasAns BhattiMudssar Anjum

Written by

The Webmaster Solutions Team

Developers, designers and SEO specialists who build, fix and grow websites, portals and automations for businesses of every size. Every guide is based on real client work.

Meet the Team
Article FAQ

Quick answers

The key points of this WordPress guide, answered in a sentence or two each.

Have a different question?
Talk to a real human, usually the same day.

Ask Us Anything

Most often a plugin, theme or PHP version incompatibility. Memory limits, failed updates, database issues and malware are other causes.

Usually not. Your content is stored in the database and remains intact. The error typically comes from code, not data.

A feature that emails the admin a special link to log in and deactivate the plugin or theme causing a fatal error.

Yes. Renaming the faulty plugin or theme folder via FTP or your host file manager deactivates it.

Back up before updates, test on staging, keep plugins current and minimal, and monitor your site with a care plan.

Want experts to handle WordPress Development for you?

Custom themes, plugins and page builder sites, plus fixes for critical errors, plugin conflicts and broken databases. Two decades of WordPress depth on call.

Free 30 minute call Fixed quotes Reply within one business day

Instant Estimate