WordPress Critical Errors
After spending hours updating your new WordPress Site, you go to take a look at the page and receive the dreaded "There has been a critical error on your website" message. No need to fear, we got you covered!
What Causes a WordPress Critical Error?
- With these errors, it usually can be traced back to the PHP Issues.
- This means either the PHP Version is not correct, the code within your Theme/Plugins conflicts with the currently running PHP Version, or your PHP Memory Settings are not sufficient.
How Can I Fix This Issue?
The first thing we suggest doing in this situation, would be to enable Debugging for your WordPress.
- This can be done a few ways:
- Via WordPress Manager by Softaculous (Recommended)
- Editing your wp-config.php file manually and adding the following code to the end of the file:
define( 'WP_DEBUG', false );
-
- Once you have debugging enabled, you can likely determine the cause of the issue. If the issue mentions a plugin/theme, try disabling the mentioned plugin or theme.
* Note: If you do not have access to your WordPress Dashboard, you can edit the wp-config.php file via cPanel's File Manager, or FTP. For disabling a theme or plugin, you will simply want to rename the folder to theme.bak or plugin.bak
(Themes are located in $DOCUMENTROOT/wp-content/themes/$NAMEOFTHEME and plugins $DOCUMENTROOT/wp-content/plugins/$NAMEOFPLUGIN)
- If the error mentions memory, you can edit the memory limits set for the site using cPanel's MultiPHP INI Editor for the site.