HomeAboutSkillsServicesServicesWordPress ExpertWooCommerce DeveloperWordPress Speed OptimizationAll ServicesShopify DevelopmentShopify AppsFull Stack Web DevelopmentAI AutomationThrough Digitrix — My AgencySEO & Digital MarketingMobile App DevelopmentUI/UX DesignWebsite Maintenance & SecurityExperiencePortfolioBlogVenturesContact
Available for new projects — remote, worldwide

WordPress Critical Error: How to Fix It Step by Step (Without Losing Your Site)

The short answer first: the "There has been a critical error on this website" message means a PHP fatal error stopped WordPress from loading. In most cases the cause is a plugin conflict, a theme problem, or a PHP version mismatch — and it is usually fixable in under an hour if you work in the right order. Do not reinstall WordPress. Do not restore a week-old backup yet. Follow these steps first.

6+Years of Experience
50+Live Projects Delivered
26WordPress & Shopify Projects
24JavaScript / MERN Projects
Step-by-Step Guide

Fix It in the Right Order

Work through these steps in order — each one either brings the site back or tells you exactly where the problem lives.

Step 0

Take a backup before touching anything

Even a broken site can be backed up from your hosting panel (Hostinger/cPanel backup or the host's snapshot tool). Whatever happens next, you want today's copy of your files and database safe first.

Step 1

Check your email — WordPress may have sent you a rescue link

When a critical error happens, WordPress usually emails the admin address with a recovery mode link. Click it, log in, and WordPress will tell you which plugin or theme caused the crash — and let you deactivate it safely. For many sites, this step alone fixes everything.

Step 2

No email? Turn on the debug log

In wp-config.php (in your site's root folder, via File Manager or FTP), make sure these lines exist above the "stop editing" line:

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

Reload the broken page once, then open wp-content/debug.log. The last lines name the exact file and plugin/theme causing the error — that is your culprit.

Step 3

Disable the culprit plugin without the dashboard

In File Manager, go to wp-content/plugins/ and rename the culprit plugin's folder (add -off at the end). If the log gave you no name, rename the whole plugins folder to plugins-off — if the site comes back, a plugin was the cause; rename the folder back and switch plugins on one by one until the error returns. You have found your plugin.

Step 4

Rule out the theme

If plugins are clean, switch the theme: rename your active theme's folder in wp-content/themes/. WordPress will fall back to a default theme if one is installed. If the site loads, the problem lives in your theme — usually a recent edit or update.

Step 5

Check the PHP version and memory limit

A very common cause in 2026: the host upgraded PHP and an old plugin/theme is not compatible — or the opposite, a new plugin needs a newer PHP than your site runs. Check your hosting panel's PHP version against the plugin's requirements. If the debug log says "Allowed memory size exhausted", raise the PHP memory limit in the hosting panel (256M is a sane value for most sites).

Step 6

If it was malware, stop and clean properly

If you find files you never uploaded, new admin users you did not create, or spam pages in Google — that is not a simple crash, that is a hacked site. Fixing the error without removing the infection only buys the attacker time. Clean the infection first, change every password after the site is clean, and only then put the site back.

Know When to Stop

When to Stop Doing It Yourself

If two hours pass and the site is still down, every extra experiment risks making it worse — especially on a store taking orders. This is the point where most of my clients hand it over.

I fix WordPress critical errors and bugs on Fiverr — most sites diagnosed within the hour, fixed the same day, from $15: WordPress critical error & bug fixing on Fiverr — or reach me directly through this site's contact page.

Fiverr

Available on Fiverr too

Prefer ordering through Fiverr? All four of my services are there with fixed packages and buyer protection: