PHP notice

Undefined index: language

/var/www/html/LimeSurvey/application/helpers/admin/import_helper.php(990)

0978 
0979     // Import groups table ===================================================================================
0980 
0981 
0982     if (isset($xml->groups->rows->row)) {
0983 
0984         foreach ($xml->groups->rows->row as $row) {
0985             $insertdata = array();
0986             foreach ($row as $key=>$value) {
0987                 $insertdata[(string) $key] = (string) $value;
0988             }
0989 
0990             if (!in_array($insertdata['language'], $aLanguagesSupported)) {
0991                 continue;
0992             }
0993 
0994             $iOldSID = $insertdata['sid'];
0995             $insertdata['sid'] = $iNewSID;
0996             $oldgid = $insertdata['gid']; unset($insertdata['gid']); // save the old qid
0997             if(strlen($insertdata['group_name']) > 100 ) { // see #14133 since this function didn't have good error system … must fix it silently …
0998                 $results['importwarnings'][] = sprintf(gT("Group “%s“ was set to “%s“"),CHtml::encode($insertdata['group_name']),CHtml::encode(substr($insertdata['group_name'],0,100)));
0999                 $insertdata['group_name'] = substr($insertdata['group_name'],0,100);
1000             }
1001             // now translate any links
1002             if ($bTranslateInsertansTags) {

Stack Trace

#0
+
 /var/www/html/LimeSurvey/application/helpers/admin/import_helper.php(705): XMLImportSurvey("/var/www/html/LimeSurvey/tmp/gwaxvgezd2ubsxct5ipcv3btezkyeg.lss", "<?xml version="1.0" encoding="UTF-8"?> <document> <LimeSurveyDo...", null, null, ...)
700     } else {
701         $sExtension = "";
702     }
703     switch ($sExtension) {
704         case 'lss':
705             $aImportResults = XMLImportSurvey($sFullFilePath, null, $sNewSurveyName, $DestSurveyID, $bTranslateLinksFields);
706             if (!empty($aImportResults['newsid'])) {
707                 TemplateConfiguration::checkAndcreateSurveyConfig($aImportResults['newsid']);
708             }
709             return $aImportResults;
710         case 'txt':
#1
+
 /var/www/html/LimeSurvey/application/controllers/admin/surveyadmin.php(1352): importSurveyFile("/var/www/html/LimeSurvey/tmp/gwaxvgezd2ubsxct5ipcv3btezkyeg.lss", true)
1347 
1348             // Now, we have the survey : start importing
1349             Yii::app()->loadHelper('admin/import');
1350 
1351             if ($action == 'importsurvey' && !$aData['bFailed']) {
1352                 $aImportResults = importSurveyFile($sFullFilepath, (Yii::app()->request->getPost('translinksfields') == '1'));
1353                 if (is_null($aImportResults)) {
1354                     $aImportResults = array(
1355                         'error'=>gT("Unknown error while reading the file, no survey created.")
1356                     );
1357                 }
#4
+
 /var/www/html/LimeSurvey/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("r" => "admin/survey/sa/copy", "sa" => "copy", "sAction" => "importsurvey"))
78             $oMethod = new ReflectionMethod($this, $sDefault);
79         }
80 
81         // We're all good to go, let's execute it
82         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
83         return parent::runWithParamsInternal($this, $oMethod, $params);
84     }
85 
86     /**
87      * Some functions have different parameters, which are just an alias of the
88      * usual parameters we're getting in the url. This function just populates
2019-09-24 18:25:31 nginx/1.16.1 Yii Framework/1.1.21