PHP notice

Undefined offset: 2

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/database.php(289)

277                         {
278                             if (!isset($aInsertQID[$iScaleID][$iPosition]))     //new record: first (default) language
279                             {
280                                 $oSubQuestion=new Question;
281                                 $oSubQuestion->sid=$iSurveyID;
282                                 $oSubQuestion->gid=$iQuestionGroupID;
283                                 $oSubQuestion->question_order=$iPosition+1;
284                                 $oSubQuestion->title=$aCodes[$iScaleID][$iPosition];
285                                 $oSubQuestion->question=$subquestionvalue;
286                                 $oSubQuestion->parent_qid=$iQuestionID;
287                                 $oSubQuestion->language=$sLanguage;
288                                 $oSubQuestion->scale_id=$iScaleID;
289                                 $oSubQuestion->relevance=$aRelevance[0][$iPosition];
290                             }
291                             else                                                //new record: additional language
292                             {
293                                 $oSubQuestion=Question::model()->find("qid=:qid AND language=:language",array(":qid"=>$aInsertQID[$iScaleID][$iPosition],':language'=>$sLanguage));
294                                 if(!$oSubQuestion)
295                                     $oSubQuestion=new Question;
296                                 $oSubQuestion->sid=$iSurveyID;
297                                 $oSubQuestion->qid=$aInsertQID[$iScaleID][$iPosition];
298                                 $oSubQuestion->gid=$iQuestionGroupID;
299                                 $oSubQuestion->question_order=$iPosition+1;
300                                 $oSubQuestion->title=$aCodes[$iScaleID][$iPosition];
301                                 $oSubQuestion->question=$subquestionvalue;

Stack Trace

#2
+
 /home/sondages.pro/htdocs/limesurvey_GIT/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/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(164): CController->run("database")
159                     $this->redirect(array('/admin/authentication/sa/login'));
160                 }
161 
162             }
163 
164             return parent::run($action);
165     }
166 
167     /**
168     * Routes all the actions to their respective places
169     *
#10
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/index.php(211): CApplication->run()
206         die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath));
207     }
208 }
209 
210 Yii::$enableIncludePath = false;
211 Yii::createApplication('LSYii_Application', $config)->run();
212 
213 /* End of file index.php */
214 /* Location: ./index.php */
2015-07-17 18:41:29 Apache/2.2.22 (Debian) Yii Framework/1.1.15