How To Fix Fatal Error Warning in WordPress

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


What Cause Fatal Error

WordPress fatal error can be caused numbers of factors such as:

  1. Bad Coding – A poorly coded plugin will cause problems regardless of what theme and plugins you are using.
  2. 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.
  3. Conflict with Another Plugin – Plugins do not always play nice together, particularly when the plugins offer similar functionality.
  4. 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.

How to Fix Fatal Error

You have 2 options to fix this issue, One is to Increase PHP Memory limit which I’ll explain below.

The second option is to simply disable or delete theme/Plugins You are using.

which is just a temporary fix if you are sure that theme or plugin doesn’t have any bad code.

 1. Increase PHP memory limit


Some hosts offer inbuilt functionality from their Dashboard to change your PHP memory limit but most common one is to do it by editing your wp-config.php file.

It is located on your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel.

Next, you need to paste this code into the wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’

 define( 'WP_MEMORY_LIMIT', '256M' );

It should work now(it definitely will)

2. Disable bad theme or plugin

If the issue happened while you were installing or upgrading the theme.

Then the first thing you’ll want to do is delete it from your server or change the name of folder like ‘your theme’ to something like ‘yourtheme_old’. by Log into your server using FTP.

Navigate to wp-content/themes/. From there, find the theme folder of your theme you have installed.

This should bring your site back to life as WordPress reverts back to a default theme.

If your site still isn’t functioning, navigate to wp-content/plugins/ on your server and delete any plugins you have installed recently or change their name too.

If it was simply plugin or theme compatible issue it should be fixed by now and give you some relief.

Have any question? Don’t forget to leave a comment below.

If you liked this article, then please follow us on Facebook for WordPress tutorials. You can also find us on Twitter and Google.


Leave a Comment