Disclosure: I build FatalGuard , a free plugin for this problem. The steps below work without it.
You open your site and see this:
There has been a critical error on this website.
That page hides a PHP fatal error. Most of the time a plugin or theme caused it. Here is how to get your site back, from the easiest route to the most manual one.
First: do not panic, do not delete
Nothing is lost. Your posts and settings are in the database. A broken plugin only stops PHP from running. Switch it off and the site returns. Do not delete anything yet.
Method 1: the recovery mode email
Since WordPress 5.2, a fatal error sends an email to the site admin address. The subject says your site has a technical issue. The email names the plugin or theme that failed and has a recovery mode link .
Open the email. Check spam if you do not see it.
Click the link and log in.
WordPress puts you in recovery mode. The broken plugin or theme is paused for you only.β¦