If you get a WordPress “There has been a critical error on your website” error, you probably have an issue with a theme or plugin. The quickest way to troubleshoot is to rename the plugins directory since there’s no way to login. This technically disables all plugins. Rename it back to plugins and enable each plugin one by one.

Disable all plugins.

<pre lang="bash">
mv plugins plugins-backup

Login and restore the plugins directory.

<pre lang="bash">
mv plugins-backup plugins

Enable each plugin one by one and check if the site is broken.