Seeing the message “There has been a critical error on this website” can be alarming, especially when your homepage or WordPress dashboard suddenly stops loading. The good news is that this message usually points to a PHP fatal error—not necessarily a lost database or damaged website. In many cases, the cause is a plugin conflict, an incompatible theme, a failed update, exhausted memory, or a small piece of custom code.
The important part is to identify the exact failure before changing files or switching off components at random. This guide explains a careful recovery process for WordPress site owners, developers, and small business teams. It prioritises backups, evidence, and reversible changes so that you can restore the site without creating a second problem.
What does the WordPress critical error mean?
WordPress displays this message when PHP encounters a fatal error that prevents a request from completing. WordPress deliberately hides the technical details from public visitors. The underlying error may identify a plugin file, a theme function, a PHP version incompatibility, or a server resource limit.
A critical error can affect the entire site, only the administration area, or a particular page. If the homepage works but the editor fails, the issue may be related to the editor or a page-builder extension. If both the frontend and dashboard fail immediately after an update, a recently changed plugin, theme, or core component deserves attention.
1. Start with the WordPress recovery email
When WordPress detects certain fatal errors, it may send the site administrator an email with the subject indicating that the site is experiencing a technical issue. The message can identify the component that triggered the failure and provide a special Recovery Mode link.
Check the administrator mailbox, including spam and junk folders. Open the recovery link in the same browser where you can sign in to WordPress. Recovery Mode can pause a faulty plugin or theme for your administrator session, allowing you to access the dashboard and investigate. It is a diagnostic safety feature, not a permanent repair: fix or update the identified component before exiting Recovery Mode.
If the email never arrives, confirm that the WordPress administration email address is correct and that your website can send mail. You can also ask your hosting provider to inspect the PHP error log.
2. Make a backup before changing anything
Before disabling plugins, editing configuration files, or restoring a theme, create a fresh backup of both the WordPress database and website files. The database contains posts, pages, settings, and other structured content. The files contain plugins, themes, uploads, and configuration.
A backup is useful only if it can be restored. If your host provides staging, reproduce the problem there and test the repair before applying it to the live site. Avoid deleting plugin folders or replacing WordPress files without a recovery point. A reversible change—such as temporarily disabling one confirmed suspect—is safer than removing several components at once.
3. Find the actual PHP error in the logs
The most reliable fix comes from the fatal error message itself. Look for the hosting control panel’s PHP error log, web-server error log, or WordPress debug log. The useful entry usually includes the word PHP Fatal error, a file path, and a line number. A path inside wp-content/plugins/ points towards a plugin; a path inside wp-content/themes/ points towards theme code.
WordPress debugging can write errors to a log while keeping them hidden from visitors. On a staging site, or for a short controlled diagnostic window on production, an administrator can configure WP_DEBUG and WP_DEBUG_LOG in wp-config.php, while keeping WP_DEBUG_DISPLAY disabled. Do not display PHP errors publicly: stack traces can reveal server paths and implementation details.
After collecting the evidence, turn debugging back off on a live site and secure or remove the log when it is no longer needed. Do not leave verbose debugging enabled indefinitely.
4. Check recently updated plugins and themes
Think about what changed immediately before the error appeared. A plugin update, a theme update, a PHP upgrade, a new extension, or a custom code change can introduce a compatibility problem. Compare the timestamps in your hosting logs with the update history in WordPress.
If the log names a plugin, first check whether a compatible update is available. Confirm that the plugin’s required version of WordPress and PHP matches your environment. If an update is not available, contact the vendor or test a rollback on staging. Do not install unofficial or modified plugin packages to bypass a license or update check.
Page builders deserve particular attention because their core plugin and premium add-on often need compatible releases. For example, if Elementor and Elementor Pro are on different release levels, review the official compatibility guidance and changelogs before changing either component. Back up the site, update from the vendor’s official source, and test important templates and forms afterward.
5. Isolate a plugin conflict carefully
If the logs do not identify the cause, use a staging site to test plugins systematically. Deactivate non-essential plugins, then reactivate them one at a time while checking the page that previously failed. When the error returns, the last activated plugin is a strong suspect. If the site is inaccessible, a developer or hosting support team can temporarily rename the specific plugin directory through SFTP or a file manager, provided a backup exists.
Avoid disabling every plugin on a live business website unless there is no safer route. Security, caching, forms, membership, and ecommerce functions may stop working while plugins are inactive. Record each change and restore unaffected plugins as soon as the test is complete.
6. Test the active theme and custom code
A theme can trigger a fatal error through an incompatible function, an outdated template, or custom code in functions.php. If the error log points to the active theme, switch to a current default WordPress theme on staging and test again. If the site recovers, review the theme’s latest release and any custom modifications.
Never edit a parent theme directly if the changes can be moved into a child theme or a maintained custom plugin. This makes future theme updates safer and helps separate site-specific functionality from presentation. Also inspect snippets, must-use plugins, and custom integrations; code outside the active theme can still run on every request.
7. Check PHP and WordPress memory limits
A site can fail when a request runs out of available memory or execution time. Check both the PHP memory limit configured by the host and the WordPress memory limit. They are related but not always identical. Page builders and complex plugins may require more memory than a basic WordPress installation.
Do not assume that increasing memory will solve every critical error. A syntax error or incompatible function will remain broken even with a larger limit. If logs explicitly show an allowed-memory-size error, ask your host to confirm the PHP limit and the WordPress limit, then raise them to values supported by the installed plugins. Elementor publishes its own current system requirements, which should be checked before changing server settings.
8. Clear caches and regenerate permalinks after the repair
Once the fatal error has been addressed, clear the relevant caches: the WordPress page cache, object cache, server cache, and CDN cache if one is in use. A stale cached response can make a repaired site appear broken, while an overly aggressive cache can hide fresh changes during testing.
If pages return 404 errors after the repair, visit Settings → Permalinks in WordPress and save the existing structure without changing it. This refreshes rewrite rules. Do not change permalink formats casually, because that can alter URLs and affect search traffic.
9. Confirm that the site is healthy before closing the incident
Test more than the homepage. Open several posts, category archives, search, contact forms, login, and the WordPress dashboard. If the site uses Elementor, open a representative page in the editor and confirm that its layout, navigation, and responsive view still work. Check forms and other important conversion paths as well.
Review the error logs again after testing. A page that loads is encouraging, but repeated fatal errors or warnings can indicate that the underlying problem is not fully resolved. Confirm that backups are running, scheduled tasks are executing, and security and caching plugins are active and configured correctly.
Common mistakes to avoid
- Deleting plugins immediately: disabling or renaming a confirmed suspect is reversible; deleting it may remove files needed for recovery.
- Updating everything at once: make one change at a time so you can identify which change fixed—or caused—the problem.
- Displaying debug output publicly: log errors privately and keep public error display disabled.
- Changing PHP versions without testing: verify plugin and theme compatibility on staging first.
- Ignoring backups: take a database and file backup before repair work, and make sure restoration is possible.
- Assuming cache is the root cause: cache clearing can remove stale output, but it does not repair a PHP fatal error.
Frequently asked questions
Does a WordPress critical error mean my content is lost?
Usually not. The message commonly indicates that PHP could not finish loading a request. Posts and pages are generally stored in the database and may remain intact, but you should still take a backup before troubleshooting.
Can a plugin update cause a critical error?
Yes. An update can expose a compatibility issue with the WordPress version, PHP version, theme, or another plugin. The error log is the best way to identify the component involved.
Should I disable all plugins?
Not as the first step on a live site. Check the recovery email and logs first. If you need to isolate a conflict, use staging where possible and test plugins methodically.
Will clearing the cache fix the critical error?
It may clear stale pages after a repair, but it will not fix the underlying PHP fatal error. Identify and resolve the code or resource issue first.
Final thoughts
A WordPress critical error is a symptom, not a diagnosis. The safest recovery process is to preserve a backup, read the actual PHP error, identify the failing component, and make one reversible change at a time. Recovery Mode, staging, and private error logs can turn a stressful outage into a controlled troubleshooting task.
Once the site is back, update related components from official sources, verify the PHP and WordPress memory limits, test important pages, and review backups and scheduled tasks. That follow-up work reduces the chance of the same failure interrupting your website again.




