How to Fix Fatal Error after upgrade to WordPress 2.8

Posted by (35) Comment

If you are like many of us using some plug-ins like nofollow links in post or Google analytics(these are the plugin that use the is_site_admin() function).
Wordpress Fix


You should be ready to be surprised to find that the is_site_admin() function is now obsolete. After a successful upgrade from wordpress 2.7,  when you re-login to wordpress 2.8 you get following erroris_site_admin_fix_wordpress

Fatal error: Call to undefined function is_site_admin() in ….

Here is how I fixed this…

  1. Delete the Plug-in folder after downloading it via FTP
  2. Find the phrase is_site_admin() in the plugin files
  3. Replace it with is_admin()
  4. Upload it again to server via FTP
  5. Login to WordPress admin, Activate the plugin if it is de-activated.
  6. Say Thanks :)

You might also like

10 WordPress Plug-in for powering your Blogging Experience In this blog post I will explain you that how you can use advance wordpress plug-in for powering your...
10 Plugins To Improve Your WordPress Blog Experience WordPress is a blog publishing application that is used by millions of people worldwide. It started...
Top 5 WordPress Virtual Appliance Downloads There are number of virtual appliances available for some one who is deep into wordpress blogging and...
Top 10 WordPress Plugins Wordpress, a very useful tool for blogging websites. It can be made more effective by using its plugins....
Categories : WordPress Tags : , , , , , , , ,

Comments
June 12, 2009

Are you saying that I can delete the specific plugin folder 100%?

Posted by barry
June 13, 2009

I think he is saying “DO NOT Delete” the plugin folder. Instead, he recommends to edit the plugin files and change the string from is_site_admin to is_admin

Posted by Maria
June 13, 2009

Works great – thanks rmak!

Posted by John Dalziel
June 14, 2009

Ok thanks! :mrgreen:

I didn’t even know the function is_site_admin() exist(ed)… I used is_admin() all the time. :)

Posted by Sally
June 15, 2009

How do you delete the plugin folder if I cannot access the admin pages to edit anything?

-n00b

Posted by Tony
June 15, 2009

You have to use your hosting control panel or FTP client to do that

Posted by Maria
June 16, 2009

Thanks! I didn’t have to delete anything. I logged onto my host server using SSH and directly edited the file with pico (it’s a UNIX host).

THanks again!

Posted by iceolate
June 18, 2009

Thanks! I just edited sem-google-analytics-admin.php on my site and changed it as you said and it worked just fine.

Posted by Adam
June 19, 2009

Thank you! I upgraded today and got the error. Searched and found your perfect fix. :)

Posted by Øyvind
June 24, 2009

Thanks for sharing the useful information…

July 11, 2009

Thanks for sharing this!!! Very helpful, quick fix that worked like a charm. As a note I had to .php files in my google analytics folder. It was the -admin.php that had to be changed and there were 2 instances of the is_site_admin()that had to be corrected.

Cheers!

Posted by RoneTyne
July 21, 2009

Thanks for this Useful Info…

Posted by Ap2Day
July 22, 2009

Thanks! That worked like a charm. As some mentioned above, my culprit was sem-google-analytics-admin.php and once I fixed it, it worked!

Posted by Neil Brown
July 27, 2009

Thank you so much for posting this. I had no idea what was going on when this happened. Fortunately, your very simple solution was at the top of my Google search, and fixing this took all of two minutes.

Posted by Tad Suiter
July 29, 2009

Thanks for this!

Posted by bmattb
August 25, 2009

I love simple clean solutions – thanks a bunch!

Posted by drh
August 26, 2009

I am not sure I udnerstand this: is_site_admin was checking if the user is an overall admin. what does is_admin do? to me it sounds like its just checking for admin not “sper” admin? so every blog owner is basically an admin!?

Posted by ovidiu
August 26, 2009

actually, wordpress made is_site_admin() function obsolete and dropped from core functions. that’s why any plugin that calls it seize to work.

Posted by Maria
August 27, 2009

Hi,

Thx for your information. My problem solved just by editing is_site_admin() to is_admin() without deleting plugin’s folder ;)

Posted by wim
September 6, 2009

Thanks a lot for this. Saved me when upgrading to 2.8.4.

Posted by Brooks
October 14, 2009

hi thanks!

this post helped a lot :)

some of my “fatal error” problems are already solved!

hope you can write a post about fixing fatal error on comments!

cheers!

Posted by sterndal
October 21, 2009

Many thanks!
This worked a treat.

Although I edited mine in CPanel.

Good Post, clear and simple.

BTW the plugin I had to edit was wordpress_related_posts

Cheers
Darren

Posted by Darren
October 22, 2009

Thanks. This worked for me as well today. Edited my google analytics file in the plugin folder using CODA.

Posted by Phillip
November 9, 2009

Thanks! Worked perfectly :)

Posted by Martha
November 12, 2009

Thanks so much for the tip!

Posted by Dave F
November 19, 2009

Thank you, you’ve saved my life. You should add that the use of Notepad++ is highly recommended. It searched for the obsolete function and replaced it in the whole plugin folder automatically, which tottaly rocks!!!

Posted by RG
February 9, 2010

Bonjour, je n’ est pas le plugin d’ installé dans le ftp, alors je ne peut pas l’ effacer..par contre je l’ est effacé de ma base donnée. Et ne trouve pas les is_site_admin phrase.

Posted by gwen
February 9, 2010

Thanks for the fix!

Posted by Doug
February 10, 2010

THX!

Posted by Sayisee
May 29, 2010

Thanks!
Quick and easy. I thought I was in for a big problem too.

Posted by James Lorenz
June 1, 2010

Thanks!

Posted by Nuwan
June 7, 2010

Thanks for the tip! It worked!

Posted by Shawn
December 28, 2010

Thank you very much! :)

Posted by Z
Leave a comment

(required)

(required)