PHP notice

Undefined offset: 8

/home/limesurvey/application/controllers/admin/database.php(267)

255             $aInsertQID =array();
256             for ($iScaleID=0;$iScaleID<$iScaleCount;$iScaleID++)
257             {
258                 foreach ($aSurveyLanguages as $sLanguage)
259                 {
260                     $iPosition=0;
261                     foreach ($aRows[$iScaleID][$sLanguage] as $subquestionkey=>$subquestionvalue)
262                     {
263                         if (substr($subquestionkey,0,3)!='new')
264                         {
265                             $oSubQuestion=Question::model()->find("qid=:qid AND language=:language",array(":qid"=>$subquestionkey,':language'=>$sLanguage));
266                             $oSubQuestion->question_order=$iPosition+1;
267                             $oSubQuestion->title=$aCodes[$iScaleID][$iPosition];
268                             $oSubQuestion->question=$subquestionvalue;
269                             $oSubQuestion->scale_id=$iScaleID;
270                         }
271                         else
272                         {
273                             if (!isset($aInsertQID[$iScaleID][$iPosition]))
274                             {
275                                 $oSubQuestion=new Question;
276                                 $oSubQuestion->sid=$iSurveyID;
277                                 $oSubQuestion->gid=$iQuestionGroupID;
278                                 $oSubQuestion->question_order=$iPosition+1;
279                                 $oSubQuestion->title=$aCodes[$iScaleID][$iPosition];

Stack Trace

#2
+
 /home/limesurvey/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(database, ReflectionMethod, array())
094             $oMethod = new ReflectionMethod($this, $sDefault);
095         }
096 
097         // We're all good to go, let's execute it
098         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
099         return parent::runWithParamsInternal($this, $oMethod, $params);
100     }
101 
102     /**
103     * Some functions have different parameters, which are just an alias of the
104     * usual parameters we're getting in the url. This function just populates
#6
+
 /home/limesurvey/application/controllers/AdminController.php(169): CController->run("database")
164                     $this->redirect(array('/admin/authentication/sa/login'));
165                 }
166                 
167             }
168 
169             return parent::run($action);
170     }
171 
172     /**
173     * Routes all the actions to their respective places
174     *
#10
+
 /home/limesurvey/index.php(190): CApplication->run()
185         die (sprintf('%s should be writable by the webserver (755 or 775).', $runtimePath));
186     }
187 }
188 
189 
190 Yii::createApplication('LSYii_Application', $config)->run();
191 
192 /* End of file index.php */
193 /* Location: ./index.php */
2014-01-31 12:21:44 Apache/2.2.14 Yii Framework/1.1.14