PHP warning

Undefined array key "hiddenSteps"

/media/shnoulle/data/webdev/master/application/helpers/SurveyRuntimeHelper.php(1797)

1785             if ($gseq == -1) {
1786                 $sMessage = gT('Invalid group number for this survey: ') . $_gid;
1787                 renderError('', $sMessage, $this->aSurveyInfo, $this->sTemplateViewPath);
1788             }
1789 
1790             $this->aMoveResult = LimeExpressionManager::JumpTo($gseq + 1, 'group', false, true);
1791             if (is_null($this->aMoveResult)) {
1792                 $sMessage = gT('This group contains no questions.  You must add questions to this group before you can preview it');
1793                 renderError('', $sMessage, $this->aSurveyInfo, $this->sTemplateViewPath);
1794             }
1795 
1796             $_SESSION[$this->LEMsessid]['step'] = $this->aMoveResult['seq'] + 1; // step is index base 1?
1797             $_SESSION[$this->LEMsessid]['hiddenSteps'] = $this->aMoveResult['hiddenSteps'];
1798 
1799             $this->aStepInfo = LimeExpressionManager::GetStepIndexInfo($this->aMoveResult['seq']);
1800 
1801             // #14595
1802             if (empty($this->aStepInfo)) {
1803                 $sMessage = gT('This group is empty');
1804                 renderError('', $sMessage, $this->aSurveyInfo, $this->sTemplateViewPath);
1805             }
1806         } elseif ($this->previewquestion) {
1807             $_qid       = sanitize_int($this->param['qid']);
1808             LimeExpressionManager::StartSurvey($this->iSurveyid, $this->sSurveyMode, $this->aSurveyOptions, true, $this->LEMdebugLevel);
1809             $qSec = LimeExpressionManager::GetQuestionSeq($_qid);

Stack Trace

#0
+
 /media/shnoulle/data/webdev/master/application/helpers/SurveyRuntimeHelper.php(217): SurveyRuntimeHelper->setPreview()
212             $this->saveAllIfNeeded();
213             $this->saveSubmitIfNeeded();
214             // TODO: move somewhere else
215             $this->setNotAnsweredAndNotValidated();
216         } else {
217             $this->setPreview();
218         }
219         $this->moveSubmitIfNeeded();
220         $this->setGroup();
221         $this->fixMaxStep();
222 
#1
+
 /media/shnoulle/data/webdev/master/application/controllers/survey/SurveyIndex.php(662): SurveyRuntimeHelper->run(948651, array("surveyid" => 948651, "thissurvey" => array("sid" => 948651, "owner_id" => 1, "gsid" => 1, "admin" => "Amministratore OpenSurvey.it", ...), "thisstep" => 0, "tokensexist" => 0, ...))
657         unset($redata);
658         $redata = compact(array_keys(get_defined_vars()));
659         Yii::import('application.helpers.SurveyRuntimeHelper');
660         $tmp = new SurveyRuntimeHelper();
661         // try {
662             $tmp->run($surveyid, $redata);
663         // } catch (WrongTemplateVersionException $ex) {
664         //     echo $ex->getMessage();
665         // }
666     }
667 
#2
+
 /media/shnoulle/data/webdev/master/application/controllers/survey/SurveyIndex.php(22): SurveyIndex->action()
17     public $oTemplate;
18 
19     public function run()
20     {
21         useFirebug();
22         $this->action();
23     }
24 
25     /**
26      *
27      * todo: this function is toooo long, to many things happening here. Should be refactored asap!
2024-10-15 16:24:01 nginx/1.22.1 Yii Framework/1.1.29