PHP notice

Undefined variable: assessmentvisible

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/views/admin/survey/Question/answerOptions_view.php(242)

230 
231                     <!-- Modals -->
232                     <?php $this->renderPartial("./survey/Question/question_subviews/_modals", array()); ?>
233 
234                     <p>
235                         <input type='submit' class="hidden" id='saveallbtn_<?php echo $anslang; ?>' name='method' value='<?php eT("Save changes"); ?>' />
236                         <!-- For javascript -->
237                         <input
238                             type="hidden"
239                             id="add-input-javascript-datas"
240                             data-url="<?php echo App()->createUrl('/admin/questions/sa/getSubquestionRowForAllLanguages/');?>"
241                             data-quickurl="<?php echo App()->createUrl('/admin/questions/sa/getSubquestionRowQuickAdd/');?>"
242                             data-assessmentvisible="<?php echo ($assessmentvisible ? "1" : "0"); ?>"
243                             data-errormessage="An error occured while processing the ajax request."
244                             data-surveyid="<?php echo $surveyid;?>"
245                             data-gid="<?php echo $gid;?>"
246                             data-qid="<?php echo $qid;?>"
247                             data-scale-id="<?php echo $scale_id-1; // -1 : because it's incremented via <  ?>"
248                         />
249                     </p>
250 
251                 </div>
252                 <input type='hidden' id='bFullPOST' name='bFullPOST' value='1' />
253 
254             </form>

Stack Trace

#3
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(317): CController->renderPartial("/admin/survey/Question/answerOptions_view", array("surveyid" => "79775", "gid" => "2826", "qid" => "54424", "display" => array("menu_bars" => array("surveysummary" => "viewgroup", "gid_action" => "addquestion", "qid_action" => "editsubquestions")), ...))
312                 elseif (is_array($viewUrl))
313                 {
314                     foreach ($viewUrl as $aSubData)
315                     {
316                         $aSubData = array_merge($aData, $aSubData);
317                         Yii::app()->getController()->renderPartial($sViewPath . $sViewKey, $aSubData);
318                     }
319                 }
320             }
321             else
322             {
#4
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/questions.php(2084): Survey_Common_Action->_renderWrappedTemplate("survey/Question", array("_subQuestionsAndAnwsersJsVariables" => array(array("anscount" => 8, "row" => array("qid" => "54428", "parent_qid" => "54424", "sid" => "79775", "gid" => "2826", ...), "scalecount" => 2, "activated" => "N", ...)), "answerOptions_view" => array(array("anscount" => 8, "row" => array("qid" => "54428", "parent_qid" => "54424", "sid" => "79775", "gid" => "2826", ...), "scalecount" => 2, "activated" => "N", ...))), array("surveyid" => "79775", "gid" => "2826", "qid" => "54424", "display" => array("menu_bars" => array("surveysummary" => "viewgroup", "gid_action" => "addquestion", "qid_action" => "editsubquestions")), ...))
2079     * @param string|array $aViewUrls View url(s)
2080     * @param array $aData Data to be passed on. Optional.
2081     */
2082     protected function _renderWrappedTemplate($sAction = 'survey/Question', $aViewUrls = array(), $aData = array())
2083     {
2084         parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
2085     }
2086 
2087     /**
2088      * Show error and redirect back if survey is active
2089      *
#5
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/questions.php(680): questions->_renderWrappedTemplate("survey/Question", array("_subQuestionsAndAnwsersJsVariables" => array(array("anscount" => 8, "row" => array("qid" => "54428", "parent_qid" => "54424", "sid" => "79775", "gid" => "2826", ...), "scalecount" => 2, "activated" => "N", ...)), "answerOptions_view" => array(array("anscount" => 8, "row" => array("qid" => "54428", "parent_qid" => "54424", "sid" => "79775", "gid" => "2826", ...), "scalecount" => 2, "activated" => "N", ...))), array("surveyid" => "79775", "gid" => "2826", "qid" => "54424", "display" => array("menu_bars" => array("surveysummary" => "viewgroup", "gid_action" => "addquestion", "qid_action" => "editsubquestions")), ...))
675         $aData['sidemenu']['explorer']['state'] = true;
676         $aData['sidemenu']['explorer']['gid'] = (isset($gid))?$gid:false;
677         $aData['sidemenu']['explorer']['qid'] = (isset($qid))?$qid:false;
678 
679 
680         $this->_renderWrappedTemplate('survey/Question', $aViewUrls, $aData);
681     }
682 
683     /**
684     * Load only subquestion specific screen only.
685     *
2017-01-31 08:32:32 Apache/2.2.22 (Debian) Yii Framework/1.1.17
Application Log
Timestamp Level Category Message
08:32:32.399302 error php
Undefined variable: assessmentvisible
(/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/views/admin/survey/Question/answerOptions_view.php:242)
Stack trace:
#0
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(869):
AdminController->renderFile()
#1
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(317):
AdminController->renderPartial()
#2
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/questions.php(2084):
questions->_renderWrappedTemplate()
#3
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/questions.php(680):
questions->_renderWrappedTemplate()
#4 unknown(0): questions->subquestions()
#5
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/actions/CAction.php(109):
ReflectionMethod->invokeArgs()
#6
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(101):
questions->runWithParamsInternal()
#7
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(308):
questions->runWithParams()
#8
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(286):
AdminController->runAction()
#9
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(265):
AdminController->runActionWithFilters()
#10
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(177):
AdminController->run()
#11
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(282):
AdminController->run()
#12
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(141):
LSYii_Application->runController()
#13
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/base/CApplication.php(185):
LSYii_Application->processRequest()
#14 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/index.php(214):
LSYii_Application->run()
REQUEST_URI=/index.php/admin/questions/sa/subquestions/surveyid/79775/gid/2826/qid/54424