PHP notice

Undefined property: TemplateConfiguration::$options

/mnt/data/shnoulle/nginx/www/develop/application/models/TemplateConfiguration.php(1280)

1268      * @param string $name the name of the attribute
1269      * @return mixed
1270      */
1271     public function __get($name)
1272     {
1273         $aAttributesThatCanBeInherited = array('files_css', 'files_js', 'options', 'cssframework_name', 'cssframework_css', 'cssframework_js', 'packages_to_load');
1274 
1275         if (in_array($name, $aAttributesThatCanBeInherited) && $this->bUseMagicInherit) {
1276             // Full inheritance of the whole field
1277             $sAttribute = parent::__get($name);
1278             if ($sAttribute === 'inherit') {
1279                 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.)
1280                 $sAttribute = $this->getParentConfiguration()->$name;
1281             }
1282         } else {
1283             $sAttribute = parent::__get($name);
1284         }
1285 
1286         return $sAttribute;
1287     }
1288 
1289     /**
1290      * @return string
1291      */
1292     public function getTemplateAndMotherNames()

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/develop/application/models/TemplateConfiguration.php(1280): TemplateConfiguration->__get("options")
1275         if (in_array($name, $aAttributesThatCanBeInherited) && $this->bUseMagicInherit) {
1276             // Full inheritance of the whole field
1277             $sAttribute = parent::__get($name);
1278             if ($sAttribute === 'inherit') {
1279                 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.)
1280                 $sAttribute = $this->getParentConfiguration()->$name;
1281             }
1282         } else {
1283             $sAttribute = parent::__get($name);
1284         }
1285 
#1
+
 /mnt/data/shnoulle/nginx/www/develop/application/models/TemplateConfiguration.php(1094): TemplateConfiguration->__get("options")
1089     }
1090 
1091     protected function setOptions()
1092     {
1093         $this->oOptions = array();
1094         if (!empty($this->options)) {
1095             $this->oOptions = json_decode($this->options);
1096         }
1097         unset($this->oOptions->comment); // unset "comment" property which is auto generated from HTML comments in xml file
1098 
1099         $this->setOptionInheritance();
#2
+
 /mnt/data/shnoulle/nginx/www/develop/application/models/TemplateConfiguration.php(1059): TemplateConfiguration->setOptions()
1054         $this->apiVersion       = (!empty($this->template->api_version)) ? $this->template->api_version : null; // Mandtory setting in config XML
1055         $this->viewPath         = $this->path.$this->getTemplateForPath($this, 'view_folder')->template->view_folder.DIRECTORY_SEPARATOR;
1056         $this->filesPath        = $this->path.$this->getTemplateForPath($this, 'files_folder')->template->files_folder.DIRECTORY_SEPARATOR;
1057         $this->generalFilesPath = Yii::app()->getConfig("userthemerootdir").DIRECTORY_SEPARATOR.'generalfiles'.DIRECTORY_SEPARATOR;
1058         // Options are optional
1059         $this->setOptions();
1060 
1061         // Not mandatory (use package dependances)
1062         $this->setCssFramework();
1063         $this->packages = $this->getDependsPackages($this);
1064         if (!empty($this->packages_to_load)) {
2019-07-20 15:58:45 nginx/1.14.2 Yii Framework/1.1.21