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

Unable to log-in as admin after server move.

I recently move my xenforo installation to a new server.

I copied all files over and changed the config.php to reflect new database.

I can log in fine as a normal user and everthing seems to work well. The problem is when i try to log in as admin I get the following error:

Fatal error: Call to undefined function hash() in /myserverpath/httpdocs/library/XenForo/Authentication/Core.php on line 57

Any Ideas?

Thanks for your help in advance.


XenForo developer
Staff member
That's tricky. Your new PHP server doesn't have an extension that is part of the PHP core (http://www.php.net/manual/en/hash.installation.php), but your old one did and passwords we hashed using it. It looks like your new server has explicitly disabled it with --disable-hash when PHP was compiled (http://www.php.net/manual/en/hash.requirements.php).

Ideally, you need to get that installed; there's no reason for it to not be there. If you really can't do that, you can use the lost password system, though who knows how many users this will effect.