View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05937Bug reportsOtherpublic2012-03-26 18:42
Reportersandrocasali Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionwon't fix 
Product Version1.92+ 
Summary05937: $sessionhandler = 'db'; >> Fatal error: session_start() when I want to test a questionnaire during the design
Description

I have this following php error when I want to test a questionnaire during the design (before activate it) :

PHP Fatal error: session_start() : Failed to initialize storage module: user (path: /var/lib/php/session) in /opt/limesurvey/192plus-build120311/index.php on line 218

I precise that I've change the session handler = 'file' by 'db' because with my configuration it was more stable ...

The effect of PHP BUG https://bugs.php.net/bug.php?id=32330

Steps To Reproduce

1/ Change the parameter in the config-default.php by $sessionhandler = 'db';
2/ Make a new questionnaire
3/ Write the decription, one group of questions ...etc
4/ Test the questionnaire
5/ Normally Error

Additional Information

See the PHP BUG at https://bugs.php.net/bug.php?id=32330

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)120311
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (x86_64) using readline 5.1
Server OS (if known)Linux CentOS release 5.7
Webserver software & version (if known)Apache/2.2.3
PHP Version5.1.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-03-21 14:52

administrator   ~18022

So, how do you know it is a PHP bug?
Did you upgrade to PHP 5.3 and it worked all of the sudden?

sandrocasali

sandrocasali

2012-03-21 14:57

reporter   ~18023

the problem is that i cannot upgrade to PHP 5.3
i am in a common envirnoment.

i have workaround the problem inserting the follow code in index.php after the calls to session_destroy() :

if($sessionhandler=='db'){ADODB_Session::_init();if(empty($ADODB_SESSION_READONLY))register_shutdown_function('session_write_close');}

c_schmitz

c_schmitz

2012-03-26 18:42

administrator   ~18090

Thank you for reporting this.
Problem is that I cannot reproduce it here and I am not installing an 6 year old PHP version to try. Since it seems to be a bug in PHP anyway, just updating to PHP to the latest 5.3 should do the trick and so it generally-speaking not a LimeSurvey problem.

Issue History

Date Modified Username Field Change
2012-03-21 14:09 sandrocasali New Issue
2012-03-21 14:51 c_schmitz Assigned To => c_schmitz
2012-03-21 14:51 c_schmitz Status new => assigned
2012-03-21 14:52 c_schmitz Note Added: 18022
2012-03-21 14:52 c_schmitz Status assigned => feedback
2012-03-21 14:57 sandrocasali Note Added: 18023
2012-03-21 14:57 sandrocasali Status feedback => assigned
2012-03-26 18:42 c_schmitz Note Added: 18090
2012-03-26 18:42 c_schmitz Status assigned => closed
2012-03-26 18:42 c_schmitz Resolution open => won't fix