PHP warning

Undefined variable $question

/media/shnoulle/data/www/master/application/helpers/expressions/em_manager_helper.php(3869)

3857                 $answers = [];
3858                 foreach ($ansArray as $key => $value) {
3859                     $answers[] = "'" . $key . "':'" . htmlspecialchars(preg_replace('/[[:space:]]/', ' ', (string) $value), ENT_QUOTES) . "'";
3860                 }
3861                 $ansList = ",'answers':{ " . implode(",", $answers) . "}";
3862             }
3863             // Set mappings of variable names to needed attributes
3864             $varInfo_Code = [
3865                 'jsName_on'   => $jsVarName_on,
3866                 'jsName'      => $jsVarName,
3867                 'readWrite'   => $readWrite,
3868                 'hidden'      => $hidden,
3869                 'question'    => $question,
3870                 'qid'         => $questionNum,
3871                 'gid'         => $groupNum,
3872                 'grelevance'  => $grelevance,
3873                 'relevance'   => $relevance,
3874                 'SQrelevance' => $SQrelevance,
3875                 'qcode'       => $varName,
3876                 'qseq'        => $questionSeq,
3877                 'gseq'        => $groupSeq,
3878                 'type'        => $type,
3879                 'sgqa'        => $sgqa,
3880                 'ansList'     => $ansList,
3881                 'ansArray'    => $ansArray,

Stack Trace

#0
+
 /media/shnoulle/data/www/master/application/helpers/expressions/em_manager_helper.php(4610): LimeExpressionManager->setVariableAndTokenMappingsForExpressionManager(623399)
4605             $LEM->em->StartProcessingGroup(
4606                 isset($_SESSION['LEMsid']) ? $_SESSION['LEMsid'] : null,
4607                 '',
4608                 true
4609             );
4610             $LEM->setVariableAndTokenMappingsForExpressionManager($_SESSION['LEMsid']);
4611         }
4612     }
4613 
4614     /**
4615      * Initialize a survey so can use EM to manage navigation
#1
+
 /media/shnoulle/data/www/master/application/controllers/QuestionAdministrationController.php(54): LimeExpressionManager::StartProcessingPage(false, true)
49             $this->aData['oSurvey'] = $this->aData['oSurvey'] ?? Survey::model()->findByPk($this->aData['surveyid']);
50 
51             // Needed to evaluate EM expressions in question summary
52             // See bug #11845
53             LimeExpressionManager::SetSurveyId($this->aData['surveyid']);
54             LimeExpressionManager::StartProcessingPage(false, true);
55 
56             $this->layout = 'layout_questioneditor';
57         }
58 
59         return parent::beforeRender($view);
#3
+
 /media/shnoulle/data/www/master/application/controllers/QuestionAdministrationController.php(298): CController->render("create", array("oSurvey" => Survey, "oQuestion" => Question, "aQuestionTypeGroups" => array("single_choice_questions" => array("questionGroupName" => "Single choice questions", "questionTypes" => array(array("title" => "5 point choice", "name" => "5pointchoice", "type" => "5", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Bootstrap buttons", "name" => "bootstrap_buttons", "type" => "L", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Bootstrap dropdown", "name" => "bootstrap_dropdown", "type" => "!", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Image select list (Radio)", "name" => "image_select-listradio", "type" => "L", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), ...)), "arrays" => array("questionGroupName" => "Arrays", "questionTypes" => array(array("title" => "Array", "name" => "arrays/array", "type" => "F", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Array (5 point choice)", "name" => "arrays/5point", "type" => "A", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Array (10 point choice)", "name" => "arrays/10point", "type" => "B", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Array (Increase/Same/Decrease)", "name" => "arrays/increasesamedecrease", "type" => "E", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), ...)), "multiple_choice_questions" => array("questionGroupName" => "Multiple choice questions", "questionTypes" => array(array("title" => "Bootstrap buttons", "name" => "bootstrap_buttons_multi", "type" => "M", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Image select multiple choice", "name" => "image_select-multiplechoice", "type" => "M", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Multiple choice", "name" => "multiplechoice", "type" => "M", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Multiple choice with comments", "name" => "multiplechoice_with_comments", "type" => "P", "detailpage" => " <div class="col-12 currentImageContainer"> ..."))), "text_questions" => array("questionGroupName" => "Text questions", "questionTypes" => array(array("title" => "Browser detection", "name" => "browserdetect", "type" => "S", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Huge free text", "name" => "hugefreetext", "type" => "U", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Input on demand", "name" => "inputondemand", "type" => "Q", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), array("title" => "Long free text", "name" => "longfreetext", "type" => "T", "detailpage" => " <div class="col-12 currentImageContainer"> ..."), ...)), ...), "advancedSettings" => array("Logic" => array(array("name" => "random_group", "caption" => "Randomization group name", "inputtype" => "text", "options" => null, ...)), "Display" => array(array("name" => "hide_tip", "caption" => "Hide tip", "inputtype" => "switch", "options" => array("No", "Yes"), ...), array("name" => "hidden", "caption" => "Always hide this question", "inputtype" => "switch", "options" => array("No", "Yes"), ...), array("name" => "readonly", "caption" => "Show as readonly", "inputtype" => "text", "options" => null, ...), array("name" => "cssclass", "caption" => "CSS class(es)", "inputtype" => "text", "options" => null, ...)), "Other" => array(array("name" => "page_break", "caption" => "Insert page break in printable view", "inputtype" => "switch", "options" => array("No", "Yes"), ...), array("name" => "max_filesize", "caption" => "Maximum file size allowed (in KB)", "inputtype" => "integer", "options" => null, ...), array("name" => "max_num_of_files", "caption" => "Max number of files", "inputtype" => "integer", "options" => null, ...), array("name" => "min_num_of_files", "caption" => "Min number of files", "inputtype" => "integer", "options" => null, ...), ...), "Statistics" => array(array("name" => "statistics_showgraph", "caption" => "Display chart", "inputtype" => "switch", "options" => array(1 => "Yes", 0 => "No"), ...), array("name" => "statistics_graphtype", "caption" => "Chart type", "inputtype" => "singleselect", "options" => array("Bar chart", "Pie chart", "Radar", "Line", ...), ...)), ...), ...))
293             'selectormodeclass'     => $selectormodeclass,
294         ];
295 
296         $this->aData = array_merge($this->aData, $viewData);
297 
298         $this->render(
299             'create',
300             $viewData
301         );
302     }
303 
2026-05-28 10:03:01 nginx/1.26.3 Yii Framework/1.1.32