WordPress “There Has Been a Critical Error on This Website”: How to Fix It

Share this post :

Seeing “There has been a critical error on this website” can make it feel as if your entire WordPress site has disappeared. The message is alarming, but it is deliberately generic: WordPress has caught a fatal PHP error and hidden technical details from visitors. In many cases, a recent plugin or theme change, an incompatible PHP version, or exhausted server resources is responsible. Your content and database are often still intact.

This guide explains how to fix a WordPress critical error safely, whether you can still reach wp-admin or the WordPress site is not working at all. Start with the quickest reversible checks, then use recovery mode, file access, or logs to identify the cause. Before editing files, make a backup or confirm that a recent restore point is available.

What the WordPress critical error means

A WordPress website critical error usually means PHP stopped while running WordPress core, a plugin, a theme, or custom code. It is a type of WordPress fatal error. WordPress introduced a fatal-error handler and recovery mode to prevent some plugin or theme failures from leaving administrators completely locked out. The public-facing message does not identify the failing component; you need the recovery email, a log, or a controlled test to find it.

The same failure may look like a WordPress white screen of death, an error on only one page, or a WordPress admin critical error while the public site still loads. Note what changed just before it began: a WordPress critical error after plugin update or theme update often points to that release, but a PHP change, expired license, or memory limit can also be involved.

Quick checks before troubleshooting

Check the site in a private browser window and on another device. This helps rule out a stale browser cache or a local network issue.

Check for an update or maintenance notice. If the problem began during an update, wait briefly and avoid starting another update while files may still be changing.

Confirm you have a backup. Use your host’s backup tool or a known-good copy of both site files and database. A file-only backup is not a complete WordPress restore point.

Record the time and recent changes. Note the URL affected, the last plugin or theme updated, and any PHP-version or hosting changes. This gives support teams useful evidence.

If only wp-admin fails, test the public site and a different admin page. If every page fails, move to recovery mode or file access. Do not delete plugins or themes; disabling or renaming is reversible and preserves their settings.

How to fix WordPress critical error: troubleshooting steps

1. Use WordPress recovery mode

Check the site’s administration email inbox, including spam, for a WordPress recovery message. It may identify the component that triggered the fatal error and provide a special link to log in while the affected plugin or theme is paused. Verify the message is genuinely from your site before using the link. If you regain access, deactivate or update the named component, then test the site in a normal browser session. Recovery mode is a repair aid, not a substitute for identifying and fixing the underlying compatibility problem.

2. Test for a WordPress plugin conflict

If the dashboard works, deactivate all plugins, then reactivate them one at a time, checking the failing page after each activation. When the error returns, the last plugin enabled is a strong suspect. Update it, check its changelog and PHP/WordPress compatibility, or contact its developer.

If you cannot log in, open the site files through cPanel File Manager or SFTP and navigate to wp-content. Rename plugins to plugins.hold to temporarily disable plugins. If the site returns, rename the folder back to plugins; then rename individual plugin folders one at a time, testing the site each time, to isolate the conflict. This WordPress critical error cPanel fix changes folder names only; it does not uninstall plugins. If this does not help, restore the original folder name before trying the theme step.

3. Check for a WordPress theme error

A damaged or incompatible theme can produce a fatal error. If wp-admin is accessible, switch temporarily to a current default WordPress theme. Without dashboard access, use File Manager or SFTP to rename the active theme’s folder inside wp-content/themes. WordPress can fall back to an installed default theme; if none exists, install one before expecting the site to recover. If switching themes resolves the issue, update the theme, review custom code in a child theme, and contact the theme developer as needed.

4. Review updates, PHP compatibility, and memory

A WordPress critical error after an update may reflect a plugin or theme that does not support your installed WordPress or PHP version. Check the update history and error log, then roll back only the implicated component from a known-good backup or a trusted rollback process. Avoid downgrading WordPress core or PHP as a first step; those changes can introduce security and compatibility problems.

A WordPress PHP memory limit error may also appear when a request exceeds available PHP memory. Look for “Allowed memory size exhausted” in the log. Ask your host to check the account’s PHP limits, resource usage, and server error log before changing limits. More memory may help a legitimate workload, but it will not repair a plugin leak or incompatible code. Use the plan’s control panel or support channel for permitted PHP settings rather than copying arbitrary limits from a forum.

5. Enable WordPress debugging mode safely

When the recovery email is missing or the first checks do not reveal the cause, use the WordPress error log. In wp-config.php, add these lines above the “stop editing” comment, after making a backup:

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

Reproduce the error once, then inspect wp-content/debug.log or the hosting account’s PHP error log. Look for the first fatal error and the file path or plugin/theme name near it. Do not share logs publicly; they can contain server paths and other sensitive details. Turn WP_DEBUG off and remove or secure the debug log after diagnosis. WordPress documentation recommends logging errors without displaying them to visitors on a live site.

