PHP warning

Attempt to read property "row" on null

/media/shnoulle/data/webdev/master/application/helpers/admin/import_helper.php(2222)

2210                 $results['importwarnings'][] = gT("The desired survey ID was already in use, therefore a random one was assigned.");
2211             }
2212         } else {
2213             $results['error'] = CHtml::errorSummary($newSurvey, gT("Unable to import survey."));
2214             return $results;
2215         }
2216     }
2217 
2218     // Single flag to indicate if the attachements format is wrong, to avoid showing the warning multiple times
2219     $wrongAttachmentsFormat = false;
2220 
2221     // Import survey languagesettings table ===================================================================================
2222     foreach ($xml->surveys_languagesettings->rows->row as $row) {
2223         $insertdata = array();
2224         foreach ($row as $key => $value) {
2225             $insertdata[(string) $key] = (string) $value;
2226         }
2227 
2228         if (!in_array($insertdata['surveyls_language'], $aLanguagesSupported)) {
2229             continue;
2230         }
2231 
2232         // Assign new survey ID
2233         $insertdata['surveyls_survey_id'] = $iNewSID;
2234 

Stack Trace

#0
+
 /media/shnoulle/data/webdev/master/application/helpers/admin/import_helper.php(1272): XMLImportSurvey("/media/shnoulle/data/webdev/master/tmp/xu4bqbnhx9mmsdmmpvzqi79ze...", "<?xml version="1.0" encoding="UTF-8"?> <document> <LimeSurve...", null, null, ...)
1267     } else {
1268         $sExtension = "";
1269     }
1270     switch ($sExtension) {
1271         case 'lss':
1272             $aImportResults = XMLImportSurvey($sFullFilePath, null, $sNewSurveyName, $DestSurveyID, $bTranslateLinksFields);
1273             if (!empty($aImportResults['newsid'])) {
1274                 $SurveyIntegrity = new LimeSurvey\Models\Services\SurveyIntegrity(Survey::model()->findByPk($aImportResults['newsid']));
1275                 $SurveyIntegrity->fixSurveyIntegrity();
1276                 finalizeSurveyImportFile($aImportResults['newsid'], $baselang);
1277             }
#1
+
 /media/shnoulle/data/webdev/master/application/controllers/SurveyAdministrationController.php(2264): importSurveyFile("/media/shnoulle/data/webdev/master/tmp/xu4bqbnhx9mmsdmmpvzqi79ze...", true)
2259 
2260             // Now, we have the survey : start importing
2261             Yii::app()->loadHelper('admin/import');
2262 
2263             if ($action == 'importsurvey' && !$aData['bFailed']) {
2264                 $aImportResults = importSurveyFile($sFullFilepath, (Yii::app()->request->getPost('translinksfields') == '1'));
2265                 if (is_null($aImportResults)) {
2266                     $aImportResults = array(
2267                         'error' => gT("Unknown error while reading the file, no survey created.")
2268                     );
2269                 }
#10
+
 /media/shnoulle/data/webdev/master/application/controllers/LSBaseController.php(145): CController->run("copy")
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      *
2025-06-26 14:53:28 nginx/1.22.1 Yii Framework/1.1.30