The message "There has been a critical error on your website" (often known as the White Screen of Death) means that WordPress could not catch a fatal PHP error. Usually a plugin, a theme, an update, or a PHP version that is too old or too new is to blame. First check your email for the recovery mode link, then deactivate the most recently changed plugin and read the error log.
A white screen with this notice is alarming at first—especially when inquiries and orders are actively coming in through your website or online store. The most important reassurance upfront: your content, pages, products, and customer data are safely stored in the database and are not lost. We show you step by step how to pinpoint the exact cause within minutes and resolve the error cleanly.
What does the message mean?
Since WordPress 5.2, there has been built-in error protection (Recovery Mode). Instead of a completely blank page or an HTTP 500 error, WordPress shows the critical error notice and sends an email to the registered administrator address. The message itself does not name the cause. For that you need the email, the error log or recovery mode.
Common causes
- Plugin error or conflict: a new plugin, an update, or two plugins that interfere with each other
- Theme error: especially after theme updates or changes in the functions.php
- PHP version: A modern plugin requires at least PHP 8.1 or 8.2, or your host switched the server to PHP 8.3, which an outdated plugin is no longer compatible with
- Too little memory: the PHP memory limit has been reached
- Incomplete update: an update was interrupted, files are damaged
- Error in your own code: an inserted code snippet with a typo

Step 1: Check the email with the recovery link
Check the inbox of the administrator address, including the spam folder. The message is usually titled "Your Site is Experiencing a Technical Issue". It often names the plugin or theme causing the error and contains a link to recovery mode. Through it you can log in and deactivate the faulty plugin or theme.
Step 2: Undo the last change
Think about what you did last: installed or updated a plugin, switched the theme, inserted code, changed the PHP version. Undo exactly that change. This solves many cases within a few minutes.
Step 3: Deactivate plugins via the file manager
If you can no longer log in to the WordPress backend, you can access your files via an SFTP client (such as FileZilla) or your hosting provider's file manager (for example, Plesk or cPanel):
- Open the folder wp-content.
- Rename the folder plugins to plugins-alt . This deactivates all plugins.
- Load the site. If it works, a plugin is the cause.
- Create a new, empty folder named plugins and move the individual plugin folders one by one from plugins-alt back into the new folder. Reload the site after each move until the error reappears—this pinpoints the culprit.
Proceed the same way with the theme: in the folder wp-content/themes rename the folder of your active theme. WordPress then switches to a default theme, provided one is installed.

