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

Fixed Fatal error: Call to a member function authenticate() on a non-object

Discussion in 'Resolved Bug Reports' started by Mikey, Oct 24, 2011.

  1. Mikey

    Mikey Well-Known Member

    Code:
    Fatal error: Call to a member function authenticate() on a non-object in /<path>/community/library/XenForo/Model/User.php on line 1024
    Anyone know why this would happen?
     
  2. ragtek

    ragtek Guest

    It means you're having a invalid authentication Object.

    for me it's line 972 in xf 1.1 b3
    PHP:
      $authentication $this->getUserAuthenticationObjectByUserId($user['user_id']);
                if (!
    $authentication->authenticate($user['user_id'], $password)) {
                    
    $error = new XenForo_Phrase('incorrect_password');
                    return 
    false;
                }
    maybe xf shoud throw an error if $authenticatin is false and not a child of XenForo_Authentication_Abstract

    do you have own authentication shemas?
    did you import from an other boardsystem?
     
  3. Mikey

    Mikey Well-Known Member

    this is a default install. no add ons or anything.

    the code on line 1024 is the same as what you've posted above.
     
  4. Mikey

    Mikey Well-Known Member

    reinstalling (in effect) fixed it. something must have not gone up right..
     
  5. Kier

    Kier XenForo Developer Staff Member

    Shall I mark this as 'Not a bug' then?
     
  6. Mike

    Mike XenForo Developer Staff Member

    I've prevented this error anyway.
     
    ragtek likes this.

Share This Page