PHP notice

Undefined property: TemplateConfiguration::$options

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/models/TemplateConfiguration.php(1065)

1053      * @param string $name the name of the attribute
1054      * @return mixed
1055      */
1056     public function __get($name)
1057     {
1058         $aAttributesThatCanBeInherited = array('files_css', 'files_js', 'options', 'cssframework_name', 'cssframework_css', 'cssframework_js', 'packages_to_load');
1059 
1060         if (in_array($name, $aAttributesThatCanBeInherited) && $this->bUseMagicInherit) {
1061             // Full inheritance of the whole field
1062             $sAttribute = parent::__get($name);
1063             if ($sAttribute === 'inherit') {
1064                 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.)
1065                 $sAttribute = $this->getParentConfiguration()->$name;
1066             }
1067         } else {
1068             $sAttribute = parent::__get($name);
1069         }
1070 
1071         return $sAttribute;
1072     }
1073 
1074     /**
1075      * @return string
1076      */
1077     public function getTemplateAndMotherNames()

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/models/TemplateConfiguration.php(1065): TemplateConfiguration->__get("options")
1060         if (in_array($name, $aAttributesThatCanBeInherited) && $this->bUseMagicInherit) {
1061             // Full inheritance of the whole field
1062             $sAttribute = parent::__get($name);
1063             if ($sAttribute === 'inherit') {
1064                 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.)
1065                 $sAttribute = $this->getParentConfiguration()->$name;
1066             }
1067         } else {
1068             $sAttribute = parent::__get($name);
1069         }
1070 
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/models/TemplateConfiguration.php(882): TemplateConfiguration->__get("options")
877     }
878 
879     protected function setOptions()
880     {
881         $this->oOptions = array();
882         if (!empty($this->options)) {
883             $this->oOptions = json_decode($this->options);
884         }
885 
886         $this->setOptionInheritance();
887     }
#2
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/models/TemplateConfiguration.php(847): TemplateConfiguration->setOptions()
842         $this->apiVersion       = (!empty($this->template->api_version)) ? $this->template->api_version : null; // Mandtory setting in config XML
843         $this->viewPath         = $this->path.$this->getTemplateForPath($this, 'view_folder')->template->view_folder.DIRECTORY_SEPARATOR;
844         $this->filesPath        = $this->path.$this->getTemplateForPath($this, 'files_folder')->template->files_folder.DIRECTORY_SEPARATOR;
845         $this->generalFilesPath = Yii::app()->getConfig("userthemerootdir").DIRECTORY_SEPARATOR.'generalfiles'.DIRECTORY_SEPARATOR;
846         // Options are optional
847         $this->setOptions();
848 
849         // Not mandatory (use package dependances)
850         $this->setCssFramework();
851         $this->packages = $this->getDependsPackages($this);
852         if (!empty($this->packages_to_load)) {
2018-06-08 00:43:12 Apache/2.2.22 (Debian) Yii Framework/1.1.19