CException

Invalid SetDefaultSurveySettings template directory

/home/shnoulle/Public/webdev/5XLTS/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
+
 /home/shnoulle/Public/webdev/5XLTS/application/helpers/common_helper.php(3094): Template::getTemplateURL()
3089  * @param mixed $sTemplateName
3090  * @return string
3091  */
3092 function getTemplateURL($sTemplateName)
3093 {
3094     return Template::getTemplateURL($sTemplateName);
3095 }
3096 
3097 /**
3098  * Return an array of subquestions for a given sid/qid
3099  *
#1
+
 /home/shnoulle/Public/webdev/5XLTS/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
+
 /home/shnoulle/Public/webdev/5XLTS/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"),
2023-06-22 18:22:03 nginx/1.18.0 Yii Framework/1.1.28