PHP notice

Undefined property: TemplateConfiguration::$options

/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1245)

1233      * @param string $name the name of the attribute
1234      * @return mixed
1235      */
1236     public function __get($name)
1237     {
1238         $aAttributesThatCanBeInherited = array('files_css', 'files_js', 'options', 'cssframework_name', 'cssframework_css', 'cssframework_js', 'packages_to_load');
1239 
1240         if (in_array($name, $aAttributesThatCanBeInherited) && $this->bUseMagicInherit) {
1241             // Full inheritance of the whole field
1242             $sAttribute = parent::__get($name);
1243             if ($sAttribute === 'inherit') {
1244                 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.)
1245                 $sAttribute = $this->getParentConfiguration()->$name;
1246             }
1247         } else {
1248             $sAttribute = parent::__get($name);
1249         }
1250 
1251         return $sAttribute;
1252     }
1253 
1254     /**
1255      * @return string
1256      */
1257     public function getTemplateAndMotherNames()

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1245): TemplateConfiguration->__get("options")
1240         if (in_array($name, $aAttributesThatCanBeInherited) && $this->bUseMagicInherit) {
1241             // Full inheritance of the whole field
1242             $sAttribute = parent::__get($name);
1243             if ($sAttribute === 'inherit') {
1244                 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.)
1245                 $sAttribute = $this->getParentConfiguration()->$name;
1246             }
1247         } else {
1248             $sAttribute = parent::__get($name);
1249         }
1250 
#1
+
 /mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1062): TemplateConfiguration->__get("options")
1057     }
1058 
1059     protected function setOptions()
1060     {
1061         $this->oOptions = array();
1062         if (!empty($this->options)) {
1063             $this->oOptions = json_decode($this->options);
1064         }
1065 
1066         $this->setOptionInheritance();
1067     }
#2
+
 /mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1027): TemplateConfiguration->setOptions()
1022         $this->apiVersion       = (!empty($this->template->api_version)) ? $this->template->api_version : null; // Mandtory setting in config XML
1023         $this->viewPath         = $this->path.$this->getTemplateForPath($this, 'view_folder')->template->view_folder.DIRECTORY_SEPARATOR;
1024         $this->filesPath        = $this->path.$this->getTemplateForPath($this, 'files_folder')->template->files_folder.DIRECTORY_SEPARATOR;
1025         $this->generalFilesPath = Yii::app()->getConfig("userthemerootdir").DIRECTORY_SEPARATOR.'generalfiles'.DIRECTORY_SEPARATOR;
1026         // Options are optional
1027         $this->setOptions();
1028 
1029         // Not mandatory (use package dependances)
1030         $this->setCssFramework();
1031         $this->packages = $this->getDependsPackages($this);
1032         if (!empty($this->packages_to_load)) {
2018-11-13 22:37:26 nginx/1.12.1 Yii Framework/1.1.19