Title: Fatal Error: Undefined function wp_get_current_user () in user.php
Last modified: August 21, 2016

---

# Fatal Error: Undefined function wp_get_current_user () in user.php

 *  [sholem](https://wordpress.org/support/users/sholem/)
 * (@sholem)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_get_current_user-in-userphp/)
 * I get this error after installing a number of basic plugins:
    “Fatal error: Call
   to undefined function wp_get_current_user() in /home/gushbook/public_html/wp-
   includes/user.php on line 209” (This crashes my site and also my admin dashboard!
   So the only thing I can do is FTP to the site and delete the entire plugin!)
 * I searched the forums and I have tried going into capabilities.php and adding`
   require_once(‘pluggable.php’);` but that gave me an error:
    “function.require_once
   failed to open stream”
 * So, what do I do?
    (I tried basic plugins like Adrotate and Google Analytics 
   that really should work on any WP installation…)
 * Thanks!
    (Needless to say, I am quite the beginner so take that into account 
   when helping me!)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_get_current_user-in-userphp/#post-4207732)
 * Fatal error in the output generally indicates either: (1) your theme doesn’t 
   like your version of WordPress (2) you have a plugin that doesn’t like your version
   of WordPress (3) or you have an incomplete install/upgrade.
 * Have you tried:
 * -deactivating ALL plugins temporarily to see if this resolves the problem. If
   this works, re-activate them individually (one-by-one) to find the problematic
   plugin(s). If you can’t get into your admin dashboard, try deactivating via FTP
   or SFTP or whatever file management application your host provides. If applicible,
   also remember to deactivate any plugins in the mu-plugins folder. The easiest
   way is to rename that folder to mu-plugins-old.
    – To rule out any theme-specific
   issue, try switching to the unedited default theme for a moment using the WP 
   dashboard. If you don’t have access to your admin area, you can switch to the
   default theme by renaming your current theme’s folder in wp-content/themes and
   adding “-old” to the end of the folder name using via FTP or SFTP or whatever
   file management application your host provides. Alternately, you can remove other
   themes except the default theme. That will force your site to use it. – [resetting the plugins folder ](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause
   problems (because the hooks remain unless plugins completely removed or some 
   plugins stick around in cached files. So by renaming the folder, you break them
   and force them inactive). – If the above troubleshooting steps fail to resolve
   the issue, try manually re-uploading all files and folders EXCEPT the wp-config.
   php file and the /wp-content/ directory from a fresh download of WordPress. Make
   sure that you delete the old copies of files & folder before uploading the new
   ones. Read the [Manual Update ](http://codex.wordpress.org/Updating_WordPress#Manual_Update)
   directions first! – Always backup everything (including your database) before
   doing any actions, just in case.
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_get_current_user-in-userphp/#post-4207744)
 * First, you definitely do not want to modify a WordPress core file. The problem
   is with one of your plugins.
 * `wp-includes/pluggable.php`, which contains the `wp_get_current_user()` function,
   doesn’t get loaded until *after* plugins are loaded, so trying to use that function
   in a plugin will cause a fatal error. You should contact the plugin author and
   submit a bug report. The author should be able to use a hook that runs later 
   in the WordPress lifecycle.
 * You’ll need to follow Tara’s advice to narrow down which plugin it is.
 *  Thread Starter [sholem](https://wordpress.org/support/users/sholem/)
 * (@sholem)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_get_current_user-in-userphp/#post-4207792)
 * Thanks for the replies.
    I have this issue with a number o fplugins – every second
   or third plugin I try to install!
 * I assume this is rather something with the WP installation or site files, rather
   than a specific plugin?
    (I am getting this error with tried and tested highly
   popular plugins.)
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_get_current_user-in-userphp/#post-4207797)
 * What theme are using? Have you tried switching to the WP default theme?
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_get_current_user-in-userphp/#post-4207798)
 * Tara has a very good point. Try using another theme. If that fixes it, then look
   in the culprit theme’s functions.php file and see if it’s using `wp_get_current_user()`
   anywhere. If the wp_get_current_user function is not running in a hook, it’s 
   very likely you’ll get this same error.
 *  Thread Starter [sholem](https://wordpress.org/support/users/sholem/)
 * (@sholem)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_get_current_user-in-userphp/#post-4207800)
 * I will try WP default theme to see if my theme is the issue. (Again, my theme
   is also not a fly-by-nighter but rather from a trusted theme provider…)
 * BUT – I do not see any call to `wp_get_current_user()` anywhere in functions.
   php…
 * (Thanks again for the help…)
 * Just a thought – maybe **\*I\*** am the problem??
    ;->
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_get_current_user-in-userphp/#post-4207802)
 * It’s not likely WordPress, but it could be something the install. I could see
   a not commonly used plugin being a problem, but if you’re having the problem 
   with multiple well-known plugins, then that leaves theme (or a faulty WordPress
   install).
 * As far as the theme, wp_get_current_user wouldn’t necessarily have to be in functions.
   php, it could be in any other php file in the theme. I’ve had to fix major bugs
   in premium themes before, but granted, very obscure and unusual bugs.
 * So let us know if using a default WordPress theme like TwentyThirteen or TwentyTwelve
   fixes the problem.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Fatal Error: Undefined function wp_get_current_user () in user.php’ is
closed to new replies.

## Tags

 * [wp_get_current_user](https://wordpress.org/support/topic-tag/wp_get_current_user/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-undefined-function-wp_get_current_user-in-userphp/#post-4207802)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
