If your site stops working because of some fatal error warning, don’t freak out.
Most of the time WordPress users face this error while installing/updating plugin or theme or try to add some kind of code.
How to Fix Fatal Error In WordPress
Even though error itself looks quite scary because it take down whole site down, It’s quite easy to fix.
Let’s have a look at some sceanrio which can cause fatal error.
If the issue happened while you were installing or upgrading theme.
Then the very first thing you suppose to do is delete it from your server or change the name of folder like ‘yourtheme’ to something like ‘yourtheme_old’. by Log into your server using FTP.
You can find your theme folder by navigating to wp-content > themes from there, delete or rename the theme you were using before.
This should bring your site back to life as WordPress reverts back to a default theme such as 2019.
If your site still showing the same error go to the wp-content folder and rename the plugins folder to something else like plugins1 this will disable all plugins on your website.
If this resolve the error rename the plugins folder name to
Now, Enable all plugins one by one to see if any plugin cause the problem this way you will find out the bad plugin that caused the problem at first place.
3 .htaccess file
If disabling or deleting plugins and theme doesn’t fix the fatal error, The another thing you can try is deleting the .htaccess file.
Though make sure you keep the copy of it in case you will need it later.
If your site starts working again, after deleting .htaccess file go to settings > permalink and save the settings again without making any changes this will
What Cause Fatal Error
WordPress fatal error can be caused numbers of factors such as:
- Bad Coding – A poorly coded plugin will cause problems regardless of what theme and plugins you are using.
- Conflict with WordPress – Plugin code can be incompatible with the code used in the WordPress core files. Due to this, most plugin developers update their plugins after a new version of WordPress has been released to ensure that their plugin is still compatible. Unfortunately, many plugin developers do not do this, which is why you need to be extra careful when installing older plugins.
- Conflict with Another Plugin – Plugins do not always play nice together, particularly when the plugins offer similar functionality.
- Conflict with Your Theme – Many theme functions are placed in the theme’s functions.php file. The principle of extending a theme’s functionality using functions is the same as adding functionality through a plugin. As such, problems can occur if it is coded badly or if it conflicts with another plugin.
Let us know if this