6. Restore a known-good backup or ask your host

If the WordPress critical error fix is still unclear, restore a backup from before the failure or ask a qualified developer to inspect the fatal error. Before restoring, confirm the backup includes both files and database and understand whether newer orders, comments, or form submissions could be lost. Your hosting provider can check PHP/server logs, resource limits, and recent server-side changes; plugin-specific code may need the plugin author’s help.

For a WordPress critical error without email, use your hosting control panel’s file manager and error-log tools, or contact support with the exact error, approximate start time, affected URL, and recent changes. VeeroTech’s published support scope covers server-side troubleshooting and best-effort website assistance; it notes that a plugin or theme developer may be needed when the fault is not server-side.

Which repair should you try first?

Symptom or clue Best first action Why it helps Risk / note
Error began after one plugin update Recovery mode; deactivate or roll back that plugin Tests the most likely recent change Keep a backup; confirm compatibility before reactivating
No wp-admin access; site-wide failure Rename wp-content/plugins through File Manager/SFTP Reversibly disables plugins Restore the folder name and isolate one plugin at a time
Error began after a theme change Switch to a default theme or rename active theme folder Tests theme code without deleting it A default theme must be installed
Log says memory exhausted Ask host to review PHP limits and resource use Distinguishes capacity issues from code faults Raising a limit alone may hide a code problem
Error persists after plugin/theme checks Review PHP error log; restore a full backup if needed Finds fatal file path or restores known-good state Confirm backup date and database coverage

Prevent another WordPress website critical error

Keep WordPress core, plugins, and themes updated, but review compatibility and changelogs before major changes. Take a restorable backup before updates, and test higher-risk changes on staging. Remove abandoned components, avoid editing a parent theme directly, and keep a written list of recent changes. Ask your host which PHP versions and resource limits are available for your plan. These habits reduce downtime and make WordPress critical error troubleshooting faster when something does break.

Hosting can help with the server side of website recovery. VeeroTech shared hosting offers a cPanel-based environment for WordPress-ready sites. For WordPress-focused management, compare managed WordPress hosting, which lists backups and 24/7 support. Sites needing dedicated resources and server management can review managed VPS hosting. Check the exact plan features and current terms before choosing; hosting cannot guarantee that every third-party plugin or theme will be compatible.

For account-specific help, use VeeroTech support or sign in to raise a ticket. Include the error time, URL, recent changes, and relevant log excerpt with secrets removed. VeeroTech’s support scope describes server-side PHP and hosting assistance, with best-effort help for website troubleshooting; a plugin or theme author may be the right next contact for a code defect.

Get your WordPress site back online

A WordPress critical error is a symptom, not a diagnosis. Start with recovery mode and recent changes, isolate plugin or theme conflicts with reversible steps, then use logs to confirm the cause. If server configuration or resource limits may be involved, contact VeeroTech support with the details. When you are choosing a hosting environment, compare shared hosting, managed WordPress hosting, and managed VPS to find the support and resources that fit your site.

Frequently asked questions

1. What causes “There has been a critical error on this website” in WordPress?

Most often, a plugin, theme, or custom PHP code triggers a fatal error. Incompatible updates, PHP-version changes, exhausted memory, or damaged files can also cause it. A log or recovery email helps identify the specific cause.

2. How do I fix a WordPress critical error if I cannot access wp-admin?

First check the site administrator email for a recovery-mode link. If none works, use cPanel File Manager or SFTP to temporarily rename the suspected plugin or theme folder. Make a backup first and restore folder names when testing is complete.

3. What should I do if no WordPress recovery email arrives?

Check spam and confirm the administration email address. Then inspect the PHP error log in your hosting panel or enable WP_DEBUG_LOG with WP_DEBUG_DISPLAY set to false. Contact your host if you cannot access logs or files.

4. Is it safe to enable WP_DEBUG on a live site?

Use it briefly and log errors with display disabled. Do not show PHP errors to visitors because messages can reveal technical details. Turn debugging off and secure or remove the log after you finish diagnosing the problem.

5. Can a hosting provider fix a plugin or theme fatal error?

A host can investigate server logs, PHP configuration, resource limits, and hosting changes. A defect in third-party plugin or theme code may need the vendor or a WordPress developer. VeeroTech describes its website-level help as best effort when the problem is not server-side.


If you have any web hosting questions please feel free to reach out to us. We're happy to help.

Shared Hosting | Reseller Hosting | Managed WordPress Hosting | Fully Managed VPS Hosting

Our Guiding Principles

Share this post :
Subscribe to comment notifications
Notify of
guest
0 Comments
Oldest
Newest Most Voted