PHP notice

Undefined index: description

/media/shnoulle/data/webdev/ls5/application/helpers/admin/import_helper.php(122)

110         }
111     }
112 
113     if (isset($xml->group_l10ns->rows->row)) {
114         foreach ($xml->group_l10ns->rows->row as $row) {
115             $insertdata = array();
116             foreach ($row as $key => $value) {
117                 $insertdata[(string) $key] = (string) $value;
118             }
119             unset($insertdata['id']);
120             // now translate any links
121             $insertdata['group_name'] = translateLinks('survey', $iOldSID, $iNewSID, $insertdata['group_name']);
122             $insertdata['description'] = translateLinks('survey', $iOldSID, $iNewSID, $insertdata['description']);
123             if (isset($aGIDReplacements[$insertdata['gid']])) {
124                 $insertdata['gid'] = $aGIDReplacements[$insertdata['gid']];
125             } else {
126                 continue; //Skip invalid group ID
127             }
128             $oQuestionGroupL10n = new QuestionGroupL10n();
129             $oQuestionGroupL10n->setAttributes($insertdata, false);
130             $oQuestionGroupL10n->save();
131         }
132     }
133 
134     // Import questions table ===================================================================================

Stack Trace

#0
+
 /media/shnoulle/data/webdev/ls5/application/controllers/QuestionGroupsAdministrationController.php(453): XMLImportGroup("/media/shnoulle/data/webdev/ls5/tmp/aq27cxee9de89npmsedi", 954741, false)
448             // IF WE GOT THIS FAR, THEN THE FILE HAS BEEN UPLOADED SUCCESFULLY
449             if (strtolower($sExtension) == 'lsg') {
450                 $aImportResults = XMLImportGroup(
451                     $sFullFilepath,
452                     $iSurveyID,
453                     (App()->request->getPost('translinksfields') == '1')
454                 );
455             } else {
456                 App()->user->setFlash('error', gT("Unknown file extension"));
457                 $this->redirect(array('questionGroupsAdministration/importview/surveyid/' . $surveyid));
458             }
#5
+
 /media/shnoulle/data/webdev/ls5/application/controllers/LSBaseController.php(145): CController->run("import")
140                     $this->redirect(array('/admin/authentication/sa/login'));
141                 }
142             }
143         }
144 
145         parent::run($action);
146     }
147 
148     /**
149      * Load and set session vars
150      *
#9
+
 /media/shnoulle/data/webdev/ls5/index.php(161): CApplication->run()
156 require_once APPPATH . 'core/LSYii_Application' . EXT;
157 
158 $config = require_once(APPPATH . 'config/internal' . EXT);
159 
160 Yii::$enableIncludePath = false;
161 Yii::createApplication('LSYii_Application', $config)->run();
162 
163 /* End of file index.php */
164 /* Location: ./index.php */
2023-12-15 08:32:34 nginx/1.22.1 Yii Framework/1.1.28