Step 4: Enable the error log
To see the exact cause, enable the log in the file wp-config.php. Before the line "That's all, stop editing" add these lines:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
This creates the file wp-content/debug.log. The last line usually names the file and line of the error, often with the plugin name in the path. Be sure to turn logging off again after troubleshooting (set WP_DEBUG to false) and delete the debug.log file, as it exposes sensitive server paths.
Step 5: Check PHP version and memory limit
- Check in the hosting panel which PHP version is running. Compare it with the requirements of your plugins and your theme.
- As a test, set another supported version if an older plugin no longer runs, and then plan to replace the plugin.
- For memory errors, raise the limit, for example with
define( 'WP_MEMORY_LIMIT', '256M' );in the wp-config.php, if your hosting allows it.
Step 5b: Rule out the theme as the cause
If all plugins are deactivated and the error remains, the cause is often in the theme. This happens especially often after theme updates or after changes in functions.php. Via SFTP or the file manager, rename the folder of your active theme inside wp-content/themes, for example from "astra" to "astra-test". Then open your backend directly at /wp-admin: loading the admin area triggers WordPress to automatically switch to an installed default theme such as Twenty Twenty-Five.
If the site loads again afterwards, the error is in the theme or in a customization of it. In that case, restore a clean backup of the theme or reset the most recently edited file. If you use a child theme, check its functions.php first. A missing semicolon or a duplicate function is enough to knock the site out.
Reading the error log properly: Typical messages and what they mean
The log (debug.log in the wp-content folder) almost always names the file and the line where the error occurs. This information is the most important clue. The following overview helps you classify the most common messages.
"Allowed memory size exhausted"
The memory PHP allocates to a single script is exhausted. Raise the limit in wp-config.php using WP_MEMORY_LIMIT at 256M (and WP_MAX_MEMORY_LIMIT for the backend), or ask your host to increase the server-side memory_limit to 256M or 512M. If the error persists, a plugin has a memory leak or consumes excessive resources, such as a WooCommerce import, page builder, or backup plugin.
"Call to undefined function"
A piece of code calls a function that does not exist. Often a required plugin is deactivated or installed in an incompatible version. Check which plugin or theme folder is named in the message, and update or deactivate it.
"Parse error: syntax error"
There is a syntax error in the code, usually from manual changes. The message names the file and line. Remove the last change or correct the line. Such errors often arise when pasting code snippets from the web.
"Uncaught Error" after a PHP update
Newer PHP versions such as PHP 8.2 or 8.3 remove deprecated functions and treat former warnings as fatal errors. Plugins and themes that have not been updated for years crash immediately as a result. Temporarily revert the PHP version in your hosting panel and replace the outdated extension with a maintained alternative.
Database errors
Messages such as "Error establishing a database connection" are a different error that can look similar. Check the credentials in the wp-config.php and ask your host whether the database is reachable.
Overview: Cause, hint and solution
- Plugin update failed: Error right after the update. Rename the plugin folder and install the old version.
- Theme change: Error after changing the functions.php. Reset the file.
- PHP version too new or too old: Error after switching hosts or changing PHP. Adjust the version again.
- Memory limit too low: Message about "memory size". Raise the limit.
- Damaged files after an incomplete update: Upload the WordPress core again, leave wp-content unchanged.
- Plugin conflict: Error occurs only with two specific plugins. Replace one of them.
Recovery mode in detail
On a critical error, WordPress sends an email to the administrator address. It contains a link to recovery mode. Through it you log in to the backend, see which plugin or theme triggered the error, and can deactivate it right there. The link is only valid for a limited time, so act quickly. If you cannot find the email, check the spam folder and check which address is set under Settings > General. If the address is wrong or the email is not delivered, the route via FTP or your host's file manager helps.
When nothing helps: Restart cleanly
If the cause stays unclear, there is a safe way. Download the current WordPress version from wordpress.org and overwrite the folders wp-admin and wp-includes as well as the files in the root directory, without touching the wp-content folder and the wp-config.php. This replaces damaged core files without losing content. Afterwards you reactivate plugins one by one and test after each step.
If you have a current backup, restoring it is often the fastest way. How to create and restore backups is explained in our articles on Create a WordPress backup and Restore a WordPress backup.
Emergency checklist
- Stay calm and do not delete anything
- Look for the email with the recovery link
- Note the last change (update, plugin, code) and undo it
- Deactivate plugins via FTP, then test them one by one
- Activate a default theme if the theme is suspect
- Read debug.log and note file plus line
- Check PHP version and memory limit
- Restore a backup if nothing else helps
- After the repair, update everything and back up again
Step 6: Restore a backup
If you cannot find the cause, a backup from before the error helps. If possible, restore it to a copy first, and make a backup of the current state beforehand. How to build backups sensibly is explained in our article on Backups for WordPress.
Preventing errors in the future
- Test updates on a staging copy first, especially for large version jumps
- Make a backup before every update
- Use only plugins that are maintained and match your PHP version
- Insert code snippets with a snippet plugin that automatically deactivates faulty snippets
- Keep the administrator email up to date so error messages arrive

