CException

Invalid extends_vanilla template directory

/media/shnoulle/data/webdev/ls5/application/models/Template.php(370)

358     }
359 
360     /**
361      * This function returns the complete URL path to a given template name
362      *
363      * @param string $sTemplateName
364      * @return string template url
365      */
366     public static function getTemplateURL($sTemplateName = "")
367     {
368         // Make sure template name is valid
369         if (!self::checkIfTemplateExists($sTemplateName)) {
370             throw new \CException("Invalid {$sTemplateName} template directory");
371         }
372 
373         static $aTemplateUrl = array();
374         if (isset($aTemplateUrl[$sTemplateName])) {
375             return $aTemplateUrl[$sTemplateName];
376         }
377 
378         $oTemplate = self::model()->findByPk($sTemplateName);
379 
380         if (is_object($oTemplate)) {
381             Yii::import('application.helpers.SurveyThemeHelper');
382             if (SurveyThemeHelper::isStandardTemplate($sTemplateName)) {

Stack Trace

#0
+
 /media/shnoulle/data/webdev/ls5/application/helpers/common_helper.php(3099): Template::getTemplateURL()
3094  * @param mixed $sTemplateName
3095  * @return string
3096  */
3097 function getTemplateURL($sTemplateName)
3098 {
3099     return Template::getTemplateURL($sTemplateName);
3100 }
3101 
3102 /**
3103  * Return an array of subquestions for a given sid/qid
3104  *
#1
+
 /media/shnoulle/data/webdev/ls5/application/helpers/replacements_helper.php(112): getTemplateURL()
107         $templatename = $thissurvey['templatedir'];
108     } else {
109         $templatename = App()->getConfig('defaulttheme');
110     }
111     if (!isset($templateurl)) {
112         $templateurl = getTemplateURL($templatename) . "/";
113     }
114 
115     /**
116      * Template css/js files from the template config files are loaded.
117      * It use the asset manager (so user never need to empty the cache, even if template is updated)
#2
+
 /media/shnoulle/data/webdev/ls5/application/helpers/expressions/em_manager_helper.php(3341): templatereplace()
3336                 'jsName'    => '',
3337                 'readWrite' => 'N',
3338             ];
3339         }
3340         /* Add the core replacement before question code : needed if use it in equation , use SID to never send error */
3341         templatereplace("{SID}");
3342 
3343         // Since building array of allowable answers, need to know preset values for certain question types
3344         $presets = [];
3345         $presets['G'] = [  //GENDER drop-down list
3346             'M' => $this->gT("Male"),
2024-04-02 11:20:28 nginx/1.22.1 Yii Framework/1.1.28