1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Help tracking down error

Discussion in 'Troubleshooting and Problems' started by LPH, Nov 11, 2013.

  1. LPH

    LPH Well-Known Member

    Hi,

    I've upgraded to XenForo 1.2.3 this evening and now get tons of error messages in my error log. I'm fairly sure this is NOT XenForo related but due to a plugin. I'm shaky on the meaning of the error message and where to look in xmlrpc.php

    Code:
    Error Info
    ErrorException: Fatal Error: Call to a member function exists() on a non-object - /path-to-wordpress/wp-includes/pluggable.php:730
    Generated By: Unknown Account, 10 minutes ago
    Stack Trace
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    Request State
    array(3) {
    ["url"] => string(44) "http://www.tuxreports.com/tablets/xmlrpc.php"
    ["_GET"] => array(0) {
    }
    ["_POST"] => array(0) {
    }
    }
    
    
    
    Can someone please suggest the best way to track down this error?

    line 730:
    Code:
    if ( ! $user->exists() )
    The full function is :

    Code:
    if ( !function_exists('is_user_logged_in') ) :
    /**
     * Checks if the current visitor is a logged in user.
     *
     * @since 2.0.0
     *
     * @return bool True if user is logged in, false if not logged in.
     */
    function is_user_logged_in() {
       $user = wp_get_current_user();
    
       if ( ! $user->exists() )
         return false;
    
       return true;
    }
    endif;
    
    Thank you for any guidance.
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    $user doesn't exist as an object. This is an error within Wordpress, not XenForo.
     
  3. LPH

    LPH Well-Known Member

    Thank you. I was fairly certain this is the XenScripts bridge but wanted some tactics to track the error down.
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    It's best to ask the author. It's his code that is failing for you.
     
  5. LPH

    LPH Well-Known Member

    Thank you. I was able to fix this code by enabling XML-RPC in the XenScripts plugin.
     

Share This Page