View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
04170Bug reportsInstallationpublic2010-03-02 22:54
Reporterabort Assigned Toc_schmitz  
PrioritynormalSeveritycrash 
Status closedResolutionunable to reproduce 
Product Version1.87+ 
Summary04170: Error during installation when populate database
Description

call to undefined procedure SHA::hashing in common.php (line 4994)

Steps To Reproduce
  • Create database first
  • Install limesurvey by launching admin/install and choose to populate this database
    you'll get this error message call to undefined procedure SHA::hashing in common.php (line 4994)
Additional Information

line 4994 in common.php is :
$command = str_replace('$defaultpass', SHA256::hashing($defaultpass), $command); // variables By Moses

after verification in /admin/classes/core/sha256.php, hashing does not exist. The correct one to use is hash !

so, to fix the problem, you've got to replace :
$command = str_replace('$defaultpass', SHA256::hashing($defaultpass), $command); // variables By Moses

in common.php, by :
$command = str_replace('$defaultpass', SHA256::hash($defaultpass), $command); // variables By Moses

and DB will populate successfully ! :)

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)1.87
I will donate to the project if issue is resolved
Browser
Database type & versionmysql5.0
Server OS (if known)unix
Webserver software & version (if known)apache
PHP Version5.0
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

rovinj

rovinj

2010-03-02 21:44

reporter   ~11207

I suggest to use native PHP function: hash('sha256', $defaultpass)
instead of: SHA256::hash($defaultpass)

Issue History

Date Modified Username Field Change
2010-03-02 17:20 abort New Issue
2010-03-02 17:28 c_schmitz Status new => assigned
2010-03-02 17:28 c_schmitz Assigned To => user372
2010-03-02 21:44 rovinj Note Added: 11207
2010-03-02 22:54 c_schmitz Status assigned => closed
2010-03-02 22:54 c_schmitz Assigned To user372 => c_schmitz
2010-03-02 22:54 c_schmitz Resolution open => unable to reproduce