Fatal Error Call To Undefined Function Hash Opencart
Download Documentation Documentation Screencasts Support General Support Community Forums Bug Tracker Contact Us Extensions Partners Community Forums Board index Change font size Search FAQ Register Login Information The requested topic does not exist. Board index The team • Delete all board cookies • All times are UTC - 6 hours Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group Protected by Anti-Spam ACP Get Social Follow us on the social media web sites. Newsletter Subscribe to our newsletters and be informed of new releases and other OpenCart events. Subscribe here Contact Us OpenCart Limited, Unit 16, 26/F, Tuen Mun Central Square, 22 Hoi Wing Road, Tuen Mun, Hong Kong +852 24990996 Send email via our contact form Copyright © 2012 OpenCart - All rights reserved Hosted by A2 Hosting
Download Documentation Documentation Screencasts Support General Support Community Forums Bug Tracker Contact Us Extensions Partners Community Forums Board index ‹ OpenCart 1.5+ Support ‹ Installation, Upgrade, & Config Support Change font size Print view Search FAQ Register Login Call to undefined function mcrypt_create_iv() in Please post any issues you are having concerning installation or upgrade of OpenCart v1.x Post a reply 6 posts • Page 1 of http://forum.opencart.com/viewtopic.php?f=19&t=113082 1 Call to undefined function mcrypt_create_iv() in by AbraKadaWeb » Sun Sep 09, 2012 1:12 pm Hi,I just upgraded from 1.5.3.1 to 1.5.4.1 . but when I try to run upgrade.php I got this error:Fatal error: Call to undefined function mcrypt_create_iv() in /var/www/vhosts/abrakadaweb.com/httpdocs/boutique/system/library/encryption.php on line 8I have access to admin panel,Somebody can https://forum.opencart.com/viewtopic.php?t=83931 help me on this please?Thanks in advanceSylvio=================I ran upgrade.php I think it was an error. Now I just ran intall.php and I see the ugrade instruction. But I have 3 line of error on top:Notice: Undefined variable: dbuser in /var/www/vhosts/abrakadaweb.com/httpdocs/boutique/install/index.php(28) : eval()'d code on line 1Notice: Undefined variable: dbpass in /var/www/vhosts/abrakadaweb.com/httpdocs/boutique/install/index.php(28) : eval()'d code on line 1Notice: Undefined variable: dbname in /var/www/vhosts/abrakadaweb.com/httpdocs/boutique/install/index.php(28) : eval()'d code on line 1I clic on UPGRADE, after when I refresh page and cleaned cookies twice on admin panet I lost the admin panel and got this error:(I replace my passwords by xxxxxx)Notice: Error: Unknown column 'salt' in 'where clause'Error No: 1054SELECT * FROM user WHERE username = 'Fleuve Magique' AND (password = SHA1(CONCAT(salt, SHA1(CONCAT(salt, SHA1('xxxxxxxxx'))))) OR password = 'xxxxxxxxxxxx7') AND status = '1' in /var/www/vhosts/abrakadaweb.com/httpdocs/boutique/system/database/mysql.php on line 49 Sylvio ^) ^AbraKadaWeb.ComOpencart 1.5.3.1 - FR AbraKadaWeb Posts: 16Joined: Sat Mar 03, 2012 9:44 pmLocation: Drummondville,Québec,Canada Website Top Re: Call to undefi
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or http://stackoverflow.com/questions/5591975/call-to-undefined-function-hash-in-var-www-site-problem posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Call to undefined function hash() in /var/www/site/ problem up vote 0 down vote favorite 1 I have called hash function in my code like (php version 5.2.14 ) $username =hash("sha256",trim($_POST['username'])); $password =hash("sha256",trim($_POST['password'])); but I got error fatal error like Call to undefined function hash() in /var/www/site/ What to do ? php share|improve this question edited Apr 8 '11 at 7:44 asked Apr 8 '11 at 7:38 Damir 12.9k56173291 Which php version? –KingCrunch Apr 8 '11 at 7:42 PHP version ..? –Shakti Singh Apr 8 '11 at 7:42 what version of PHP do you have? if you take a look at the documentation jp.php.net/manual/zh/function.hash.php, you would notice that you need a PHP 5 >= 5.1.2 fatal error call or the pecl module ..... –RageZ Apr 8 '11 at 7:42 Do you have hash enabled in your phpinfo(); –Santosh Linkha Apr 8 '11 at 7:43 Hi there. Which Php version are you using? Be sure hash is defined in that version... –Nobita Apr 8 '11 at 7:43 add a comment| 5 Answers 5 active oldest votes up vote 4 down vote accepted It means it cannot find the function hash(). Checking the manual I see this: (PHP 5 >= 5.1.2, PECL hash >= 1.1) What php version do you run? Try: phpinfo() ?> To check. If it is lower then 5.1.2 you do not have the hash() function available share|improve this answer answered Apr 8 '11 at 7:42 Nanne 46.4k1376112 add a comment| up vote 2 down vote 'hash()' was introduced in PHP 5.1.2, so it's possible you have an older version. share|improve this answer answered Apr 8 '11 at 7:42 ctford 4,44032347 add a comment| up vote 2 down vote Check your PHP version because the hash function is only available for version PHP 5 >= 5.1.2 with PECL hash >= 1.1 share|improve this answer answered Apr 8 '11 at 7:43 Osh Mansor 72021123 add a comment| up vote 0 down vote If you do have an older version, you can still revert to the sha1 or sha256 functions as follows: $username = sha1(trim($_POST['username'])); $password = sha1(trim($_POST['password'])); OR $username = sha256(trim($_POST['username'])); $password = sha256(trim($_POST['password'])); HOWEVE