Error

Call to a member function getAttributes() on null

/mnt/data/shnoulle/nginx/www/3LTS/application/controllers/admin/surveyadmin.php(1734)

1722         Yii::app()->loadHelper("admin/htmleditor");
1723         $aData = $aTabTitles = $aTabContents = array();
1724 
1725         $aData['scripts'] = PrepareEditorScript(false, $this->getController());
1726         $aLanguageData = [];
1727         if ($survey->sid) {
1728             foreach ($survey->allLanguages as $i => $sLang) {
1729                 $aLanguageData = $this->_getGeneralTemplateData($survey->sid);
1730                 // this one is created to get the right default texts fo each language
1731                 Yii::app()->loadHelper('database');
1732                 Yii::app()->loadHelper('surveytranslator');
1733 
1734                 $aSurveyLanguageSettings = SurveyLanguageSetting::model()->findByPk(array('surveyls_survey_id' => $survey->sid, 'surveyls_language' => $sLang))->getAttributes();
1735 
1736                 $aTabTitles[$sLang] = getLanguageNameFromCode($aSurveyLanguageSettings['surveyls_language'], false);
1737 
1738                 if ($aSurveyLanguageSettings['surveyls_language'] == $survey->language) {
1739                     $aTabTitles[$sLang] .= ' ('.gT("Base language").')';
1740                 }
1741 
1742                 $aLanguageData['aSurveyLanguageSettings'] = $aSurveyLanguageSettings;
1743                 $aLanguageData['action'] = "surveygeneralsettings";
1744                 $aLanguageData['i'] = $i;
1745                 $aLanguageData['dateformatdetails'] = getDateFormatData(Yii::app()->session['dateformat']);
1746                 $aLanguageData['oSurvey'] = $survey;

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/controllers/admin/surveyadmin.php(1049): SurveyAdmin->_getTextEditData(Survey)
1044         }
1045 
1046         $templateData = is_array($menuEntry->data) ? $menuEntry->data : [];
1047 
1048         if (!empty($menuEntry->getdatamethod)) {
1049             $templateData = array_merge($templateData, call_user_func_array(array($this, $menuEntry->getdatamethod), array('survey'=>$survey)));
1050         }
1051 
1052         $templateData = array_merge($this->_getGeneralTemplateData($iSurveyID), $templateData);
1053         $this->_registerScriptFiles();
1054 
#3
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("r" => "admin/survey/sa/rendersidemenulink", "subaction" => "surveytexts", "surveyid" => "777682", 1613377160221 => "", ...))
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
#7
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/controllers/AdminController.php(165): CController->run("survey")
160                     $this->redirect(array('/admin/authentication/sa/login'));
161                 }
162             }
163         }
164 
165         return parent::run($action);
166     }
167 
168     /**
169      * Routes all the actions to their respective places
170      *
2021-02-15 08:30:53 nginx/1.18.0 Yii Framework/1.1.22-dev