This page may contain affiliate links. Please read our disclaimer for more information.

How to Fix: Fatal Error… for WordPress Websites

April 5, 2017

If you just visited your WordPress website and saw a scary Fatal Error message that looks something like this:

Fatal error: Some message here about what it cant do /home/yourusername/public_html/wp-content/plugins/plugin-folder-name/plugin-file.php on line ###

Don’t panic!

I’m going to show you the easiest way to diagnose and solve this problem.

Need a Done-for-You Option?

Done-For-You Service

Want us to fix it for you!? If you don’t want to waste time with these tech issues, we’re happy to do-it-for-you! You can feel confident knowing you’ve got an expert fixing it for you!

PRO TIP: Before you begin, be sure to backup your site!!

Let’s Diagnose This!

This error is usually a result of a plugin or theme. As indicated by the last bit in the error message shown above /plugins/….

They could be conflicting with each other or a new WordPress update. It could also be caused by a failed plugin/theme update.

Or the fact that your plugins and/or theme need to be updated.

Usually when this happens, you will be unable to access your WP Admin.

Therefore, we will need to access the database in order to get this done.

Below I show you how to do this with cPanel and WP Engine‘s dashboard, but ultimately you need to get to phpMyAdmin.

cPanel Access to phpMyAdmin

  1. Type “PHP” in the search bar
  2. Click on the “phpMyAdmin” icon

WP Engine Access to phpMyAdmin

After selecting the “Install” you want to work with, if you have multiple, follow these steps…

  1. Click on “phpMyAdmin”

Working in phpMyAdmin

Once you’re in the phpMyAdmin you will see a dashboard that looks similar to this below. There are different versions which change the UI of the control panel but the steps will be the same.

  1. Click on your Database name in the left column
  2. Click on “wp_options” in the left column
  3. Need to move to page 2 by clicking on the right arrow

NOTE: Please do not do step 4 and 5 consecutively. Use the Fatal error message on the screen to determine where you need to start. If it’s a plugin, then proceed with step 4, if it’s a theme then you’ll want to go to step 5 below.

  1. Find the table for “active_plugins” we will edit this table in next section
  2. Find the tables for “template” and “stylesheet” we will edit these table in the next section as well

Clearing Content in Tables in part 4 and 5 from above

  1. Click “Edit”
  1. Cut all content (control+c or command+c) in the big box and save it to a note pad and delete from the box
  2. Click “Go”

Next Step: Did this resolve the problem?

Once you’ve completed these steps above, you will want to refresh your website homepage and see if it pulls up.

Warning: Without your theme and plugins, you site will look much different, but the point is to diagnose the issue.

If the site is loading, you now know for sure that the problem is either your theme or plugins or both.

Great but now what?

With the problem theme and/or plugin disabled, you will be able to access the WP Admin again.

If it was a plugin issue and you followed step 4 above, you will need to reactivate your plugins, except for the one with the issue. At least until you’ve done the following recommendations.

You’ll want to check your updates. Are there any for your theme / plugins. Is there a new WordPress update that just completed?

You may need to reach out to the plugin / theme developers via their support forms to see if anybody else has reported the same issue. If not, be the first!

Wrapping up!

Getting the plugins and themes deactivated is the easy part. Really figuring out how to solve the problem is where it gets tricky.

I will say that in most cases a quick update will resolve whatever issue there was, but in those cases that it does not, you’ll probably want to reach out to your developer to help resolve the problem for good.

Done-For-You Service

Want us to fix it for you!? If you don’t want to waste time with these tech issues, we’re happy to do-it-for-you! You can feel confident knowing you’ve got an expert fixing it for you!

Chris

Article by Chris Eggleston

Husband. Father to 4. Grandpa to 2. Gravity Forms enthusiast. As the owner of WP Mantis, I’m on a mission to simplify the WordPress experience for site owners. I also try to bring a unique perspective to the Gravity Forms community at gravityranger.com.

0 0 votes
Article Rating
Subscribe
Notify of
guest
29 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
THE WAR OF DESTINY
8 years ago

My client would really like to get the MailChimp WooCommerce plugin installed, and I have been trying for several months to resolve, hoping that MC would update the plugin so that it could be used with our installation. However, every time I go to install this plugin, it breaks the site.

This is the error I am getting when installing on our staging site:

Fatal error: Call to undefined function wp_get_raw_referer() in /nas/content/staging/walaswim/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php on line 373

==
WordPress version: 4.1.16
PHP version: 5.6

Would be very grateful if you could help get this resolved. Let me know if there is additional information that is needed.

David
7 years ago

I tried to open a five-year-old post and got the fatal error. Later posts open, but not earlier ones. I have not added plugins or changed the theme for a long time. I can get to the edit screen for the post, but clicking on view post from there gets the same error. My WordPress and theme are up to date.

What now?

Tia
Tia
7 years ago

This post just saved me so much time. Thank you for putting this together. I had a plugin do this and couldn’t figure out how to get around it without being able to login. Your a website saver Chris!

Marek
Marek
7 years ago

Finally! After millions of articles about changing memory limit to “fix” this problem, I found one more clever… and working. Thank you

Denice
Denice
7 years ago

Just the trick to enable access to WordPress and get around the fatal error! Thank you from a WordPress newbie.

Azizul Khan
Azizul Khan
7 years ago

Very good. Thanks.

Ben
Ben
6 years ago

hello Tech Savvies, may you help me fix this error please

“Fatal error: Can’t use method return value in write context in /home/paggelco/public_html/wp-content/plugins/wc-multivendor-marketplace/core/class-wcfmmp-commission.php on line 67.”

Ahmed
6 years ago

when i run the malware scanner from cpanel it has removed some files,can you help me resolve this error.

Fatal error: Call to undefined function avada() in /home/zealitcc/public_html/wp-content/plugins/fusion-builder/inc/lib/inc/class-fusion-dynamic-css-inline.php on line 41

ThemeMasterly
6 years ago

Hi

following is my site problem, what shall I do, please

Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/eboorgse/public_html/thememasterly.com/wp-includes/functions.php on line 4773

Greg Cunningham
6 years ago

Hi,

We are trying to reactive a website which was set up by someone else and have not had much help from that person. I do have login information, but when I attempt to go to the login, I get this message:

Fatal error: Call to undefined function get_custom_logo() in /data/17/1/148/117/1800280/user/1949088/htdocs/wordpress/wp-content/themes/illdy/inc/back-compatible.php on line 7

We have limited knowledge of coding and html but would like to just be able to update the site. Any help would be greatly appreciated!

Digiruns
5 years ago

Oh my god thank you. This post saved my time without losss. Thanks.

Laurie Wolt
5 years ago

This saved me so much. Thank you.

Salud Villegas
5 years ago

I’ve paid for a one-job fix but cannot access my site to create a user account for you (even if I knew how). I need to a fatal error fixed after I updated plugins. How do you want me to proceed?

Salud Villegas
5 years ago

OK. Thanks

Salud Villegas
5 years ago
Reply to  Salud Villegas

Also, I don’t know what FTP is let alone the details.

shakir
shakir
4 years ago

Below is the error appears when i activate Plugin…
Plugin could not be activated because it triggered a fatal error.

Parse error: syntax error, unexpected ‘;’ in /home/vol10_1/epizy.com/epiz_28583073/htdocs/wp-content/plugins/ninja-forms/ninja-forms.php on line 15
How I Solve it..

Harel Levy
Harel Levy
3 years ago

Thank you so much that was very helpful 🙂