PHP notice

Undefined index: gid

/mnt/data/shnoulle/nginx/www/3LTS/application/helpers/SurveyRuntimeHelper.php(1683)

1671 
1672     private function setGroup()
1673     {
1674         if (!$this->previewgrp && !$this->previewquestion) {
1675             if (($this->bShowEmptyGroup) || !isset($_SESSION[$this->LEMsessid]['grouplist'])) {
1676                 $this->gid              = -1; // Make sure the gid is unused. This will assure that the foreach (fieldarray as ia) has no effect.
1677                 $this->groupname        = gT("Submit your answers");
1678                 $this->groupdescription = gT("There are no more questions. Please press the <Submit> button to finish this survey.");
1679             } else if ($this->sSurveyMode != 'survey') {
1680                 if ($this->sSurveyMode != 'group') {
1681                     $this->aStepInfo = LimeExpressionManager::GetStepIndexInfo($this->aMoveResult['seq']);
1682                 }
1683                 $this->gid              = $this->aStepInfo['gid'];
1684                 $this->groupname        = $this->aStepInfo['gname'];
1685                 $this->groupdescription = $this->aStepInfo['gtext'];
1686                 $this->groupname        = LimeExpressionManager::ProcessString($this->groupname, null, null, 3, 1, false, true, false);
1687                 $this->groupdescription = LimeExpressionManager::ProcessString($this->groupdescription, null, null, 3, 1, false, true, false);
1688             }
1689         }
1690     }
1691 
1692     private function fixMaxStep()
1693     {
1694         // NOTE: must stay after setPreview  because of ()$this->sSurveyMode == 'group' && $this->previewgrp) condition touching step
1695         if ($_SESSION[$this->LEMsessid]['step'] > $_SESSION[$this->LEMsessid]['maxstep']) {

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/helpers/SurveyRuntimeHelper.php(116): SurveyRuntimeHelper->setGroup()
111             $this->setNotAnsweredAndNotValidated();
112         } else {
113             $this->setPreview();
114         }
115         $this->moveSubmitIfNeeded();
116         $this->setGroup();
117         $this->fixMaxStep();
118 
119         //******************************************************************************************************
120         //PRESENT SURVEY
121         //******************************************************************************************************
#1
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/controllers/survey/index.php(595): SurveyRuntimeHelper->run("282267", array("surveyid" => "282267", "thissurvey" => array("htmlemail" => "Y", "format" => "G", "template" => "vanilla", "language" => "en", ...), "thisstep" => "1", "tokensexist" => 0, ...))
590         unset($redata);
591         $redata = compact(array_keys(get_defined_vars()));
592         Yii::import('application.helpers.SurveyRuntimeHelper');
593         $tmp = new SurveyRuntimeHelper();
594         // try {
595             $tmp->run($surveyid, $redata);
596         // } catch (WrongTemplateVersionException $ex) {
597         //     echo $ex->getMessage();
598         // }
599     }
600 
#2
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/controllers/survey/index.php(24): index->action()
19     public $oTemplate;
20 
21     public function run()
22     {
23         useFirebug();
24         $this->action();
25     }
26 
27     public function action()
28     {
29         global $surveyid;
2021-02-18 08:40:28 nginx/1.18.0 Yii Framework/1.1.22-dev