Featured Articles

How To Fix The “Call to undefined function: get_currentuserinfo()” Error In Wordpress

Wordpress is one of those small things that work behind the scene to provide the means for a proper development of the bigger picture. If you are using wordpress for your blog, you definitely know what I mean.

One feature that makes wordpress really great is that you can install and use almost every plug-in you can think of to make your job easier.

The problem with some plug-ins is that, under certain circumstances, they will display an annoying error on your webpage. The error will tell you that a fatal error has occurred: an undefined function (get_currentuserinfo) has been called before it is defined.

The reason for this error is that the get_currentuser() function is called by a plugin before the “pluggable.php” library is loaded. Fortunately, there is a way to fix this error even if you are not a trained programmer.

wordpress
How To Fix The “Call to undefined function: get_currentuserinfo()” Error In Wordpress

If you get this error, you should search for the get_currentuser() function in the PHP code of the file you are having problems with. When you found it, copy the following line exactly above the get_currentuser() function:

require(ABSPATH . WPINC . ‘/pluggable.php’);

This will do the trick. This way, you will be able to still enjoy the benefits of your plugins with a minimum of effort.

Subscribe by RSS or enter your email for more News, Reviews and Tips & tricks:

Related Articles

This post was written by:

Mihai Andrici - who has written 406 posts on SoftSailor.


Contact the author

Leave a Reply to "How To Fix The “Call to undefined function: get_currentuserinfo()” Error In Wordpress"

Tags: , , , , , , , , , , , , ,

Sign up for our FREE daily email newsletter


 

Latest Articles

Dopod Roadmap Shows HTC Dragon, Tianshan, Huashan, and A6388 Heading To China
Dopod Roadmap Shows HTC Dragon, Tianshan, Huashan, and A6388 Heading To China

Published on February 09 2010 3:05 AM PST

In an earlier post I’ve mentioned that HTC manufactures the highest amount of cellphones on the market after Nokia. I’m actually beginning to think of [...]


Motorola Droid Android 2.1 Update Available For Download This Week, Multitouch Browser Ensues
Motorola Droid Android 2.1 Update Available For Download This Week, Multitouch Browser Ensues

Published on February 09 2010 2:34 AM PST

Motorola has officially announced on its official Facebook account that it’s going to officially deploy the official Android 2.1 update to the Motorola Droid as [...]


HTC Legend Pics Leaked On The Web
HTC Legend Pics Leaked On The Web

Published on February 09 2010 2:03 AM PST

If it were to exclude Nokia, HTC has released more cellphones in the past year and the Taiwan-based company is going to release even more [...]


Deal of the Day: ESPN Game Changer Universal Remote Control
Deal of the Day: ESPN Game Changer Universal Remote Control

Published on February 09 2010 1:45 AM PST

Woot’s special Valentines Day deal is history now so we should move on to more important things like this ESPN Game Changer Universal Remote Control. [...]


Watch Google Nexus One: The Story Episode 4 Manufacturing Video
Watch Google Nexus One: The Story Episode 4 Manufacturing Video

Published on February 08 2010 7:59 AM PST

We have already presented you three Nexus One: The Story episodes that were both exciting and impressive. I don’t know if the videos convinced anyone [...]