Last Updated on December 1, 2019 by Christopher G Mendla
I went to update a client’s site to WordPress 3.7.
As usual, I backed up and downloaded the site prior to the update.
After the update, I got
Fatal error: Call to undefined function wp_get_current_user()
Awwww cwap.. The front and back end were dead. Fortunately , I found a thread at
http://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_current_user-4
The solution there was to go to
/public_html/wp/wp-includes and modify the capabilites.php file to add
require_once(‘pluggable.php’);
Note – your path might be different. You are looking for the wp-includes folder.
Now, there is a note there that copying and pasting the code won’t work UNLESS you manually retype the quotes using the single quote.. and….. they were correct..
So, I made the changes and the front and back end came back to life. .. and my pulse and respiration returned to normal.
Oh, and I didn’t need the backup I had just run but it was a really nice feeling to know I had it.
And, a final note to the WordPress guys.. Stop scaring the stuff out of me with tricks like that.