Table of contents5
You open your site and instead of your homepage you see one cold sentence: “There has been a critical error on this website.” Your heart sinks. Is your content gone? Was the site hacked? Do you need to start over?
Take a breath. In most cases, your content is safe, your site is not hacked, and the fix takes a few minutes. A critical error usually means one plugin or theme broke after an update, and WordPress stopped the page rather than show something broken. This guide will help you find the broken piece and bring your site back, step by step.
What the critical error means
A critical error is WordPress telling you that a piece of code failed so badly the page could not finish loading. WordPress runs on PHP, a programming language, and every plugin and theme is PHP code. When one of those code files has a fatal mistake — a function that no longer exists, or two plugins fighting over the same thing — PHP stops, and WordPress shows the critical error message instead of a half-broken page.
The most common trigger is an update. You update a plugin or your theme, and the new version does not get along with something else on your site. It can also happen after you install a new plugin, or when your host updates the PHP version on the server and an old plugin cannot keep up.
Here is what the error does not mean. It does not mean your posts are deleted — your content lives in the database, which is almost never touched by this kind of error. It does not usually mean your site was hacked — hackers break in quietly, they do not leave a big error message on your homepage. And it does not mean you need to reinstall WordPress. Reinstalling is almost never the answer, and it can make things worse by wiping your settings.
The fix has three steps: turn on debug mode to see the error, find the broken plugin or theme, and remove or replace it. Work through them in order, and do not skip the backup step below if you can still reach your admin area — but if the whole site is down, start with debug mode right away.
Step 1: turn on debug mode and read the error
WordPress hides the real error message by default, which is why all you see is the short sentence. Debug mode tells WordPress to show the real message, including which file broke and on which line. You do not need to write code for this — you copy one line into a file.
Open your hosting panel and find the file manager. Go to the folder where WordPress is installed and open the file called wp-config.php. Look for the line that says define( ‘WP_DEBUG’, false ); and change false to true. If that line does not exist, add this line just above the words “That’s all, stop editing!”:
define( ‘WP_DEBUG’, true );
Save the file and reload your site. Instead of the short message, you will now see a longer error. It looks scary, but read it slowly. It will name a file path, something like /wp-content/plugins/some-plugin/some-file.php, and a line number. That file path is the answer: it tells you exactly which plugin or theme broke.
Write down the name of that plugin or theme. Then turn debug mode back off — change true back to false and save the file again. Leaving debug mode on shows error messages to your visitors, and you do not want that. Debug mode is a torch you switch on, look with, and switch off again.
If the error message does not name a plugin or theme file, or if it points to a WordPress core file, the cause is more likely a server problem or a bad update. In that case, skip to the last section of this guide.
Step 2: find the broken plugin (rename the folder)
Most critical errors come from a plugin, so this is where you look first. The trick is simple: turn all the plugins off at once, then turn them back on one by one until the error returns. The plugin that brings the error back is the broken one.
You cannot use your dashboard for this, because the dashboard is down too. Use your hosting panel’s file manager instead. Go to the wp-content folder and find the folder called plugins. Rename it to plugins-old. This switches off every plugin at once — WordPress simply cannot find them any more.
Now reload your site. If the site comes back, you have your answer: a plugin was the cause. Rename the folder back to plugins, then open it and rename the plugin folders inside it one by one, reloading your site after each one. When the site breaks again, the last plugin you renamed back is the culprit.
Once you know which plugin it is, rename its folder to keep it switched off, and your site will work again. Then decide what to do with it: check if a newer version of the plugin exists and update it, or look for a different plugin that does the same job. If the plugin is one your site cannot live without, contact its support team and tell them the exact error message from debug mode — that message tells them precisely where the problem is.
If renaming the whole plugins folder does not bring your site back, the problem is not a plugin. Leave the folder name as it was and move on to the theme.
Step 3: check the theme
If the plugins are innocent, the theme is the next suspect — especially if the error started right after you changed or updated your theme. The test works the same way: switch to a different theme and see if the site comes back.
The simplest test is to switch to one of the default themes that WordPress ships with. You can do this from the file manager too: in wp-content/themes, rename your active theme’s folder by adding -old to the end of its name. WordPress will notice the theme is missing and fall back to a default theme on its own.
Reload your site. If it comes back, your theme was the problem. Rename the folder back to its original name, then update the theme to its latest version — the update often contains the fix. If the theme is up to date and still breaks the site, contact the theme’s support team with the error message from debug mode.
If the error started right after a theme change, test with a default theme first — the same check works whether your theme came from HyperDAF or anywhere else. A theme problem is rarely your fault, and it is rarely permanent: most theme authors fix critical errors quickly once they know about them.
Do not delete your theme in anger. Deleting it also deletes any settings stored with it, and you lose the chance to update it to a fixed version. Rename, test, update — in that order.
When it is a 500 or database error instead + FAQ
Sometimes the message on screen is not the critical error at all, but a cousin of it. Knowing which one you have saves you from fixing the wrong thing.
If your site shows “500 Internal Server Error” instead, the cause is usually the same family — a broken plugin or a server problem — but the fix starts in a different place. Our guide on how to fix the WordPress 500 internal server error walks through it.
If the message says “Error establishing a database connection”, WordPress cannot reach your database at all. That is usually a wrong password in wp-config.php or a database server that is down. Our guide on fixing the database connection error in WordPress covers the checks in order.
If the page is blank white with no message at all, that is the white screen of death — a close relative of the critical error, with its own set of causes. Our guide on how to diagnose and fix the WordPress white screen of death will help you there.
Will I lose my content? Almost certainly not. Your posts, pages, and images live in the database and the uploads folder, and a critical error touches neither. The error stops a page from loading — it does not delete anything.
Should I reinstall WordPress? Almost never. Reinstalling fixes nothing if the broken plugin is still there, and it risks wiping your settings. Find the broken piece first. Reinstalling is the last resort, not the first step.
How do I stop this happening again? Two habits help more than anything. First, update one thing at a time, and check your site after each update — then you know exactly which update caused a problem. Second, keep a backup from before every update round, so you can restore in minutes if an update breaks something. A five-minute backup before updates turns a critical error from a crisis into a small delay.

