If WordPress says “There has been a critical error on this website,” don’t edit wp-config.php or the file named in an error message. First, check whether the problem affects the public site, /wp-admin/, or just one action. Note the time, look for a matching entry in your host’s PHP error log, and check the site administrator’s inbox for a Recovery Mode email. Those checks can narrow the problem to one plugin, theme, or server change without touching source code.
The banner tells you that WordPress couldn’t finish a request. It isn’t much of a witness.
1. Find out what fails and what still works
- Check the public site in a private browser window. Open the homepage and the affected URL directly. A working homepage isn’t proof that WordPress is healthy: a CDN or page cache can serve an older copy while a request that needs PHP fails.
- Open
/wp-admin/separately. Note whether you see the login screen, can sign in, or hit the error only after opening a particular admin page. If the original failure followed a payment, form submission, or bulk edit, don’t repeat that action just to reproduce it. Check whether it already went through. - Write down the failing URL or action, the time and time zone, and the last known change. Check for automatic updates as well as changes you made yourself. A host-side PHP switch or an interrupted update can matter even if nobody touched the dashboard.
If the error appeared during an update, check whether the host or deployment tool still shows a job in progress. Don’t stack another update on top of it. If the dashboard works, collect what you can from Tools → Site Health → Info, including the active theme, plugins, and PHP version. Treat that information as a record of the current setup, not a diagnosis.
2. Match one failed request to the PHP log
In your hosting panel, select the affected site and look for Logs, Error Logs, or a PHP log viewer. Labels and access vary by host. If you only see an access log or a list of HTTP 500 responses, ask support for the PHP fatal error around the time you recorded. You don’t need to turn on public error display.
For a page that’s safe to load again, make one request and note the time. Look for a new entry at that time, accounting for the log’s time zone. On a shared log, confirm the file path belongs to the right site. Read the fatal error and the first few stack frames together: the file where PHP stopped can be the caller or the victim, not the cause.
Call to undefined functionorClass not found: Check whether a required plugin was deactivated, an update left files missing, or the PHP environment changed. The missing name and the code calling it are more useful together than either is alone.Allowed memory size exhausted: Note whether it happens everywhere or only during a heavy task such as an import. Ask the host to confirm the effective memory limit for web requests before raising it. The line that ran out of memory doesn’t tell you what used the rest.Failed opening requiredorPermission denied: Check the exact path and whether it exists. If the file is there, ask the host to verify ownership and access for the site’s PHP process. Don’t make the directory broadly writable to see what happens.
If nothing new appears, you may be looking at the wrong log, or the site’s PHP errors may not be available in your panel. Give support the domain, timestamp, and failing route. Share only the relevant lines privately, with any credentials, tokens, or customer data removed.

3. Isolate one component without editing its files
Start with WordPress Recovery Mode
Check the site administrator’s mailbox and spam folder for a message about a technical issue. Verify that the recovery link points to your site’s expected domain before signing in, and keep the link private. A missing email doesn’t rule out a plugin or theme problem: mail delivery may be broken, or WordPress may not have reached the point where it could send one.
In Recovery Mode, WordPress can pause the implicated plugin or theme for your recovery session. Read the notice and compare it with the PHP log. If the notice identifies a regular plugin and the evidence agrees, you can deactivate it from Plugins → Installed Plugins. That’s a separate, site-wide change. A dashboard that works in Recovery Mode is not proof that visitors can get in.
If you’re locked out and the log points to one regular plugin
- Confirm you have a usable backup of the files and database and know how to access it. If the suspect plugin handles checkout, authentication, memberships, or another essential function, plan for that interruption or test the change on staging first.
- Verify the site’s document root in your host’s file manager or over SFTP. In a standard installation, open
wp-content/pluginsand use the folder name from the log to identify the plugin. Rename only that folder, appending something like-hold, and write down the original name. Don’t delete it, rename the entire plugins directory, or use this procedure onwp-content/mu-plugins. For a network-activated plugin on Multisite, coordinate with the network administrator first. - Retest the original safe request outside Recovery Mode and check for a fresh fatal error. If there’s no improvement, put the folder name back before trying another cause. Verify the plugin’s activation status afterward: renaming a folder back doesn’t guarantee WordPress will reactivate it. If the rename fixes the error, leave the suspect plugin out of service while you work out a compatible update or replacement.
If the evidence points to a theme, use Appearance → Themes if you can reach it and test an already-installed fallback on staging first. A live switch can change layouts and templates even when it fixes the fatal error. If you’re locked out and don’t know what fallback is installed, ask the host for help rather than renaming theme folders by trial and error.
4. Verify the fix before calling it a recovery
Keep a short record of what you changed and when. If the fatal started after a host-side PHP change, ask the host to confirm the version serving the site’s web requests and identify a supported version that fits your WordPress, plugin, and theme requirements. Don’t flip through PHP versions at random. It makes the timeline harder to read and can introduce a second failure.
After a change, check the original URL or action, the public site while signed out, and /wp-admin/ in a normal session. Test the feature the disabled component provided, using staging or test mode for anything that sends mail, charges money, or changes customer data. Check for fresh fatal entries from those requests. A homepage that loads while checkout is broken is a narrower outage, not a fix.
If a restore is necessary, ask whether the failed change can be reversed without replacing the database. Restoring an older database can overwrite newer orders, submissions, or edits. Keep the current files and database before any restore. If your backup is a .wpress archive, extracting its files is not the same as restoring a working site: WordPress still needs a working installation and a correctly restored, connected database.