PHP notice

Undefined variable: qanda

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/SurveyRuntimeHelper.php(1283)

1271             }
1272 
1273             $showgroupdesc_ = $showgroupinfo_ == 'B' /* both */ || $showgroupinfo_ == 'D'; /* (group-) description */
1274 
1275             if (!$previewquestion && trim($redata['groupdescription'])!="" && $showgroupdesc_)
1276             {
1277                 echo templatereplace(file_get_contents($sTemplateViewPath."groupdescription.pstpl"), array(), $redata);
1278             }
1279             echo "\n";
1280 
1281             echo "\n\n<!-- PRESENT THE QUESTIONS (in SurveyRunTime )  -->\n";
1282 
1283             foreach ($qanda as $qa) // one entry per QID
1284             {
1285                 // Test if finalgroup is in this qid (for all in one survey, else we do only qanda for needed question (in one by one or group by goup)
1286                 if ($gid != $qa['finalgroup']) {
1287                     continue;
1288                 }
1289                 $qid = $qa[4];
1290                 $qinfo = LimeExpressionManager::GetQuestionStatus($qid);
1291                 $lastgrouparray = explode("X", $qa[7]);
1292                 $lastgroup = $lastgrouparray[0] . "X" . $lastgrouparray[1]; // id of the last group, derived from question id
1293                 $lastanswer = $qa[7];
1294 
1295 

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/survey/index.php(611): SurveyRuntimeHelper->run("44899", array("surveyid" => "44899", "thissurvey" => array("template" => "default", "language" => "fr", "sid" => "44899", "owner_id" => "1", ...), "thisstep" => null, "tokensexist" => 0, ...))
606         //Send local variables to the appropriate survey type
607         unset($redata);
608         $redata = compact(array_keys(get_defined_vars()));
609         Yii::import('application.helpers.SurveyRuntimeHelper');
610         $tmp = new SurveyRuntimeHelper();
611         $tmp->run($surveyid,$redata);
612 
613         if (App()->request->getPost('saveall') || isset($flashmessage))
614         {
615             App()->clientScript->registerScript("saveflashmessage","alert('".gT("Your responses were successfully saved.","js")."');",CClientScript::POS_READY);
616         }
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/survey/index.php(70): index->action()
65             App()->getClientScript()->reset();
66             return $buffer;
67         });
68 
69         ob_implicit_flush(false);
70         $this->action();
71         ob_flush();
72     }
73 
74     function action()
75     {
#9
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/index.php(214): CApplication->run()
209         die (sprintf('%s should be writable by the webserver (766 or 776).', $sDefaultRuntimePath));
210     }
211 }
212 
213 Yii::$enableIncludePath = false;
214 Yii::createApplication('LSYii_Application', $config)->run();
215 
216 /* End of file index.php */
217 /* Location: ./index.php */
2016-10-05 09:28:50 Apache/2.2.22 (Debian) Yii Framework/1.1.17