WordPress GuideErrors → Critical Error

How to fix “There has been a critical error on this website” in WordPress

critical error screenshot

The “critical error on this website” message is a standard WordPress error you will encounter while working with WordPress sites. Critical errors should never be ignored. Let’s assess how to address them.

This article will explain the nature of the “critical error on this website” message, the root cause of the error or errors involved, and how to resolve them. In addition, a number of other valuable WordPress fixes are provided by HTTP error code or other error condition encountered.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

What this critical error actually means

This message appears when WordPress hits a fatal PHP error that stops the page from loading. It hides the specific issue for security reasons, so beginners often feel stuck without knowing what triggered the failure.

Critical errors usually follow plugin conflicts, broken themes, corrupted files, or server misconfigurations that force PHP to quit mid-process.

Common reasons this error happens

Most critical errors come from a handful of common issues, so identifying them early helps you troubleshoot faster.

Quick pre-checks before you start

These quick checks save time and avoid unnecessary troubleshooting.

Step 1. Enable WordPress debugging to reveal the actual error

Debugging lets WordPress show you more meaningful messages instead of the generic warning. Open your wp-config.php file and add or modify the following lines to turn on debugging:

define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, false );

Save the file, reload your site, and open the /wp-content/debug.log file. You’ll see error messages pointing to the file, plugin, or function that caused the crash. This gives you a strong starting point for the next steps.

Step 2. Check your server’s error logs

Your hosting control panel or SFTP access gives you the full set of server logs that WordPress debugging doesn’t show. PHP error logs reveal fatal errors, memory exhaustion messages, or missing files. 

Match the timestamps with when the error first happened to identify the problem quickly.

Step 3. Disable all plugins manually

Plugins cause most critical errors, especially after updates or new installations.

If you cannot access the dashboard, rename each plugin folder individually to isolate the culprit.

Step 4. Switch to a default WordPress theme

Themes break sites when they rely on outdated code, untested updates, or customizations that introduce syntax errors.

Step 5. Increase the PHP memory limit

WordPress needs enough memory to run page builders, ecommerce platforms, and heavy plugins. When it hits the ceiling, PHP stops processing and returns a fatal error. Open wp-config.php and add:

define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

You can also adjust memory from your hosting control panel or .htaccess file. If your host supports higher limits, increase to 512M for large sites or WooCommerce stores.

Step 6. Update PHP to a modern version

Outdated PHP versions cause compatibility issues and break modern plugins or themes. Most hosts let you switch PHP versions from your control panel.

If anything stops working, turn debugging back on to check for compatibility warnings.

Step 7. Reinstall core WordPress files

Core files sometimes fail during updates or become corrupted by file transfer issues.

Leave your wp-content folder intact so you don’t lose themes or uploads. Reload your site to confirm the repair.

Step 8. Repair the WordPress database

Database corruption causes errors like missing options, broken posts, or login failures. Add this line to your wp-config.php file:

define( ‘WP_ALLOW_REPAIR’, true );

Visit yourdomain.com/wp-admin/maint/repair.php and choose the repair option. You can also open phpMyAdmin through your host and use the “Repair table” tool. Remove the repair line from wp-config.php afterward to protect your site.

Step 9. Fix incorrect file permissions

Incorrect permissions prevent PHP from reading or executing files.

Step 10. Restore a recent backup

If the error appeared after an update, migration, or large change, restoring a backup often solves the problem instantly. 

Step 11. Scan for malware or malicious code

Malware injections often corrupt PHP files or create conditions that trigger fatal errors.

How hosting quality affects critical errors

It’s worth noting that your hosting environment sets the foundation for WordPress stability.

Low-end shared plans often run out of memory, use outdated PHP versions, or throttle processing power. These limits create a perfect storm for critical errors, especially with heavier websites.

High-quality WordPress hosting gives you more consistent resources, faster PHP execution, built-in backups, and stronger security. You get fewer crashes, easier troubleshooting tools, and a more reliable base for plugins and themes.

When to contact your hosting support

Your host can help when you feel stuck or when the issue goes deeper than a plugin or a file.

Hosts can also check processes, memory usage, file corruption, and malware that you might not see through the dashboard.

FAQ

A fatal PHP error triggers this message when WordPress fails to complete its tasks. Plugin conflicts, corrupted files, low memory, outdated PHP versions, or broken themes all cause the error. Debug logs usually reveal what triggered the failure.

You can connect via SFTP or File Manager and disable plugins, switch themes, edit wp-config.php, review logs, or repair the database. These steps let you restore access even when the backend won’t load.

WordPress sends an email titled “Your Site is Experiencing a Technical Issue” with a special login URL. Open that link to enter recovery mode. You can deactivate the broken plugin or theme from the recovery screen and bring your site back online.

Yes. Updating PHP sometimes exposes plugins or themes that rely on outdated code. If the error appears immediately after changing PHP versions, switch back temporarily, update plugins and themes, and try again.

They’re similar problems but not identical. The white screen of death shows a blank page with no message, while the critical error includes a specific notice. Both come from fatal PHP errors and follow similar troubleshooting steps.

Keep PHP updated, review plugin quality before installing, maintain regular backups, and update themes and plugins in smaller batches. Use quality hosting to support higher memory limits, better performance, and stronger server security.

Additional resources

Diagnosing WordPress errors on your site →

Even more common errors, how to troubleshoot them, and how to solve them

Fixing the “not a valid JSON response” WordPress error →

What causes it and how to fix it, so you don’t lose work on your site!

Resolving 500 internal server errors on WordPress →

What it means, what causes them, how to fix them, and more

Mohammed Noufal is a B.Tech graduate with a decade of experience in server administration and web hosting. He is a father to two daughters and finds fulfillment in their growth. In his free time, he enjoys blogging, sharing experiences, and listening to music.