• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.
Resource icon

HOWTO: Fix XML-RPC Error in WordPress 3.7.1 and XenForo 1.2.3

After an upgrade to WordPress 3.7.1 and XenForo 1.2.3, an error appears in the server log.

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;
   }
  • Like
Reactions: Digital Doctor
Author
LPH
Views
580
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from LPH

Top