PHP notice

Undefined property: TemplateConfiguration::$options

/var/www/limesurvey/application/models/TemplateConfiguration.php(1433)

1421             'cssframework_name',
1422             'cssframework_css',
1423             'cssframework_js',
1424             'packages_to_load'
1425         );
1426 
1427         if (in_array($name, $aAttributesThatCanBeInherited) && $this->bUseMagicInherit) {
1428             // Full inheritance of the whole field
1429             $sAttribute = parent::__get($name);
1430             if ($sAttribute === 'inherit') {
1431                 // NOTE: this is object recursive (if parent configuration field is set to inherit,
1432                 // then it will lead to this method again.)
1433                 $sAttribute = $this->getParentConfiguration()->$name;
1434             }
1435         } else {
1436             $sAttribute = parent::__get($name);
1437         }
1438 
1439         return $sAttribute;
1440     }
1441 
1442     /**
1443      * @todo document me
1444      * @return string
1445      */

Stack Trace

#0
+
 /var/www/limesurvey/application/models/TemplateConfiguration.php(1433): TemplateConfiguration->__get("options")
1428             // Full inheritance of the whole field
1429             $sAttribute = parent::__get($name);
1430             if ($sAttribute === 'inherit') {
1431                 // NOTE: this is object recursive (if parent configuration field is set to inherit,
1432                 // then it will lead to this method again.)
1433                 $sAttribute = $this->getParentConfiguration()->$name;
1434             }
1435         } else {
1436             $sAttribute = parent::__get($name);
1437         }
1438 
#1
+
 /var/www/limesurvey/application/models/TemplateConfiguration.php(1212): TemplateConfiguration->__get("options")
1207      * @todo document me
1208      */
1209     protected function setOptions()
1210     {
1211         $this->oOptions = array();
1212         if (!empty($this->options)) {
1213             $this->oOptions = json_decode($this->options);
1214         }
1215         // unset "comment" property which is auto generated from HTML comments in xml file
1216         unset($this->oOptions->comment);
1217 
#2
+
 /var/www/limesurvey/application/models/TemplateConfiguration.php(1171): TemplateConfiguration->setOptions()
1166         $this->filesPath        = $this->path.$this->getTemplateForPath($this, 'files_folder')
1167                 ->template->files_folder.DIRECTORY_SEPARATOR;
1168         $this->generalFilesPath = App()->getConfig("userthemerootdir")
1169             .DIRECTORY_SEPARATOR.'generalfiles'.DIRECTORY_SEPARATOR;
1170         // Options are optional
1171         $this->setOptions();
1172 
1173         // Not mandatory (use package dependances)
1174         $this->setCssFramework();
1175         $this->packages = $this->getDependsPackages($this);
1176         if (!empty($this->packages_to_load)) {
2024-03-29 15:25:02 Apache/2.4.25 (Debian) Yii Framework/1.1.22-dev