Recoverable error

Argument 1 passed to templates::_initcssfiles() must be an instance of stdClass, instance of TemplateConfiguration given, called in /var/www/limesurvey/www/application/controllers/admin/templates.php on line 961 and defined

/var/www/limesurvey/www/application/controllers/admin/templates.php(885)

873 
874         return $files;
875     }
876 
877     /**
878     * Function that initialises cssfile data.
879     *
880     * @access protected
881     * @param StdClass $oEditedTemplate
882     * @param boolean $editable
883     * @return array
884     */
885     protected function _initcssfiles(StdClass $oEditedTemplate, $editable=false)
886     {
887         // If editable CSS files are required, and if they are defined in the template config file
888         if($editable && is_object($oEditedTemplate->config->files_editable->css))
889         {
890             $aCssFiles = (array) $oEditedTemplate->config->files_editable->css->filename;
891         }
892         // Else we get all the CSS files
893         else
894         {
895             $aCssFiles = (array) $oEditedTemplate->config->files->css->filename;
896         }
897 

Stack Trace

#0
+
 /var/www/limesurvey/www/application/controllers/admin/templates.php(961): templates->_initcssfiles(TemplateConfiguration)
956         //App()->getClientScript()->reset();
957         Yii::app()->loadHelper('surveytranslator');
958         Yii::app()->loadHelper('admin/template');
959         $files = $this->_initfiles($templatename);
960 
961         $cssfiles = $this->_initcssfiles($oEditedTemplate);
962 
963 
964         // Standard Support Files
965         // These files may be edited or saved
966         $supportfiles[] = array('name' => 'print_img_radio.png');
#1
+
 /var/www/limesurvey/www/application/controllers/admin/templates.php(387): templates->_initialise("default", "welcome", "startpage.pstpl", true, ...)
382         // This can happen if the global default template is deleted
383         if (!Template::checkIfTemplateExists($templatename))
384         {
385             $templatename = 'default';
386         }
387         $aViewUrls = $this->_initialise($templatename, $screenname, $editfile, true, $useindex);
388         App()->getClientScript()->reset();
389 
390         // After reseting, we need register again the script : maybe move it to endScripts_view for allways needed scripts ?
391         App()->getClientScript()->registerScriptFile( App()->getAssetManager()->publish( ADMIN_SCRIPT_PATH . "admin_core.js" ));
392         App()->getClientScript()->registerScriptFile( App()->getAssetManager()->publish( ADMIN_SCRIPT_PATH  . 'templates.js'));
#4
+
 /var/www/limesurvey/www/application/core/Survey_Common_Action.php(101): CAction->runWithParamsInternal(templates, ReflectionMethod, array("sa" => "view"))
096             $oMethod = new ReflectionMethod($this, $sDefault);
097         }
098 
099         // We're all good to go, let's execute it
100         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
101         return parent::runWithParamsInternal($this, $oMethod, $params);
102     }
103 
104     /**
105     * Some functions have different parameters, which are just an alias of the
106     * usual parameters we're getting in the url. This function just populates
2016-03-08 22:50:42 Apache/2.4.16 (Unix) OpenSSL/1.0.1s Phusion_Passenger/5.0.20 mod_wsgi/4.4.19 Python/2.7.5 PHP/5.6.19 Yii Framework/1.1.17