I applied the patch correctly, but trying to log (admin) in is giving the following error:
error_log: PHP Fatal error: Call to undefined function hash_equals() in /app/code/core/Mage/Core/Model/Encryption.php on line 103
Encryption.php on line 103
/**
* Validate hash against hashing method (with or without salt)
*
* @param string $password
* @param string $hash
* @return bool
* @throws Exception
*/
public function validateHash($password, $hash)
{
$hashArr = explode(':', $hash);
switch (count($hashArr)) {
case 1:
return hash_equals($this->hash($password), $hash);
case 2:
return hash_equals($this->hash($hashArr[1] . $password), $hashArr[0]);
}
Mage::throwException('Invalid hash.');
}
I use the following version:
PHP Version 5.3.29
Magento Version 1.9.2.4
I've already done what was suggested in this post, but the problem at the time of logging remains.
The problem only started to appear because I applied the patch.
– Wilson Eugenio Nov 08 '16 at 13:53