PHP warning

Undefined property: TemplateConfiguration::$options

/media/shnoulle/data/www/master/application/models/TemplateConfiguration.php(1481)

1469             // Full inheritance of the whole field
1470             $sAttribute = parent::__get($name);
1471             if ($sAttribute === 'inherit') {
1472                 // NOTE: this is object recursive (if parent configuration field is set to inherit,
1473                 // then it will lead to this method again.)
1474                 $oParentConfiguration = $this->getParentConfiguration();
1475                 /**
1476                  * We check if $oParentConfiguration is the same as $this because if it is, $oParentConfiguration->$name will
1477                  * try to directly access the property instead of calling the magic method, and it will fail for dynamic properties.
1478                  * @todo: Review the behavior of getParentConfiguration(). Returning the same object seems to be a bug.
1479                  */
1480                 if ($oParentConfiguration !== $this) {
1481                     $sAttribute = $oParentConfiguration->$name;
1482                 } else {
1483                     $sAttribute = $oParentConfiguration->getAttribute($name);
1484                 }
1485             }
1486         } else {
1487             $sAttribute = parent::__get($name);
1488         }
1489 
1490         return $sAttribute;
1491     }
1492 
1493     /**

Stack Trace

#0
+
 /media/shnoulle/data/www/master/application/models/TemplateConfiguration.php(1481): TemplateConfiguration->__get("options")
1476                  * We check if $oParentConfiguration is the same as $this because if it is, $oParentConfiguration->$name will
1477                  * try to directly access the property instead of calling the magic method, and it will fail for dynamic properties.
1478                  * @todo: Review the behavior of getParentConfiguration(). Returning the same object seems to be a bug.
1479                  */
1480                 if ($oParentConfiguration !== $this) {
1481                     $sAttribute = $oParentConfiguration->$name;
1482                 } else {
1483                     $sAttribute = $oParentConfiguration->getAttribute($name);
1484                 }
1485             }
1486         } else {
#1
+
 /media/shnoulle/data/www/master/application/models/TemplateConfiguration.php(1255): TemplateConfiguration->__get("options")
1250      * @return void
1251      */
1252     public function setOptions()
1253     {
1254         $this->oOptions = new stdClass();
1255         if (!empty($this->options)) {
1256             $this->oOptions = json_decode($this->options);
1257         }
1258         // unset "comment" property which is auto generated from HTML comments in xml file
1259         unset($this->oOptions->comment);
1260 
#2
+
 /media/shnoulle/data/www/master/application/models/TemplateConfiguration.php(1209): TemplateConfiguration->setOptions()
1204         $this->apiVersion = (!empty($this->template->api_version)) ? $this->template->api_version : null;
1205         $this->viewPath = $this->path . $this->getTemplateConfigurationForAttribute($this, 'view_folder')->template->view_folder . DIRECTORY_SEPARATOR;
1206         $this->filesPath = $this->path . $this->getTemplateConfigurationForAttribute($this, 'files_folder')->template->files_folder . DIRECTORY_SEPARATOR;
1207         $this->generalFilesPath = App()->getConfig("userthemerootdir") . DIRECTORY_SEPARATOR . 'generalfiles' . DIRECTORY_SEPARATOR;
1208         // Options are optional
1209         $this->setOptions();
1210 
1211         // Not mandatory (use package dependances)
1212         $this->setCssFramework();
1213         $this->packages = $this->getDependsPackages($this);
1214         if (!empty($this->packages_to_load)) {
2026-05-12 08:15:34 nginx/1.26.3 Yii Framework/1.1.32