View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05885Bug reportsAuthenticationpublic2012-03-13 21:57
Reportergoran Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionunable to reproduce 
Product Version1.92 
Summary05885: Fatal error: Class 'SHA256' not found in ....... admin/usercontrol.php on line 153
Description

Today I've installed for the first time ever latest LS (1.92-build120303) and after installing on production server I had problems logging in.

To start from the beggining:

  • copied software files from package to develepment enviroment and then to production server
  • created database and user
  • runned instalation script and got success message, then redirected to admin page (after deleting install folder)
  • when I tried to login page, using default login data i got error "Fatal error: Class 'SHA256' not found in ... admin/usercontrol.php on line 153"

I've opened usercontrol.php file and searched for SHA256 function but it wasn't there... then I've found it in /admin/classes/core/sha256.php

In first file (usercontrol.php) i saw reference include
require_once($homedir."/classes/core/sha256.php") and tride to use absolute path but it wasn't succesfull... then I've used whole content of second mentioned file and pasted it into first one and as quick fix and improvisation (as a junior programer, senior web designer) and it worked :)

Hope I've helped you understending my problem, I guess i'm not the only one haveing it - keep up the good work and all the best from Goran from Serbia.

I have PHP Version 5.2.17

Hashing Engines (from my php info)

md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)120303
I will donate to the project if issue is resolvedNo
BrowserFirefox 10.x
Database type & versionMySQL MyISAM
Server OS (if known)Linux
Webserver software & version (if known)OpenSuse
PHP Version5.2.17
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-03-07 16:48

administrator   ~17775

Last edited: 2012-03-07 17:15

I am sorry but I can't reproduce it here. So far you seem to be the only one experiencing this issue so I guess it is most likely a configuration problem of your server.
After

require_once($homedir."/classes/core/sha256.php")

please add the line

die($homedir."/classes/core/sha256.php");

and check what path is shown when you try to login.
Please report back.

c_schmitz

c_schmitz

2012-03-11 16:37

administrator   ~17881

Feedback please?

goran

goran

2012-03-12 09:06

reporter   ~17885

Hello,

when I do that and trz to login at admin interface I got absolute path for sha256 file

/var/www/vhosts/.../httpdocs/istrazivanje/admin/classes/core/sha256.php

and that is a full path for mentioned file... and the file is identical as downloaded form original package.

Can I provide you with more particular details from my server configuration?
Thanks.

c_schmitz

c_schmitz

2012-03-13 21:57

administrator   ~17908

Sorry, but this is not a support tracker. I am 100% sure that this is not a LimeSurvey.

Issue History

Date Modified Username Field Change
2012-03-07 16:00 goran New Issue
2012-03-07 16:03 Mazi Assigned To => TMSWhite
2012-03-07 16:03 Mazi Status new => assigned
2012-03-07 16:47 c_schmitz Assigned To TMSWhite => c_schmitz
2012-03-07 16:48 c_schmitz Note Added: 17775
2012-03-07 16:48 c_schmitz Status assigned => feedback
2012-03-07 17:15 c_schmitz Note Edited: 17775
2012-03-11 16:37 c_schmitz Note Added: 17881
2012-03-12 09:06 goran Note Added: 17885
2012-03-12 09:06 goran Status feedback => assigned
2012-03-13 21:57 c_schmitz Note Added: 17908
2012-03-13 21:57 c_schmitz Status assigned => closed
2012-03-13 21:57 c_schmitz Resolution open => unable to reproduce