• Fatal error: Call to undefined function wp_get_current_user() in /………wp-includes/capabilities.php on line 1203

    I’m getting the following error after trying to upgrade Meteor Sldes on a Multisite setup. Can’t get into my network admin area at all which is quite crippling I can’t install new plugins on any network sites. Any ideas? I tried deleting the plugin but that changed nothing. I went into the database and deleted the settings info for the plugin no change…

    Thanks

Viewing 1 replies (of 1 total)
  • well, I have experienced this issue before, and this was the cause:

    I was using “current_user_can(‘edit_posts’);”

    The issue was I was doing this on a login_redirect hook. When you first go to the /wp-admin, it calls this, but you are not logged in yet. The user the function receives is a WP Error, rather than a WP User.

    Do you have this function running anywhere without a check for if the $user is actually a user?

Viewing 1 replies (of 1 total)
  • The topic ‘Multisite Crash’ is closed to new replies.