Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

serious install error 0.8 v 16100 “Fatal error: Call to undefined function hash() “
 
Geza
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2007-09-03
Budapest
 

Hi folks,

just tried a new install with the system and it gave me the following error:

Fatal error: Call to undefined function hash() in /var/www/xxx/married.hu/lib/Zend/Cache/Backend/File.php on line 625

Error can be seen here: http://www.married.hu

Environment variables can be found here from this server:

http://xlr8.hu/xadm/pinfo.php

Bugsy code should be in this block:

/**
     * Return the complete directory path of a filename (including hashedDirectoryStructure)
     *
     * @param string $id cache id
     * @return string complete directory path
     */
    private function _path($id)
    
{
        $root 
$this->_options['cache_dir'];
        
$prefix $this->_options['file_name_prefix'];
        if (
$this->_options['hashed_directory_level']>0{
            $hash 
hash('adler32'$id);
            for (
$i=$i $this->_options['hashed_directory_level'$i++) {
                $root 
$root $prefix '--' substr($hash0$i 1) . DIRECTORY_SEPARATOR;
            
}
        }
        
return $root;
    
}
 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Your PHP is compiled with --disable-all , i guess it disables hash extension which is default in PHP and required by Zend Framework.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Geza
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2007-09-03
Budapest
 

Thanks for the rapid solution.

We installed into the webjail security/pecl-hash for php to make the original PHP hash function work, and now the install works fine...smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
ionuts71
Jr. Member
 
Total Posts:  1
Joined:  2007-12-06
 

Despite I have PHP Version 5.2.0 I don’t find hash extension enabled.
Please let me know how to install security/pecl-hash.
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
iblastoff
Sr. Member
 
Total Posts:  252
Joined:  2007-08-31
 

ask your host?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Geza
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2007-09-03
Budapest
 

Hi ionuts71

We re using freebsd for webserver (with jails) and we installed /usr/ports/security/pecl-hash. (on linux installing is different and depends on distros package management system)

Ask your system administrator to install it to you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Geza
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2007-09-03
Budapest
 

Moshe

to avoid these kind of (server environmental) problems, I"d suggest before any install or non php standard functions called, have a script that checks the server environment, and tells us what modules/functions are missing, or what serve (apache, php, sql) settings are improper for the magento install or work correctly.

 
Magento Community Magento Community
Magento Community
Magento Community
 
wily
Jr. Member
 
Total Posts:  2
Joined:  2008-03-09
 

I experience the same issue in Gentoo, also required the hash useflag:

euse -E hash

Be sure to enable the simplexml useflag, also.

 
Magento Community Magento Community
Magento Community
Magento Community
 
quark
Member
 
Total Posts:  60
Joined:  2007-12-15
Romania
 
Geza - 17 February 2008 01:32 AM

Hi ionuts71

We re using freebsd for webserver (with jails) and we installed /usr/ports/security/pecl-hash. (on linux installing is different and depends on distros package management system)

Ask your system administrator to install it to you.

Unfortunately I am the administrator cheese  red face
I have a SuSE 10.2 and Plesk.
Can you let me know a step-by-step procedure to install pecl-hash on this OS?
Thank you in advance for your support.

 
Magento Community Magento Community
Magento Community
Magento Community
 
quark
Member
 
Total Posts:  60
Joined:  2007-12-15
Romania
 

I think I found a fix. Please see topic: http://www.magentocommerce.com/boards/viewthread/5257/

 
Magento Community Magento Community
Magento Community
Magento Community
 
quark
Member
 
Total Posts:  60
Joined:  2007-12-15
Romania
 
quark - 01 April 2008 01:11 PM

I think I found a fix. Please see topic: http://www.magentocommerce.com/boards/viewthread/5257/

This fix is not working with version 1.0.19870…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top