• 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

Mikey

Well-known member
#1
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?
 
R

ragtek

Guest
#2
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?
 

Mikey

Well-known member
#3
this is a default install. no add ons or anything.

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