PHP notice

Undefined index: description

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

973             {
974                 $insertdata[(string)$key]=(string)$value;
975             }
976             if (!in_array($insertdata['language'],$aLanguagesSupported)) continue;
977             $iOldSID=$insertdata['sid'];
978             $insertdata['sid']=$iNewSID;
979             $oldgid=$insertdata['gid']; unset($insertdata['gid']); // save the old qid
980 
981             // now translate any links
982             if ($bTranslateInsertansTags)
983             {
984                 $insertdata['group_name']=translateLinks('survey', $iOldSID, $iNewSID, $insertdata['group_name']);
985                 $insertdata['description']=translateLinks('survey', $iOldSID, $iNewSID, $insertdata['description']);
986             }
987             // Insert the new group
988             if (isset($aGIDReplacements[$oldgid]))
989             {
990                 switchMSSQLIdentityInsert('groups',true);
991                 $insertdata['gid']=$aGIDReplacements[$oldgid];
992             }
993             $newgid = QuestionGroup::model()->insertRecords($insertdata) or safeDie(gT("Error").": Failed to insert data [3]<br />");
994             $results['groups']++;
995 
996             if (!isset($aGIDReplacements[$oldgid]))
997             {

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/admin/import_helper.php(711): XMLImportSurvey("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/tmp/jghhyqn6...", null, null, null, ...)
706     {
707         $sExtension = "";
708     }
709     if ($sExtension == 'lss')
710     {
711         return XMLImportSurvey($sFullFilePath, null, $sNewSurveyName, $DestSurveyID, $bTranslateLinksFields);
712     }
713     elseif ($sExtension == 'txt')
714     {
715         return TSVImportSurvey($sFullFilePath);
716     }
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/surveyadmin.php(910): importSurveyFile("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/tmp/jghhyqn6...", true)
905             // Now, we have the survey : start importing
906             Yii::app()->loadHelper('admin/import');
907 
908             if ($action == 'importsurvey' && !$aData['bFailed'])
909             {
910                 $aImportResults=importSurveyFile($sFullFilepath,(isset($_POST['translinksfields'])));
911                 if (is_null($aImportResults) || !empty($aImportResults['error']))
912                 {
913                     $aData['sErrorMessage']=isset($aImportResults['error']) ? $aImportResults['error'] : gT("Unknow error.");
914                     $aData['bFailed'] = true;
915                 }
#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
2015-11-17 08:56:04 Apache/2.2.22 (Debian) Yii Framework/1.1.16