PHP error

Creation of dynamic property SurveysGroupsettings::$othersettings is deprecated

/media/shnoulle/data/webdev/master/application/models/SurveysGroupsettings.php(590)

578                 'answer_code_prefix' => Yii::app()->getConfig('answer_code_prefix', '')
579             ];
580         }
581         return json_decode($this->othersettings, true) ?? [];
582     }
583 
584     /**
585      * Set other settings as array
586      * @param array $settings
587      */
588     public function setOtherSettings($settings)
589     {
590         $this->othersettings = json_encode($settings);
591     }
592 
593     /**
594      * Get a value from othersettings
595      *
596      * @param string $key The setting key to retrieve
597      * @param mixed $default Default value if setting doesn't exist
598      * @return mixed The setting value or default
599      */
600     public function getOtherSetting($key, $default = '')
601     {
602         $settings = $this->getOtherSettings();

Stack Trace

#2
+
 /media/shnoulle/data/webdev/master/application/models/SurveysGroupsettings.php(517): CActiveRecord->__set("othersettings", "")
512         $this->usecaptcha = 'N';
513         $this->format = 'G';
514         $this->admin = substr((string) App()->getConfig('siteadminname'), 0, 50);
515         $this->adminemail = substr((string) App()->getConfig('siteadminemail'), 0, 254);
516         $this->template = Template::templateNameFilter(App()->getConfig('defaulttheme'));
517         $this->othersettings = '';
518     }
519 
520     /**
521      * Returns true if the attribute should be inherited according to it's value.
522      * @param string $attribute
#3
+
 /media/shnoulle/data/webdev/master/application/helpers/update/updatedb_helper.php(1521): SurveysGroupsettings->setToDefault()
1516     ));
1517     addPrimaryKey('surveys_groupsettings', array('gsid'));
1518 
1519     // insert settings for global level
1520     $settings1 = new SurveysGroupsettings();
1521     $settings1->setToDefault();
1522     $settings1->gsid = 0;
1523     // get global settings from db
1524     $globalSetting1 = $oDB->createCommand()->select('stg_value')->from('{{settings_global}}')->where("stg_name=:stg_name", array('stg_name' => 'showqnumcode'))->queryRow();
1525     $globalSetting2 = $oDB->createCommand()->select('stg_value')->from('{{settings_global}}')->where("stg_name=:stg_name", array('stg_name' => 'showgroupinfo'))->queryRow();
1526     $globalSetting3 = $oDB->createCommand()->select('stg_value')->from('{{settings_global}}')->where("stg_name=:stg_name", array('stg_name' => 'shownoanswer'))->queryRow();
#4
+
 /media/shnoulle/data/webdev/master/application/helpers/update/updates/Update_404.php(9): createSurveysGroupSettingsTable(DbConnection)
04 
05 class Update_404 extends DatabaseUpdateBase
06 {
07     public function up()
08     {
09             createSurveysGroupSettingsTable($this->db);
10     }
11 }
2025-06-25 14:05:44 nginx/1.22.1 Yii Framework/1.1.30