PHP notice

Undefined offset: 12997

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/admin/import_helper.php(4192)

4180     {
4181 
4182         foreach ($xml->survey_url_parameters->rows->row as $row)
4183         {
4184             $insertdata=array();
4185             foreach ($row as $key=>$value)
4186             {
4187                 $insertdata[(string)$key]=(string)$value;
4188             }
4189             $insertdata['sid']=$iNewSID; // remap the survey id
4190             if (isset($insertdata['targetsqid']) && $insertdata['targetsqid']!='')
4191             {
4192                 $insertdata['targetsqid'] =$aSQIDReplacements[(int)$insertdata['targetsqid']]; // remap the qid
4193             }
4194             if (isset($insertdata['targetqid']) && $insertdata['targetqid']!='')
4195             {
4196                 $insertdata['targetqid'] =$aQIDReplacements[(int)$insertdata['targetqid']]; // remap the qid
4197             }
4198             unset($insertdata['id']);
4199             $result=SurveyURLParameter::model()->insertRecord($insertdata) or safeDie($clang->gT("Error").": Failed to insert data[14]<br />");
4200             $results['survey_url_parameters']++;
4201         }
4202     }
4203 
4204     // Set survey rights

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/admin/import_helper.php(3425): XMLImportSurvey("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/tmp/survey_9...", null, null, null, ...)
3420         foreach ($aFiles as $aFile)
3421         {
3422             if (pathinfo($aFile['filename'], PATHINFO_EXTENSION) == 'lss')
3423             {
3424                 //Import the LSS file
3425                 $aImportResults = XMLImportSurvey(Yii::app()->getConfig('tempdir') . DIRECTORY_SEPARATOR . $aFile['filename'], null, null, null, true, false);
3426                 // Activate the survey
3427                 Yii::app()->loadHelper("admin/activate");
3428                 $activateoutput = activateSurvey($aImportResults['newsid']);
3429                 unlink(Yii::app()->getConfig('tempdir') . DIRECTORY_SEPARATOR . $aFile['filename']);
3430                 break;
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/surveyadmin.php(920): importSurveyFile("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/tmp/huasacgd...", true)
915             // Now, we have the survey : start importing
916             Yii::app()->loadHelper('admin/import');
917 
918             if ($action == 'importsurvey' && !$aData['bFailed'])
919             {
920                 $aImportResults=importSurveyFile($sFullFilepath,(isset($_POST['translinksfields'])));
921                 if (is_null($aImportResults) || isset($aImportResults['error']))
922                 {
923                     $aData['sErrorMessage']=$aImportResults['error'];
924                     $aData['bFailed'] = true;
925                 }
#4
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("sa" => "copy"))
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
2014-09-30 11:44:26 Apache/2.2.22 (Debian) Yii Framework/1.1.15