Three typical real-world cases
To help you place the steps, here are three situations we see again and again in everyday work.
Case 1: The error appears right after a plugin update
A shop owner updates several plugins at once in the evening. The next morning the site shows the error message. The cause was an add-on plugin for payment methods that was not compatible with the new WooCommerce version. The solution: rename the plugin folder via FTP, load the site again, install an older version of the plugin in the backend and only update again once the vendor releases a fix. Duration: about 15 minutes. The takeaway: only update a few plugins at a time, and ideally schedule updates outside peak business hours.
Case 2: A PHP switch at the host
A host automatically switches servers to a newer PHP version. An older theme uses functions that no longer exist there. The site is immediately unreachable. The solution: temporarily set the PHP version back in the hosting panel, replace the theme with a maintained version and then reactivate the new PHP version. The takeaway: check the PHP compatibility of all extensions before switching versions, and keep both themes and plugins consistently up to date.
Case 3: A code snippet in the functions.php
When pasting a snippet from a forum, a curly bracket is missing. Immediately after saving, the backend is no longer reachable. The solution: open the file via FTP, remove the snippet and save. The takeaway: custom code snippets belong in a child theme or a dedicated snippet plugin (such as Code Snippets), never directly in the parent theme files, and should always be tested beforehand.
Critical error in WooCommerce shops: Special considerations
In a WooCommerce store, every minute of downtime costs direct revenue. Alongside the standard steps, pay special attention to payment gateways (such as Stripe, PayPal, or Klarna), shipping, tax, and invoicing plugins, as well as compatibility issues with High-Performance Order Storage (HPOS), since these frequently trigger conflicts after core updates. Check specifically whether the error occurs across the entire frontend, only in the backend, or exclusively during checkout submission. If only the checkout fails, a payment API or webhook is often the culprit. While fixing the issue, display a clear maintenance notice and temporarily offer ordering via email or phone.
After the repair, a complete test order with all payment methods is worthwhile. Also check order emails, stock levels and invoices. This way you make sure that no silent follow-up errors remain.
Critical error in a multisite network
In a multisite network, a defective plugin often affects all sites at once if it is network-activated. In this case, first deactivate network-activated plugins and then test individual websites. Otherwise the troubleshooting works as with a single installation, except that you rename the plugin folder in the shared directory. Document which plugins run network-wide so that you can test specifically with future updates.
Communication during the outage
If the site is unreachable for a longer time, inform customers and partners. A short notice on social networks, by newsletter or on an emergency page builds trust. For longer work, set up a maintenance notice with the appropriate status message so that search engines recognize that the outage is only temporary. After the fix you can briefly explain what happened. Openness appears professional and reduces the number of follow-up questions.
After the repair: Root cause analysis and lessons learned
Once the site is reachable again, the work is not done yet. Record what happened: time, error message, trigger, solution and duration. Check whether the plugin that caused the issue needs to be replaced or updated, and decide which measure will prevent the error in the future, such as staging tests or a fixed update window. This short review takes ten minutes and often saves hours at the next incident.
Also share the findings with everyone who has access to the website. When editors, service providers and developers know which changes are risky and what the emergency plan looks like, the number of avoidable outages drops noticeably.
Preventing errors in the future: Your safety net in detail
A critical error can never be ruled out 100 percent, but you can significantly reduce the risk and the consequences. Four building blocks belong to this.
Use a staging environment
A staging site is a copy of your website on which you can test changes safely. Many hosts offer it with one click. Apply updates there, check the most important pages, the cart and forms, and only then transfer the changes to the live site.
Automatic backups with restore
A backup is only as good as its restoration. Test at least once a year whether you can actually restore a backup. Back up files and database, store copies in a second location and keep several versions so that you can also reach an older state.
Availability monitoring
An uptime monitor checks at short intervals whether your site is reachable and sends you a message in case of an outage. This way you learn about the problem before customers report it. That is especially important at night and on weekends.
A clear update routine
Set fixed times for updates, for example once a week. Update the core and security updates first, then plugins and the theme last. Read the change notes for larger version jumps and remove plugins that are no longer maintained. Fewer plugins mean fewer possible sources of error.
The role of the host
The quality of your hosting influences how quickly you are back online after an error. Good providers deliver understandable error logs, daily backups, easy access to PHP settings and fast support. Cheap offers often lack these features. Before signing a contract, check how backups can be restored and which PHP versions are available. Those who have a service provider who takes care of updates, backups and monitoring usually avoid such emergencies altogether.
Frequently asked questions about the critical error
Is my data lost?
In most cases, no. Posts and pages are stored in the database and remain intact. The error usually only affects the code.
I am not receiving an email. What now?
Check the administrator address under Settings, the spam folder and whether your server can send emails. Without an email, the error log helps.
Can I carry on as before after the fix?
Yes, but replace or update the plugin that caused it, otherwise the error will return with the next update.
Is the site completely unreachable for visitors?
That depends on the error. Sometimes only the backend or part of the site fails. Test the homepage, posts and the login separately.
When should I get help?
If you lack SFTP or hosting access, an active online store with ongoing orders is affected, or you do not feel comfortable editing wp-config.php and reading error logs yourself. In these cases, an experienced WordPress agency saves valuable downtime and prevents costly follow-up damage.
Do I have to call a professional for every critical error?
No. Around 80 percent of cases can be resolved on your own using recovery mode or by deactivating plugins. Professional support is only advisable if database errors occur simultaneously or the site still fails to load with all extensions disabled.
How do I prevent the error from returning after updates?
Test updates in a staging environment first, make a backup before every update and do not update everything at once. This way you immediately see which change causes problems. More on this in our article Performing WordPress updates safely.
Does the error harm my Google ranking?
Short outages of a few hours usually have no consequences. If the error lasts for days, pages can drop out of the index. So fix it quickly and then check in Search Console that all pages are reachable again.
Conclusion and next step
With a fixed order you usually find the cause quickly: check your email, undo the last change, test plugins and theme, read the log. If you would like help, we take over the troubleshooting as part of our Error Fix service at a fixed price. For a first overview, use the free check.