PHP notice

Undefined index: gid

/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/helpers/SurveyRuntimeHelper.php(1725)

1713         {
1714             if (($this->bShowEmptyGroup) || !isset($_SESSION[$this->LEMsessid]['grouplist'])){
1715                 $this->gid              = -1; // Make sure the gid is unused. This will assure that the foreach (fieldarray as ia) has no effect.
1716                 $this->groupname        = gT("Submit your answers");
1717                 $this->groupdescription = gT("There are no more questions. Please press the <Submit> button to finish this survey.");
1718             }
1719             else if ($this->sSurveyMode != 'survey')
1720             {
1721                 if ($this->sSurveyMode != 'group'){
1722                     $this->aStepInfo = LimeExpressionManager::GetStepIndexInfo($this->aMoveResult['seq']);
1723                 }
1724 
1725                 $this->gid              = $this->aStepInfo['gid'];
1726                 $this->groupname        = $this->aStepInfo['gname'];
1727                 $this->groupdescription = $this->aStepInfo['gtext'];
1728             }
1729         }
1730     }
1731 
1732     private function fixMaxStep()
1733     {
1734         // NOTE: must stay after setPreview  because of ()$this->sSurveyMode == 'group' && $this->previewgrp) condition touching step
1735         if ($_SESSION[$this->LEMsessid]['step'] > $_SESSION[$this->LEMsessid]['maxstep'])
1736         {
1737             $_SESSION[$this->LEMsessid]['maxstep'] = $_SESSION[$this->LEMsessid]['step'];

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/helpers/SurveyRuntimeHelper.php(117): SurveyRuntimeHelper->setGroup()
112         }else{
113             $this->setPreview();
114         }
115 
116         $this->moveSubmitIfNeeded();
117         $this->setGroup();
118 
119         $this->fixMaxStep();
120 
121         //******************************************************************************************************
122         //PRESENT SURVEY
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/controllers/survey/index.php(580): SurveyRuntimeHelper->run("746393", array("surveyid" => "746393", "thissurvey" => array("template" => "default", "language" => "it", "sid" => "746393", "owner_id" => "1", ...), "thisstep" => "1", "tokensexist" => 0, ...))
575         //Send local variables to the appropriate survey type
576         unset($redata);
577         $redata = compact(array_keys(get_defined_vars()));
578         Yii::import('application.helpers.SurveyRuntimeHelper');
579         $tmp = new SurveyRuntimeHelper();
580         $tmp->run($surveyid,$redata);
581 
582         if (App()->request->getPost('saveall') || isset($flashmessage)){
583             App()->clientScript->registerScript("saveflashmessage","alert('".gT("Your responses were successfully saved.","js")."');",CClientScript::POS_READY);
584         }
585     }
#2
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/controllers/survey/index.php(21): index->action()
16     public $oTemplate;
17 
18     public function run()
19     {
20         useFirebug();
21         $this->action();
22     }
23 
24     function action()
25     {
26         global $surveyid;
2017-06-17 17:50:45 Apache/2.2.22 (Debian) Yii Framework/1.1.17