Quite frustrating but necessary is the The exact error message “There has been a critical error on your website” was not very informative about the cause of the problem.
How to Bypass the critical error and to regain access to your WordPress admin console, Logon to your cPanel or FTP and browse to the WordPress install instance, then simple rename the plugins folder to plugins.old, refresh the browser and you will have access again.
Depending on how you installed WordPress its highly likely that the PHP memory limit is the cause of “There has been a critical error on this website. Please check your site admin email inbox for instructions”
WordPress sets a limit on how much memory any one PHP script can take up. When this limit is exceeded, you’ll encounter the white screen of death or the critical error. – This is why it only happens with some plugins or themes.
The default value is far too low for todays requirements. Try Raising your PHP limit just a bit to see if it fixes your broken website.
- Step 1: Access your site through FTP or cPanel File explorer and open or edit wp-config.php.
- Step 2: Insert the following code right before the final line and save.
define( 'WP_MEMORY_LIMIT', '128M' );
If you still getting a critical error
You can also try 256M if this doesn’t fix the issue, don’t go any higher unless specifically required by a plugin or theme. If the issue is with the memory limit, the plugin you’re using is almost certainly broken and needs to be disabled.
A side note: Some hosts won’t allow you to raise the PHP memory Limit. your only option is to switch to a better host or delete the plugin causing the problem.