After an upgrade to WordPress 3.7.1 and XenForo 1.2.3, an error appears in the server log.
This error may be fixed by changing the get_currentuserinfo() function in the file /include/xf_replacement_user_functions.php
Change this line:
To this new line:
Code:
ErrorException: Fatal Error: Call to a member function exists() on a non-object - /path/to/wp-includes/pluggable.php:730
Generated by: Unknown account
Follow up
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request state
array(3) {
["url"] => string(31) "http://YOURSITE.com/xmlrpc.php"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
This error may be fixed by changing the get_currentuserinfo() function in the file /include/xf_replacement_user_functions.php
Change this line:
Code:
if ( defined('XMLRPC_REQUEST') && XMLRPC_REQUEST )
return false;
To this new line:
Code:
if ( defined('XMLRPC_REQUEST') && XMLRPC_REQUEST ) {
wp_set_current_user( 0 );
return false;
}