Troubleshooting

Fix “There Has Been a Critical Error on Your Website”

WordPress 5.2+ catches fatal errors and emails you the culprit. Here is how to use recovery mode, read the email, and fix the error properly.

Fix “There Has Been a Critical Error on Your Website”

“There has been a critical error on this website” is WordPress’s built-in safety net: it caught a PHP fatal error, hid the details from visitors, and — crucially — emailed the admin a link with the culprit named. Most site owners panic and start deleting plugins. The recovery email makes that unnecessary.

Step 1: Find the recovery email

WordPress sent the message to the site admin email (check spam folders). The subject is “[…], your site is experiencing a technical issue”. It contains the exact error — plugin or theme name, file, line — and a one-click recovery mode link valid while the error persists.

Step 2: Use recovery mode

The link logs you into a special admin session where the broken extension is already paused. You can browse wp-admin normally, update or replace the offending plugin/theme, and exit recovery when done. Visitors saw the error page; recovery mode fixes it server-side without FTP.

Step 3: Fix the cause, not just the symptom

The email names the file that threw. Common patterns and their fixes:

Error pattern Meaning Fix
Call to undefined function X() in plugin A A depended on a function provided by plugin B or the theme Update both; if not available, disable the dependent one
Cannot redeclare class X Two plugins ship the same class/library Retire the redundant plugin
memory size exhausted Runaway memory use or undersized limit Raise to 256M; profile if it recurs
Undefined property after core update Extension not yet compatible with new core Roll back extension to last known-good version

No recovery email? Two fallbacks

  1. Check the server error log (hosting panel → error logs). The last fatal error names the file.
  2. Manual isolation: rename the plugins folder as described in our white screen guide — the same technique works here.

After it is fixed: close the loop

  • Apply the same update on a staging copy first next time — this error is 90% “untested update”
  • Verify backups exist and restore
  • Keep WP_DEBUG_LOG enabled so the next incident leaves a paper trail

Errors repeating? Recurring critical errors usually mean plugin-stack debt — too many overlapping extensions. See plugin conflict diagnosis, or let our team audit the stack for free: request your audit.

Frequently asked

Is my data lost when I see this error?

No. The error means PHP stopped executing a page — the database is untouched. Fix the code issue and your content is exactly where you left it.


How do I know which plugin to roll back?

The recovery email names it. Without the email, match the error timestamp against your update history — most hosts and plugin managers log versions with dates.

The WPForge editorial team: WordPress and WooCommerce engineers with a decade of combined experience in store builds, speed optimization, migrations and plugin audits. Every guide is based on real client projects and hands-on testing, reviewed before publishing.

Revision history

  • October 2026 — Facts, version numbers and links re-verified against current vendor data.

We re-test and update our guides when tools change — see our editorial policy for how. Editorial policy →