View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
09821Bug reportsSurvey takingpublic2015-08-21 19:20
Reporterpradhyu Assigned ToDenisChenu  
PriorityhighSeverityminor 
Status closedResolutionunable to reproduce 
Product Version2.05+ 
Summary09821: Error when turning on index view in the survey
Description

Error while turning on index view

Steps To Reproduce

turn on the index view for a survey then try to browse the survey

Additional Information

PHP notice

Undefined index: gid

/hermes/bosoraweb134/b96/ipg.asfnepalorg/survey/application/helpers/SurveyRuntimeHelper.php(767)

755 else if ($surveyMode != 'survey')
756 {
757 if ($previewquestion) {
758 $_qid = sanitize_int($param['qid']);
759 LimeExpressionManager::StartSurvey($surveyid, 'question', $surveyOptions, false, $LEMdebugLevel);
760 $qSec = LimeExpressionManager::GetQuestionSeq($_qid);
761 $moveResult = LimeExpressionManager::JumpTo($qSec+1,true,false,true);
762 $stepInfo = LimeExpressionManager::GetStepIndexInfo($moveResult['seq']);
763 } else {
764 $stepInfo = LimeExpressionManager::GetStepIndexInfo($moveResult['seq']);
765 }
766
767 $gid = $stepInfo['gid'];
768 $groupname = $stepInfo['gname'];
769 $groupdescription = $stepInfo['gtext'];
770 }
771 }
772 if ($previewquestion)
773 {
774 $_SESSION[$LEMsessid]['step'] = 0; //maybe unset it after the question has been displayed?
775 }
776
777 if ($_SESSION[$LEMsessid]['step'] > $_SESSION[$LEMsessid]['maxstep'])
778 {
779 $_SESSION[$LEMsessid]['maxstep'] = $_SESSION[$LEMsessid]['step'];
Stack Trace
#0
– /hermes/bosoraweb134/b96/ipg.asfnepalorg/survey/application/controllers/survey/index.php(579): SurveyRuntimeHelper->run("962268", array("surveyid" => "962268", "thissurvey" => array("sid" => "962268", "owner_id" => "1", "admin" => "Administrator", "active" => "Y", ...), "thisstep" => null, "tokensexist" => 0, ...))
574 //Send local variables to the appropriate survey type
575 unset($redata);
576 $redata = compact(array_keys(get_defined_vars()));
577 Yii::import('application.helpers.SurveyRuntimeHelper');
578 $tmp = new SurveyRuntimeHelper();
579 $tmp->run($surveyid,$redata);
580
581 if (isset($_POST['saveall']) || isset($flashmessage))
582 {
583 echo "<script type='text/javascript'> $(document).ready( function() { alert('".$clang->gT("Your responses were successfully saved.","js")."');}) </script>";
584 }
#1
– /hermes/bosoraweb134/b96/ipg.asfnepalorg/survey/application/controllers/survey/index.php(46): index->action()
41 App()->getClientScript()->render($buffer);
42 App()->getClientScript()->reset();
43 return $buffer;
44 });
45 ob_implicit_flush(false);
46 $this->action();
47 ob_flush();
48 }
49
50 function action()
51 {
#2

  • /hermes/bosoraweb134/b96/ipg.asfnepalorg/survey/framework/web/actions/CAction.php(76): index->run()
    #3
  • /hermes/bosoraweb134/b96/ipg.asfnepalorg/survey/framework/web/CController.php(308): CAction->runWithParams(array("lang" => "en", "sid" => "962268"))
    #4
  • /hermes/bosoraweb134/b96/ipg.asfnepalorg/survey/framework/web/CController.php(286): CController->runAction(index)
    #5
  • /hermes/bosoraweb134/b96/ipg.asfnepalorg/survey/framework/web/CController.php(265): CController->runActionWithFilters(index, array())
    #6
  • /hermes/bosoraweb134/b96/ipg.asfnepalorg/survey/framework/web/CWebApplication.php(282): CController->run("index")
    #7
  • /hermes/bosoraweb134/b96/ipg.asfnepalorg/survey/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/sid/962268")
    #8
  • /hermes/bosoraweb134/b96/ipg.asfnepalorg/survey/framework/base/CApplication.php(180): CWebApplication->processRequest()
    #9
    – /hermes/bosoraweb134/b96/ipg.asfnepalorg/survey/index.php(200): CApplication->run()
    195 die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath));
    196 }
    197 }
    198
    199
    200 Yii::createApplication('LSYii_Application', $config)->run();
    201
    202 / End of file index.php /
    203 / Location: ./index.php /
    2015-08-08 22:29:03 Apache/2 Yii Framework/1.1.15
TagsNo tags attached.
Attached Files
Bug heat2
Complete LimeSurvey version number (& build)Version 2.05+ Build 150520
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMysql
Server OS (if known)linux
Webserver software & version (if known)2015-08-08 22:29:03 Apache/2 Yii Framework/1.1.15
PHP Version5
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2015-08-12 13:09

developer   ~32923

Last edited: 2015-08-12 13:16

Can not reproduce with 2.06 : limesurvey.sondages.pro/962268 (debug is set to 2).

Did you try to

  • Launch survey with "newtest=Y"
  • Look at "survey logic file"

Because it can be due to old $_SESSION in Expression Manager.

PS : and your survey seems to work great too : http://www.asfnepal.org/survey/

DenisChenu

DenisChenu

2015-08-21 19:20

developer   ~32981

No feedback

Issue History

Date Modified Username Field Change
2015-08-09 04:38 pradhyu New Issue
2015-08-09 04:38 pradhyu File Added: limesurvey_survey_962268.lss
2015-08-12 13:03 c_schmitz Assigned To => DenisChenu
2015-08-12 13:03 c_schmitz Status new => assigned
2015-08-12 13:09 DenisChenu Note Added: 32923
2015-08-12 13:09 DenisChenu Status assigned => feedback
2015-08-12 13:11 DenisChenu Note Edited: 32923
2015-08-12 13:16 DenisChenu Note Edited: 32923
2015-08-21 19:20 DenisChenu Note Added: 32981
2015-08-21 19:20 DenisChenu Status feedback => closed
2015-08-21 19:20 DenisChenu Resolution open => unable to reproduce