PHP notice

Undefined index: fieldarray

C:\limesurvey_test\application\helpers\SurveyRuntimeHelper.php(639)

627             $qnumber = 0;
628 
629             if ($surveyMode != 'survey')
630             {
631                 $onlyThisGID = $stepInfo['gid'];
632                 if ($onlyThisGID != $gid)
633                 {
634                     continue;
635                 }
636             }
637 
638             // TMSW - could iterate through LEM::currentQset instead
639             foreach ($_SESSION[$LEMsessid]['fieldarray'] as $key => $ia)
640             {
641                 ++$qnumber;
642                 $ia[9] = $qnumber; // incremental question count;
643 
644                 if ((isset($ia[10]) && $ia[10] == $gid) || (!isset($ia[10]) && $ia[5] == $gid))
645                 {
646                     if ($surveyMode == 'question' && $ia[0] != $stepInfo['qid'])
647                     {
648                         continue;
649                     }
650                     $qidattributes = getQuestionAttributeValues($ia[0], $ia[4]);
651                     if ($ia[4] != '*' && ($qidattributes === false || !isset($qidattributes['hidden']) || $qidattributes['hidden'] == 1))

Stack Trace

#0
+
 C:\limesurvey_test\application\controllers\survey\index.php(662): SurveyRuntimeHelper->run("295915", array("surveyid" => "295915", "thissurvey" => array("surveyls_survey_id" => "295915", "surveyls_language" => "en", "surveyls_title" => "Test 4", "surveyls_description" => "", ...), "thisstep" => "0", "tokensexist" => 0, ...))
657         //Send local variables to the appropriate survey type
658         unset($redata);
659         $redata = compact(array_keys(get_defined_vars()));
660         Yii::import('application.helpers.SurveyRuntimeHelper');
661         $tmp = new SurveyRuntimeHelper();
662         $tmp->run($surveyid,$redata);
663 
664         if (isset($_POST['saveall']) || isset($flashmessage))
665         {
666             echo "<script type='text/javascript'> $(document).ready( function() { alert('".$clang->gT("Your responses were successfully saved.","js")."');}) </script>";
667         }
#1
+
 C:\limesurvey_test\application\controllers\survey\index.php(18): index->action()
13 
14 class index extends CAction {
15 
16     public function run()
17     {
18         $this->action();
19     }
20 
21     function action()
22     {
23         global $surveyid;
#9
+
 C:\limesurvey_test\index.php(178): CApplication->run()
173  *
174  */
175 require_once BASEPATH . 'yii' . EXT;
176 require_once APPPATH . 'core/LSYii_Application' . EXT;
177 
178 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run();
179 
180 /* End of file index.php */
181 /* Location: ./index.php */
2012-12-05 13:02:12 Microsoft-IIS/7.5 Yii Framework/1.1.10