Upgraded and now can not access Network Dashboard


#1

Upgraded today … to latest version … now unable to access Network Dashboard. Error message as below:

Fatal error: Call to undefined function wp_get_current_user() in /home/aiartgro/public_html/wp-includes/capabilities.php on line 1286

Help please, this is a live site.

Allan


#2

The code is as follows:

/**  
 * Whether current user has capability or role.  
 *  
 * @since 2.0.0  
 *  
 * @param string $capability Capability or role name.  
 * @return bool  
 */  
function current_user_can( $capability ) {  
	$current_user = wp_get_current_user();  

	if ( empty( $current_user ) )  
		return false;  

	$args = array_slice( func_get_args(), 1 );  
	$args = array_merge( array( $capability ), $args );  

	return call_user_func_array( array( $current_user, 'has_cap' ), $args );  
}  

#3

Hi Allan,

wp_get_current_user is core wordpress fuction http://codex.wordpress.org/Function_Reference/wp_get_current_user

Can you login via FTP and remove plugin first? I guess that will give you access to your dashboard if its issue because of our plugin.

After that you can try reinstalling plugin. Let us know if you face that issue again after installation.


#4

Also there is a known issue with Multisite Plugin Manager plugin.

Can you please confirm if you are using that plugin on your setup?

References:

  • http://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-wp_get_current_user
  • http://wordpress.org/support/topic/dont-work-with-352-multisite

#5

This article is referencing a different line in the code … here are the plug-ins that are installed on this site. I initiated the Multi SIte but do not have the plug-in you listed.

Allan

Attachment Link(s):

http://rtcamp.com/wp-content/uploads/rtMedia/topics/52671/2013/12/Plugin-List-AIA.jpg


#6

I renamed the BuddyPress Media and the RTMedia Pro directories and they were both turned to inactive but the error still appears. There was another update that was installed at the same time … will try and figure out what it was. Seems not to be caused by RT Media as the error is still showing without these plug-ins being active.


#7

I finally found the offending plug-in … it is the WP Video Lightbox , I have disabled this plug-in and the error has gone away. Must have been a conflict with one of the other media plug-ins.

Thanks …
Allan


#8

Thanks for update.

This looks like wordpress core file issues? Did you migrated server recently from one host to another host? Or upgraded wordpress itself to the latest version?

If some wordpress core files are missing, such error could show up.

You can also quickly disable all plugins to confirm if its wordpress issue or some plugin issue.


#9

#10