For a WordPress critical error, first check the recovery email and the server error log, then reverse the smallest change that explains the failure. If you have no email or cannot open the dashboard, use the hosting panel or SFTP to collect the error and isolate the named component. Preserve the current database before restoring anything on a site that takes orders or bookings.
WordPress shows its default critical-error screen when its fatal-error handler detects a fatal PHP error, including fatal runtime, parse and compile errors. The screen does not identify which component or resource limit failed. A blank white page can also follow a fatal error, but can have other causes; inspect the private log.
Recognize the wording by WordPress version
| WordPress version | Default English message |
|---|---|
| 5.2 | “The site is experiencing technical difficulties.” |
| 5.3–5.5 | “There has been a critical error on your website.” |
| 5.6 onward, including current core | “There has been a critical error on this website.” |
The 5.2 source, 5.3 source, 5.6 wording change and current template establish this history. Login or admin requests can add email instructions; Recovery Mode, translations and custom error templates can change the text. Use the actual installed version and log rather than dating a site from its screen alone.
Choose the recovery route you can actually use
| What you can access | First action | What that establishes |
|---|---|---|
| Recovery email and a working login | Enter Recovery Mode and read the component notice | Which plugin or theme WordPress associated with the fatal error |
| Normal dashboard | Record the recent change and inspect Site Health and logs | Whether the failure is limited to a page, task or user journey |
| Hosting panel or SFTP, but no WordPress admin | Ask for the PHP error at the failure time | The error type, file and line without relying on WordPress email |
| Shell with WP-CLI | Let the site maintainer inspect and deactivate the identified plugin | A targeted change with a recorded command |
| No working access, or multiple sites fail | Contact the host with the time, domain and affected URLs | Whether the runtime, database, account limits or web server is failing |
If the browser shows a database connection error, a hosting suspension or a gateway error, include that exact message. A 502 or white screen alone is not proof of a plugin conflict.
1. Preserve the current state and record the trigger
Write down the time and timezone, affected URL, whether /wp-admin/ works, and the last known change. Useful triggers include a plugin update, a snippet edit, a PHP switch, a large import or a hosting migration. Take a screenshot without exposing customer details.
Ask the host to preserve a current file and database snapshot before making changes. Keep the last working backup as well. Record one change at a time so that you can connect a result to an action.
If the site accepts orders, protect the order history
An old database backup represents an old business state. Restoring it over production can remove orders, accounts, form entries and stock changes received since that backup. Payment activity can also exist at the payment provider even when a website request failed.
WooCommerce’s backup guidance distinguishes website files from the database that holds store data. Before a restore, ask the developer to record the newest orders and payment events, preserve the current database, and decide how recent transactions will be retained or reconciled. An XML content export is not a complete store backup.
Do not attempt to preserve orders by copying only the WordPress posts tables: WooCommerce HPOS can use dedicated authoritative order tables. If an update changed a database schema, a file-only rollback also needs compatibility review. WooCommerce warns about mismatched versions and database state.
A narrow code or configuration repair may avoid a full database restore. For a store with uncertain payment status, agree whether to pause new checkout attempts while investigating, and reconcile existing attempts before asking customers to retry.
2. Use Recovery Mode when the email arrives
Check the administration email account, spam folder and hosting mail logs. Follow the recovery link only after checking that it belongs to your website. Keep the link private, then log in with your normal authorized account.
In Recovery Mode, record the component name and error notice. A paused component is paused for the recovery client, so the dashboard loading does not establish that visitors can use the website. WordPress’s Recovery Mode documentation explains this session scope.
Choose a fix appropriate to that component: correct a recent code edit, apply a maintained compatible release on staging, or deliberately deactivate it if the site can function without it. Deactivating a payment, membership or booking plugin affects the service it provides. Test those consequences before reopening the affected journey.
Exit Recovery Mode and test in a separate logged-out browser session. WordPress’s fatal-error recovery explanation distinguishes a component paused for recovery from a normal deactivation that affects the whole site.
3. No recovery email or no admin access: get the private log
Open your site’s /wp-login.php or the affected /wp-admin/ screen once and note the time. The same eligible fatal error must occur on that request for WordPress to attempt recovery email. A working login page does not trigger an email for an error confined to the frontend.
The email handling code requires an error attributed to an ordinary plugin or theme, with Recovery Mode initialized on a single-site installation. Core, must-use plugins, drop-ins and network-activated plugins do not follow that ordinary recovery-email route. The default protected endpoints include login, non-AJAX admin requests and designated protected AJAX actions; a filter can add others.
New recovery emails are rate limited to one per 24 hours by default, and that interval is filterable. The default recipient is a valid RECOVERY_MODE_EMAIL, otherwise the site’s administration address; custom email filters can change delivery details. Check that inbox, spam and host mail logs.
Continue through the host’s PHP error log if no email arrives. Ask for the entry at the recorded timestamp, including the error type, file and line. Email eligibility, rate limiting and delivery are separate from whether the site has a fatal error; repeated refreshes are not a recovery plan.
If more logging is needed, have the host supply an absolute, writable path outside the web document root. Back up wp-config.php, edit its existing definitions rather than adding duplicates, and place the temporary settings before WordPress loads:
// Replace this path with a private, writable path supplied by your host.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', '/private/path/wordpress-error.log' );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', '0' );
Use straight quotes in a plain-text editor. Do not paste a complete replacement wp-config.php over the site’s database credentials and keys. Our wp-config generator can help explain individual options; it does not know your production configuration.
WordPress’s debugging reference supports a custom log path and hidden error display. Reproduce the failing action once, record its time, then restore the previous debug settings. Read the relevant entries through the host or SFTP. Retain only what is needed under your normal log policy.
Logs can contain filesystem paths, submitted data and other private information. Send a redacted excerpt privately to the maintainer instead of publishing a full log. If no entry appears, ask the host whether PHP starts successfully, the path is writable, and the failure is in a web-server or worker log instead. A log in wp-content is not private merely because it is called debug.log.
4. Match the evidence to the smallest reversible action
These are diagnostic routes, not automatic fixes for every error. The file named by a fatal error is where execution failed; it may be calling a missing dependency rather than being the original cause.
| Evidence near the failure time | Useful next check | Bounded action |
|---|---|---|
A fatal error names wp-content/plugins/example-plugin/ immediately after its update | Plugin release notes, dependencies and PHP requirements | Isolate that plugin, then test a compatible repair on staging |
| A parse error follows an edit to a child theme or custom snippet | The exact saved diff | Revert that edit from the file backup |
| An undefined function follows a PHP or hosting change | Required extension, component dependencies and runtime | Restore the missing supported dependency with the host |
Allowed memory size ... exhausted | Effective PHP limit and the failing workload | Follow the memory-limit workflow |
| Failures follow a PHP branch switch | Actual web PHP version, extensions and compatibility | Repair the dependency or agree a supported, security-updated alternative |
| No PHP fatal, but worker exits or gateway failures | PHP-FPM, web-server, container and resource logs | Ask the host to identify the termination or capacity limit |
Deactivate one identified ordinary plugin
If you have SFTP or a hosting file manager and the log identifies a normal plugin, record its exact directory name. Temporarily rename only that directory, for example:
wp-content/plugins/example-plugin
becomes
wp-content/plugins/example-plugin.disabled
Keep a note of the original name. Request the failing page again and check the log. If the same error continues, stop broad changes and collect the new evidence. Renaming a directory does not run an uninstall, but the plugin’s functionality is unavailable while its code cannot load.
Do not start by deleting the plugin, renaming all of wp-content, or editing serialized database options. After restoring the directory name, check the plugin’s activation state in the dashboard rather than assuming it is active. WordPress describes folder renaming as a fallback when administrative access is unavailable.
For a developer with WP-CLI, the equivalent targeted operation can be:
wp --path=/absolute/path/to/wordpress --skip-plugins --skip-themes plugin deactivate example-plugin
Replace the path and slug first. The WP-CLI command reference documents plugin deactivation and bootstrap flags. --skip-plugins does not skip must-use plugins. A network-activated plugin, must-use plugin or drop-in such as object-cache.php needs a separate host or network-admin assessment; an ordinary plugin command is not a universal bypass.
If the failing component is the active theme, correct the last edit or test a switch to an installed compatible theme on staging. Do not remove the only working theme or assume a switch preserves the current site’s templates and functionality.
5. If this started after a PHP update
Compare the active web PHP version and extensions with the previous configuration. A shell’s php -v can describe a different runtime. If admin works, use Tools → Site Health → Info → Server and compare it with the domain’s hosting settings.
Our PHP Version Checker reports public clues when available; it cannot establish private package revisions. The PHP Upgrade Readiness Checker helps structure the application checks. Use the WordPress PHP recommendation and extension guide to investigate the specific compatibility gap.
Do not restore an old, vulnerable PHP build as a default recovery step. Ask the host to confirm the security update or vendor backport on any alternative runtime. The current PHP security notice explains why changing a branch and applying its security fixes are separate decisions. PHP’s release archive is the upstream source for those notices.
Recent PHP security releases also introduced hard memory termination behavior. A worker that hits a hard limit may exit before WordPress can write its usual shutdown log or send recovery mail. Ask the host to inspect worker stderr when relevant; PHP documents that distinction.
6. Prove recovery outside the dashboard
After the repair, exit Recovery Mode and check the original failing action in a logged-out session. Test the functionality of anything you temporarily disabled, plus login, forms and their delivery, editing and scheduled work. For a store, include cart, checkout, payment callbacks, order status, emails and inventory using an agreed test method.
Read new logs at the test timestamps. Confirm that new orders and customer changes remain present. Restore temporary debugging settings, retain the change record, and monitor the affected workflow. A homepage returning successfully does not prove that a checkout or background task recovered.
Download the recovery handoff checklist to collect the symptoms, current-state backup, change and acceptance checks in one place.
Get help recovering the site
Send the site address, failure time, last known change and a redacted error excerpt. Our Website Fix Sprint can cover an agreed repair priority after assessment; live-store recovery, legacy code and suspected compromise may need a different scope. We confirm the scope, price and timeline before starting.
Get help with my WordPress error
Related: PHP update scope and host coordination · Memory-limit troubleshooting
Frequently asked questions
What does the site is experiencing technical difficulties mean in WordPress?
In WordPress 5.2, this was the default screen shown when WordPress caught a fatal PHP error. WordPress 5.3 changed the wording to a critical error; current versions say There has been a critical error on this website. The log identifies the failing code or resource limit; the screen alone does not.
What does There has been a critical error on this website mean?
WordPress caught a fatal PHP error and displayed its default error screen. A plugin, theme, code edit, missing dependency or exhausted memory can cause it. Start with the private error log and recent changes, then repair or isolate the identified component.
How do I fix a WordPress critical error without an email?
Open your site’s /wp-login.php or the affected admin screen once: WordPress may attempt recovery email if the same eligible fatal error occurs there. Simply visiting a working login page does not trigger it. Check the admin inbox and spam, then use the host’s PHP error log and isolate the identified component through the hosting panel, SFTP or a developer’s WP-CLI access.
Where is the WordPress error log for a critical error?
Start with the PHP error log in your hosting control panel, at the time the error appeared. For more detail, turn on WP_DEBUG and WP_DEBUG_LOG with WP_DEBUG_DISPLAY off, and point the log to a private path outside the web root, because the default wp-content/debug.log can be publicly reachable. Remove the debug settings when you finish.
Why is my WordPress admin not working after a critical error?
A fatal PHP error in a plugin or theme that loads on every request also stops wp-admin. Use the Recovery Mode link from the admin email, or rename the plugin directory named in the error log through the hosting file manager or SFTP.
Does WordPress Recovery Mode fix the site for visitors?
No. Pausing a plugin or theme in Recovery Mode applies to the recovery session. You still need to correct or deliberately deactivate the failing component and test outside that session. A globally deactivated plugin also removes its features from the live site.
Should I restore a backup to fix a critical error?
A restore can be appropriate, but first preserve the current files and database and identify new orders, payments, accounts and content since the backup. A full database restore can remove those changes. Agree an order-preserving recovery plan with the host or developer for an active store.