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

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?
 
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?
 
this is a default install. no add ons or anything.

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