View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18908 | Bug reports | Theme editor | public | 2023-06-22 18:29 | 2023-07-20 14:58 |
Reporter | DenisChenu | Assigned To | |||
Priority | none | Severity | minor | ||
Status | new | Resolution | open | ||
Product Version | 5.6.x | ||||
Summary | 18908: Deleting a theme can goes to broken Survey settings and pubmlic survey | ||||
Description | When deleting theme used as Global Survey settings : Public survey goes to 500 error. | ||||
Steps To Reproduce | Steps to reproduceCreate a SetDefaultSurveySettings theme Check default theme at admin/globalsettings (Fruity for example) and set it as a valid theme Expected resultSurvey can be view using Fruity Actual result500 error | ||||
Tags | No tags attached. | ||||
Attached Files | CException.html (25,310 bytes)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>CException</title> <style type="text/css"> /*<![CDATA[*/ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;} body{line-height:1;} ol,ul{list-style:none;} blockquote,q{quotes:none;} blockquote:before,blockquote:after,q:before,q:after{content:none;} :focus{outline:0;} ins{text-decoration:none;} del{text-decoration:line-through;} table{border-collapse:collapse;border-spacing:0;} body { font: normal 9pt "Verdana"; color: #000; background: #fff; } h1 { font: normal 18pt "Verdana"; color: #f00; margin-bottom: .5em; } h2 { font: normal 14pt "Verdana"; color: #800000; margin-bottom: .5em; } h3 { font: bold 11pt "Verdana"; } pre { font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace; } pre span.error { display: block; background: #fce3e3; } pre span.ln { color: #999; padding-right: 0.5em; border-right: 1px solid #ccc; } pre span.error-ln { font-weight: bold; } .container { margin: 1em 4em; } .version { color: gray; font-size: 8pt; border-top: 1px solid #aaa; padding-top: 1em; margin-bottom: 1em; } .message { color: #000; padding: 1em; font-size: 11pt; background: #f3f3f3; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; margin-bottom: 1em; line-height: 160%; } .source { margin-bottom: 1em; } .code pre { background-color: #ffe; margin: 0.5em 0; padding: 0.5em; line-height: 125%; border: 1px solid #eee; } .source .file { margin-bottom: 1em; font-weight: bold; } .traces { margin: 2em 0; } .trace { margin: 0.5em 0; padding: 0.5em; } .trace.app { border: 1px dashed #c00; } .trace .number { text-align: right; width: 2em; padding: 0.5em; } .trace .content { padding: 0.5em; } .trace .plus, .trace .minus { display:inline; vertical-align:middle; text-align:center; border:1px solid #000; color:#000; font-size:10px; line-height:10px; margin:0; padding:0 1px; width:10px; height:10px; } .trace.collapsed .minus, .trace.expanded .plus, .trace.collapsed pre { display: none; } .trace-file { cursor: pointer; padding: 0.2em; } .trace-file:hover { background: #f0ffff; } /*]]>*/ </style> </head> <body> <div class="container"> <h1>CException</h1> <p class="message"> Invalid SetDefaultSurveySettings template directory </p> <div class="source"> <p class="file">/home/shnoulle/Public/webdev/5XLTS/application/models/Template.php(370)</p> <div class="code"><pre><span class="ln">358</span> } <span class="ln">359</span> <span class="ln">360</span> /** <span class="ln">361</span> * This function returns the complete URL path to a given template name <span class="ln">362</span> * <span class="ln">363</span> * @param string $sTemplateName <span class="ln">364</span> * @return string template url <span class="ln">365</span> */ <span class="ln">366</span> public static function getTemplateURL($sTemplateName = "") <span class="ln">367</span> { <span class="ln">368</span> // Make sure template name is valid <span class="ln">369</span> if (!self::checkIfTemplateExists($sTemplateName)) { <span class="error"><span class="ln error-ln">370</span> throw new \CException("Invalid {$sTemplateName} template directory"); </span><span class="ln">371</span> } <span class="ln">372</span> <span class="ln">373</span> static $aTemplateUrl = array(); <span class="ln">374</span> if (isset($aTemplateUrl[$sTemplateName])) { <span class="ln">375</span> return $aTemplateUrl[$sTemplateName]; <span class="ln">376</span> } <span class="ln">377</span> <span class="ln">378</span> $oTemplate = self::model()->findByPk($sTemplateName); <span class="ln">379</span> <span class="ln">380</span> if (is_object($oTemplate)) { <span class="ln">381</span> Yii::import('application.helpers.SurveyThemeHelper'); <span class="ln">382</span> if (SurveyThemeHelper::isStandardTemplate($sTemplateName)) { </pre></div> </div> <div class="traces"> <h2>Stack Trace</h2> <table style="width:100%;"> <tbody><tr class="trace app expanded"> <td class="number"> #0 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/helpers/common_helper.php(3094): <strong>Template</strong>::<strong>getTemplateURL</strong>() </div> <div class="code"><pre><span class="ln">3089</span> * @param mixed $sTemplateName <span class="ln">3090</span> * @return string <span class="ln">3091</span> */ <span class="ln">3092</span> function getTemplateURL($sTemplateName) <span class="ln">3093</span> { <span class="error"><span class="ln error-ln">3094</span> return Template::getTemplateURL($sTemplateName); </span><span class="ln">3095</span> } <span class="ln">3096</span> <span class="ln">3097</span> /** <span class="ln">3098</span> * Return an array of subquestions for a given sid/qid <span class="ln">3099</span> * </pre></div> </td> </tr> <tr class="trace app expanded"> <td class="number"> #1 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/helpers/replacements_helper.php(112): <strong>getTemplateURL</strong>() </div> <div class="code"><pre><span class="ln">107</span> $templatename = $thissurvey['templatedir']; <span class="ln">108</span> } else { <span class="ln">109</span> $templatename = App()->getConfig('defaulttheme'); <span class="ln">110</span> } <span class="ln">111</span> if (!isset($templateurl)) { <span class="error"><span class="ln error-ln">112</span> $templateurl = getTemplateURL($templatename) . "/"; </span><span class="ln">113</span> } <span class="ln">114</span> <span class="ln">115</span> /** <span class="ln">116</span> * Template css/js files from the template config files are loaded. <span class="ln">117</span> * It use the asset manager (so user never need to empty the cache, even if template is updated) </pre></div> </td> </tr> <tr class="trace app expanded"> <td class="number"> #2 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/helpers/expressions/em_manager_helper.php(3341): <strong>templatereplace</strong>() </div> <div class="code"><pre><span class="ln">3336</span> 'jsName' => '', <span class="ln">3337</span> 'readWrite' => 'N', <span class="ln">3338</span> ]; <span class="ln">3339</span> } <span class="ln">3340</span> /* Add the core replacement before question code : needed if use it in equation , use SID to never send error */ <span class="error"><span class="ln error-ln">3341</span> templatereplace("{SID}"); </span><span class="ln">3342</span> <span class="ln">3343</span> // Since building array of allowable answers, need to know preset values for certain question types <span class="ln">3344</span> $presets = []; <span class="ln">3345</span> $presets['G'] = [ //GENDER drop-down list <span class="ln">3346</span> 'M' => $this->gT("Male"), </pre></div> </td> </tr> <tr class="trace app collapsed"> <td class="number"> #3 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/helpers/expressions/em_manager_helper.php(4537): <strong>LimeExpressionManager</strong>-><strong>setVariableAndTokenMappingsForExpressionManager</strong>() </div> <div class="code"><pre><span class="ln">4532</span> $LEM->em->StartProcessingGroup( <span class="ln">4533</span> isset($_SESSION['LEMsid']) ? $_SESSION['LEMsid'] : null, <span class="ln">4534</span> '', <span class="ln">4535</span> true <span class="ln">4536</span> ); <span class="error"><span class="ln error-ln">4537</span> $LEM->setVariableAndTokenMappingsForExpressionManager($_SESSION['LEMsid']); </span><span class="ln">4538</span> } <span class="ln">4539</span> } <span class="ln">4540</span> <span class="ln">4541</span> /** <span class="ln">4542</span> * Initialize a survey so can use EM to manage navigation </pre></div> </td> </tr> <tr class="trace app collapsed"> <td class="number"> #4 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/controllers/SurveyAdministrationController.php(83): <strong>LimeExpressionManager</strong>::<strong>StartProcessingPage</strong>() </div> <div class="code"><pre><span class="ln">78</span> $this->aData['oSurvey'] = $this->aData['oSurvey'] ?? Survey::model()->findByPk($this->aData['surveyid']); <span class="ln">79</span> <span class="ln">80</span> // Needed to evaluate EM expressions in question summary <span class="ln">81</span> // See bug #11845 <span class="ln">82</span> LimeExpressionManager::SetSurveyId($this->aData['surveyid']); <span class="error"><span class="ln error-ln">83</span> LimeExpressionManager::StartProcessingPage(false, true); </span><span class="ln">84</span> <span class="ln">85</span> $this->layout = 'layout_questioneditor'; <span class="ln">86</span> } else { <span class="ln">87</span> $this->layout = 'main'; <span class="ln">88</span> } </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #5 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/CController.php(783): <strong>SurveyAdministrationController</strong>-><strong>beforeRender</strong>() </div> <div class="code"><pre><span class="ln">778</span> * @see renderPartial <span class="ln">779</span> * @see getLayoutFile <span class="ln">780</span> */ <span class="ln">781</span> public function render($view,$data=null,$return=false) <span class="ln">782</span> { <span class="error"><span class="ln error-ln">783</span> if($this->beforeRender($view)) </span><span class="ln">784</span> { <span class="ln">785</span> $output=$this->renderPartial($view,$data,true); <span class="ln">786</span> if(($layoutFile=$this->getLayoutFile($this->layout))!==false) <span class="ln">787</span> $output=$this->renderFile($layoutFile,array('content'=>$output),true); <span class="ln">788</span> </pre></div> </td> </tr> <tr class="trace app collapsed"> <td class="number"> #6 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/controllers/SurveyAdministrationController.php(1977): <strong>CController</strong>-><strong>render</strong>() </div> <div class="code"><pre><span class="ln">1972</span> 'Y' => gT('On', 'unescaped'), <span class="ln">1973</span> 'N' => gT('Off', 'unescaped'), <span class="ln">1974</span> ); <span class="ln">1975</span> <span class="ln">1976</span> $this->aData = $aData; <span class="error"><span class="ln error-ln">1977</span> $this->render($menuEntry->template, $aData); </span><span class="ln">1978</span> } <span class="ln">1979</span> <span class="ln">1980</span> /** <span class="ln">1981</span> * Load ordering of question group screen. <span class="ln">1982</span> * questiongroup::organize() </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #7 </td> <td class="content"> <div class="trace-file"> unknown(0): <strong>SurveyAdministrationController</strong>-><strong>actionRendersidemenulink</strong>() </div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #8 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/actions/CAction.php(115): <strong>ReflectionMethod</strong>-><strong>invokeArgs</strong>() </div> <div class="code"><pre><span class="ln">110</span> elseif($param->isDefaultValueAvailable()) <span class="ln">111</span> $ps[]=$param->getDefaultValue(); <span class="ln">112</span> else <span class="ln">113</span> return false; <span class="ln">114</span> } <span class="error"><span class="ln error-ln">115</span> $method->invokeArgs($object,$ps); </span><span class="ln">116</span> return true; <span class="ln">117</span> } <span class="ln">118</span> } </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #9 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): <strong>CAction</strong>-><strong>runWithParamsInternal</strong>() </div> <div class="code"><pre><span class="ln">42</span> { <span class="ln">43</span> $methodName='action'.$this->getId(); <span class="ln">44</span> $controller=$this->getController(); <span class="ln">45</span> $method=new ReflectionMethod($controller, $methodName); <span class="ln">46</span> if($method->getNumberOfParameters()>0) <span class="error"><span class="ln error-ln">47</span> return $this->runWithParamsInternal($controller, $method, $params); </span><span class="ln">48</span> <span class="ln">49</span> $controller->$methodName(); <span class="ln">50</span> return true; <span class="ln">51</span> } <span class="ln">52</span> } </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #10 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/CController.php(308): <strong>CInlineAction</strong>-><strong>runWithParams</strong>() </div> <div class="code"><pre><span class="ln">303</span> { <span class="ln">304</span> $priorAction=$this->_action; <span class="ln">305</span> $this->_action=$action; <span class="ln">306</span> if($this->beforeAction($action)) <span class="ln">307</span> { <span class="error"><span class="ln error-ln">308</span> if($action->runWithParams($this->getActionParams())===false) </span><span class="ln">309</span> $this->invalidActionParams($action); <span class="ln">310</span> else <span class="ln">311</span> $this->afterAction($action); <span class="ln">312</span> } <span class="ln">313</span> $this->_action=$priorAction; </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #11 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/CController.php(286): <strong>CController</strong>-><strong>runAction</strong>() </div> <div class="code"><pre><span class="ln">281</span> * @see runAction <span class="ln">282</span> */ <span class="ln">283</span> public function runActionWithFilters($action,$filters) <span class="ln">284</span> { <span class="ln">285</span> if(empty($filters)) <span class="error"><span class="ln error-ln">286</span> $this->runAction($action); </span><span class="ln">287</span> else <span class="ln">288</span> { <span class="ln">289</span> $priorAction=$this->_action; <span class="ln">290</span> $this->_action=$action; <span class="ln">291</span> CFilterChain::create($this,$action,$filters)->run(); </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #12 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/CController.php(265): <strong>CController</strong>-><strong>runActionWithFilters</strong>() </div> <div class="code"><pre><span class="ln">260</span> { <span class="ln">261</span> if(($parent=$this->getModule())===null) <span class="ln">262</span> $parent=Yii::app(); <span class="ln">263</span> if($parent->beforeControllerAction($this,$action)) <span class="ln">264</span> { <span class="error"><span class="ln error-ln">265</span> $this->runActionWithFilters($action,$this->filters()); </span><span class="ln">266</span> $parent->afterControllerAction($this,$action); <span class="ln">267</span> } <span class="ln">268</span> } <span class="ln">269</span> else <span class="ln">270</span> $this->missingAction($actionID); </pre></div> </td> </tr> <tr class="trace app collapsed"> <td class="number"> #13 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/controllers/LSBaseController.php(145): <strong>CController</strong>-><strong>run</strong>() </div> <div class="code"><pre><span class="ln">140</span> $this->redirect(array('/admin/authentication/sa/login')); <span class="ln">141</span> } <span class="ln">142</span> } <span class="ln">143</span> } <span class="ln">144</span> <span class="error"><span class="ln error-ln">145</span> parent::run($action); </span><span class="ln">146</span> } <span class="ln">147</span> <span class="ln">148</span> /** <span class="ln">149</span> * Load and set session vars <span class="ln">150</span> * </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #14 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): <strong>LSBaseController</strong>-><strong>run</strong>() </div> <div class="code"><pre><span class="ln">277</span> { <span class="ln">278</span> list($controller,$actionID)=$ca; <span class="ln">279</span> $oldController=$this->_controller; <span class="ln">280</span> $this->_controller=$controller; <span class="ln">281</span> $controller->init(); <span class="error"><span class="ln error-ln">282</span> $controller->run($actionID); </span><span class="ln">283</span> $this->_controller=$oldController; <span class="ln">284</span> } <span class="ln">285</span> else <span class="ln">286</span> throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', <span class="ln">287</span> array('{route}'=>$route===''?$this->defaultController:$route))); </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #15 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-><strong>runController</strong>() </div> <div class="code"><pre><span class="ln">136</span> foreach(array_splice($this->catchAllRequest,1) as $name=>$value) <span class="ln">137</span> $_GET[$name]=$value; <span class="ln">138</span> } <span class="ln">139</span> else <span class="ln">140</span> $route=$this->getUrlManager()->parseUrl($this->getRequest()); <span class="error"><span class="ln error-ln">141</span> $this->runController($route); </span><span class="ln">142</span> } <span class="ln">143</span> <span class="ln">144</span> /** <span class="ln">145</span> * Registers the core application components. <span class="ln">146</span> * This method overrides the parent implementation by registering additional core components. </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #16 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/base/CApplication.php(185): <strong>CWebApplication</strong>-><strong>processRequest</strong>() </div> <div class="code"><pre><span class="ln">180</span> public function run() <span class="ln">181</span> { <span class="ln">182</span> if($this->hasEventHandler('onBeginRequest')) <span class="ln">183</span> $this->onBeginRequest(new CEvent($this)); <span class="ln">184</span> register_shutdown_function(array($this,'end'),0,false); <span class="error"><span class="ln error-ln">185</span> $this->processRequest(); </span><span class="ln">186</span> if($this->hasEventHandler('onEndRequest')) <span class="ln">187</span> $this->onEndRequest(new CEvent($this)); <span class="ln">188</span> } <span class="ln">189</span> <span class="ln">190</span> /** </pre></div> </td> </tr> <tr class="trace app collapsed"> <td class="number"> #17 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/index.php(161): <strong>CApplication</strong>-><strong>run</strong>() </div> <div class="code"><pre><span class="ln">156</span> require_once APPPATH . 'core/LSYii_Application' . EXT; <span class="ln">157</span> <span class="ln">158</span> $config = require_once(APPPATH . 'config/internal' . EXT); <span class="ln">159</span> <span class="ln">160</span> Yii::$enableIncludePath = false; <span class="error"><span class="ln error-ln">161</span> Yii::createApplication('LSYii_Application', $config)->run(); </span><span class="ln">162</span> <span class="ln">163</span> /* End of file index.php */ <span class="ln">164</span> /* Location: ./index.php */ </pre></div> </td> </tr> </tbody></table> </div> <div class="version"> 2023-06-22 18:22:03 nginx/1.18.0 <a href="https://www.yiiframework.com/">Yii Framework</a>/1.1.28 </div> </div> <script type="text/javascript"> /*<![CDATA[*/ var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)"); var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)"); var e = document.getElementsByTagName("div"); for(var j=0,len=e.length;j<len;j++){ if(traceReg.test(e[j].className)){ e[j].onclick = function(){ var trace = this.parentNode.parentNode; if(collapsedReg.test(trace.className)) trace.className = trace.className.replace("collapsed", "expanded"); else trace.className = trace.className.replace("expanded", "collapsed"); } } } /*]]>*/ </script> <div id="grammalecte_menu_main_button_shadow_host" style="width: 0px; height: 0px;"></div></body><script src="CException_fichiers/api.js"></script></html> PHP notice.html (23,729 bytes)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>PHP notice</title> <style type="text/css"> /*<![CDATA[*/ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;} body{line-height:1;} ol,ul{list-style:none;} blockquote,q{quotes:none;} blockquote:before,blockquote:after,q:before,q:after{content:none;} :focus{outline:0;} ins{text-decoration:none;} del{text-decoration:line-through;} table{border-collapse:collapse;border-spacing:0;} body { font: normal 9pt "Verdana"; color: #000; background: #fff; } h1 { font: normal 18pt "Verdana"; color: #f00; margin-bottom: .5em; } h2 { font: normal 14pt "Verdana"; color: #800000; margin-bottom: .5em; } h3 { font: bold 11pt "Verdana"; } pre { font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace; } pre span.error { display: block; background: #fce3e3; } pre span.ln { color: #999; padding-right: 0.5em; border-right: 1px solid #ccc; } pre span.error-ln { font-weight: bold; } .container { margin: 1em 4em; } .version { color: gray; font-size: 8pt; border-top: 1px solid #aaa; padding-top: 1em; margin-bottom: 1em; } .message { color: #000; padding: 1em; font-size: 11pt; background: #f3f3f3; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; margin-bottom: 1em; line-height: 160%; } .source { margin-bottom: 1em; } .code pre { background-color: #ffe; margin: 0.5em 0; padding: 0.5em; line-height: 125%; border: 1px solid #eee; } .source .file { margin-bottom: 1em; font-weight: bold; } .traces { margin: 2em 0; } .trace { margin: 0.5em 0; padding: 0.5em; } .trace.app { border: 1px dashed #c00; } .trace .number { text-align: right; width: 2em; padding: 0.5em; } .trace .content { padding: 0.5em; } .trace .plus, .trace .minus { display:inline; vertical-align:middle; text-align:center; border:1px solid #000; color:#000; font-size:10px; line-height:10px; margin:0; padding:0 1px; width:10px; height:10px; } .trace.collapsed .minus, .trace.expanded .plus, .trace.collapsed pre { display: none; } .trace-file { cursor: pointer; padding: 0.2em; } .trace-file:hover { background: #f0ffff; } /*]]>*/ </style> </head> <body> <div class="container"> <h1>PHP notice</h1> <p class="message"> Undefined property: TemplateConfiguration::$options </p> <div class="source"> <p class="file">/home/shnoulle/Public/webdev/5XLTS/application/models/TemplateConfiguration.php(1514)</p> <div class="code"><pre><span class="ln">1502</span> 'cssframework_name', <span class="ln">1503</span> 'cssframework_css', <span class="ln">1504</span> 'cssframework_js', <span class="ln">1505</span> 'packages_to_load' <span class="ln">1506</span> ); <span class="ln">1507</span> <span class="ln">1508</span> if (in_array($name, $aAttributesThatCanBeInherited) && $this->bUseMagicInherit) { <span class="ln">1509</span> // Full inheritance of the whole field <span class="ln">1510</span> $sAttribute = parent::__get($name); <span class="ln">1511</span> if ($sAttribute === 'inherit') { <span class="ln">1512</span> // NOTE: this is object recursive (if parent configuration field is set to inherit, <span class="ln">1513</span> // then it will lead to this method again.) <span class="error"><span class="ln error-ln">1514</span> $sAttribute = $this->getParentConfiguration()->$name; </span><span class="ln">1515</span> } <span class="ln">1516</span> } else { <span class="ln">1517</span> $sAttribute = parent::__get($name); <span class="ln">1518</span> } <span class="ln">1519</span> <span class="ln">1520</span> return $sAttribute; <span class="ln">1521</span> } <span class="ln">1522</span> <span class="ln">1523</span> /** <span class="ln">1524</span> * @todo document me <span class="ln">1525</span> * @return string <span class="ln">1526</span> */ </pre></div> </div> <div class="traces"> <h2>Stack Trace</h2> <table style="width:100%;"> <tbody><tr class="trace app expanded"> <td class="number"> #0 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/models/TemplateConfiguration.php(1514): <strong>TemplateConfiguration</strong>-><strong>__get</strong>("options") </div> <div class="code"><pre><span class="ln">1509</span> // Full inheritance of the whole field <span class="ln">1510</span> $sAttribute = parent::__get($name); <span class="ln">1511</span> if ($sAttribute === 'inherit') { <span class="ln">1512</span> // NOTE: this is object recursive (if parent configuration field is set to inherit, <span class="ln">1513</span> // then it will lead to this method again.) <span class="error"><span class="ln error-ln">1514</span> $sAttribute = $this->getParentConfiguration()->$name; </span><span class="ln">1515</span> } <span class="ln">1516</span> } else { <span class="ln">1517</span> $sAttribute = parent::__get($name); <span class="ln">1518</span> } <span class="ln">1519</span> </pre></div> </td> </tr> <tr class="trace app expanded"> <td class="number"> #1 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/models/TemplateConfiguration.php(1295): <strong>TemplateConfiguration</strong>-><strong>__get</strong>("options") </div> <div class="code"><pre><span class="ln">1290</span> * @return void <span class="ln">1291</span> */ <span class="ln">1292</span> protected function setOptions() <span class="ln">1293</span> { <span class="ln">1294</span> $this->oOptions = new stdClass(); <span class="error"><span class="ln error-ln">1295</span> if (!empty($this->options)) { </span><span class="ln">1296</span> $this->oOptions = json_decode($this->options); <span class="ln">1297</span> } <span class="ln">1298</span> // unset "comment" property which is auto generated from HTML comments in xml file <span class="ln">1299</span> unset($this->oOptions->comment); <span class="ln">1300</span> </pre></div> </td> </tr> <tr class="trace app expanded"> <td class="number"> #2 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/models/TemplateConfiguration.php(1250): <strong>TemplateConfiguration</strong>-><strong>setOptions</strong>() </div> <div class="code"><pre><span class="ln">1245</span> $this->filesPath = $this->path . $this->getTemplateConfigurationForAttribute($this, 'files_folder') <span class="ln">1246</span> ->template->files_folder . DIRECTORY_SEPARATOR; <span class="ln">1247</span> $this->generalFilesPath = App()->getConfig("userthemerootdir") <span class="ln">1248</span> . DIRECTORY_SEPARATOR . 'generalfiles' . DIRECTORY_SEPARATOR; <span class="ln">1249</span> // Options are optional <span class="error"><span class="ln error-ln">1250</span> $this->setOptions(); </span><span class="ln">1251</span> <span class="ln">1252</span> // Not mandatory (use package dependances) <span class="ln">1253</span> $this->setCssFramework(); <span class="ln">1254</span> $this->packages = $this->getDependsPackages($this); <span class="ln">1255</span> if (!empty($this->packages_to_load)) { </pre></div> </td> </tr> <tr class="trace app collapsed"> <td class="number"> #3 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/models/TemplateConfiguration.php(1701): <strong>TemplateConfiguration</strong>-><strong>setThisTemplate</strong>() </div> <div class="code"><pre><span class="ln">1696</span> } <span class="ln">1697</span> } <span class="ln">1698</span> <span class="ln">1699</span> $this->setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit); <span class="ln">1700</span> $this->setMotherTemplates(); // Recursive mother templates configuration <span class="error"><span class="ln error-ln">1701</span> $this->setThisTemplate(); // Set the main config values of this template </span><span class="ln">1702</span> $this->createTemplatePackage($this); // Create an asset package ready to be loaded <span class="ln">1703</span> $this->removeFiles(); <span class="ln">1704</span> $this->getshowpopups(); <span class="ln">1705</span> <span class="ln">1706</span> if (!empty($sTemplateName) && !empty($iSurveyId)) { </pre></div> </td> </tr> <tr class="trace app collapsed"> <td class="number"> #4 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/models/Template.php(509): <strong>TemplateConfiguration</strong>-><strong>prepareTemplateRendering</strong>("", 564825) </div> <div class="code"><pre><span class="ln">504</span> return self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML, true); <span class="ln">505</span> } <span class="ln">506</span> <span class="ln">507</span> if (empty(self::$instance) || ! self::isCorrectInstance($sTemplateName)) { <span class="ln">508</span> self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML); <span class="error"><span class="ln error-ln">509</span> self::$instance->prepareTemplateRendering($sTemplateName, $iSurveyId); </span><span class="ln">510</span> } <span class="ln">511</span> <span class="ln">512</span> return self::getLastInstance(false); <span class="ln">513</span> } <span class="ln">514</span> </pre></div> </td> </tr> <tr class="trace app collapsed"> <td class="number"> #5 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/controllers/survey/index.php(336): <strong>Template</strong>::<strong>getInstance</strong>("", 564825) </div> <div class="code"><pre><span class="ln">331</span> if (!is_null($beforeSurveyPageEvent->get('template'))) { <span class="ln">332</span> $thissurvey['templatedir'] = $beforeSurveyPageEvent->get('template'); <span class="ln">333</span> } <span class="ln">334</span> <span class="ln">335</span> //SET THE TEMPLATE DIRECTORY <span class="error"><span class="ln error-ln">336</span> $oTemplate = Template::model()->getInstance('', $surveyid); </span><span class="ln">337</span> $timeadjust = Yii::app()->getConfig("timeadjust"); <span class="ln">338</span> <span class="ln">339</span> //MAKE SURE SURVEY HASN'T EXPIRED <span class="ln">340</span> if ($thissurvey['expiry'] != '' and dateShift(date("Y-m-d H:i:s"), "Y-m-d H:i:s", $timeadjust) > $thissurvey['expiry'] && $thissurvey['active'] != 'N' && !$previewmode) { <span class="ln">341</span> $aErrors = array(gT('Error')); </pre></div> </td> </tr> <tr class="trace app collapsed"> <td class="number"> #6 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/application/controllers/survey/index.php(22): <strong>Index</strong>-><strong>action</strong>() </div> <div class="code"><pre><span class="ln">17</span> public $oTemplate; <span class="ln">18</span> <span class="ln">19</span> public function run() <span class="ln">20</span> { <span class="ln">21</span> useFirebug(); <span class="error"><span class="ln error-ln">22</span> $this->action(); </span><span class="ln">23</span> } <span class="ln">24</span> <span class="ln">25</span> /** <span class="ln">26</span> * <span class="ln">27</span> * todo: this function is toooo long, to many things happening here. Should be refactored asap! </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #7 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/actions/CAction.php(76): <strong>Index</strong>-><strong>run</strong>() </div> <div class="code"><pre><span class="ln">71</span> { <span class="ln">72</span> $method=new ReflectionMethod($this, 'run'); <span class="ln">73</span> if($method->getNumberOfParameters()>0) <span class="ln">74</span> return $this->runWithParamsInternal($this, $method, $params); <span class="ln">75</span> <span class="error"><span class="ln error-ln">76</span> $this->run(); </span><span class="ln">77</span> return true; <span class="ln">78</span> } <span class="ln">79</span> <span class="ln">80</span> /** <span class="ln">81</span> * Executes a method of an object with the supplied named parameters. </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #8 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/CController.php(308): <strong>CAction</strong>-><strong>runWithParams</strong>(array("r" => "survey/index", "sid" => "564825", "newtest" => "Y", "lang" => "en")) </div> <div class="code"><pre><span class="ln">303</span> { <span class="ln">304</span> $priorAction=$this->_action; <span class="ln">305</span> $this->_action=$action; <span class="ln">306</span> if($this->beforeAction($action)) <span class="ln">307</span> { <span class="error"><span class="ln error-ln">308</span> if($action->runWithParams($this->getActionParams())===false) </span><span class="ln">309</span> $this->invalidActionParams($action); <span class="ln">310</span> else <span class="ln">311</span> $this->afterAction($action); <span class="ln">312</span> } <span class="ln">313</span> $this->_action=$priorAction; </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #9 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/CController.php(286): <strong>CController</strong>-><strong>runAction</strong>(Index) </div> <div class="code"><pre><span class="ln">281</span> * @see runAction <span class="ln">282</span> */ <span class="ln">283</span> public function runActionWithFilters($action,$filters) <span class="ln">284</span> { <span class="ln">285</span> if(empty($filters)) <span class="error"><span class="ln error-ln">286</span> $this->runAction($action); </span><span class="ln">287</span> else <span class="ln">288</span> { <span class="ln">289</span> $priorAction=$this->_action; <span class="ln">290</span> $this->_action=$action; <span class="ln">291</span> CFilterChain::create($this,$action,$filters)->run(); </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #10 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/CController.php(265): <strong>CController</strong>-><strong>runActionWithFilters</strong>(Index, array()) </div> <div class="code"><pre><span class="ln">260</span> { <span class="ln">261</span> if(($parent=$this->getModule())===null) <span class="ln">262</span> $parent=Yii::app(); <span class="ln">263</span> if($parent->beforeControllerAction($this,$action)) <span class="ln">264</span> { <span class="error"><span class="ln error-ln">265</span> $this->runActionWithFilters($action,$this->filters()); </span><span class="ln">266</span> $parent->afterControllerAction($this,$action); <span class="ln">267</span> } <span class="ln">268</span> } <span class="ln">269</span> else <span class="ln">270</span> $this->missingAction($actionID); </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #11 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): <strong>CController</strong>-><strong>run</strong>("index") </div> <div class="code"><pre><span class="ln">277</span> { <span class="ln">278</span> list($controller,$actionID)=$ca; <span class="ln">279</span> $oldController=$this->_controller; <span class="ln">280</span> $this->_controller=$controller; <span class="ln">281</span> $controller->init(); <span class="error"><span class="ln error-ln">282</span> $controller->run($actionID); </span><span class="ln">283</span> $this->_controller=$oldController; <span class="ln">284</span> } <span class="ln">285</span> else <span class="ln">286</span> throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', <span class="ln">287</span> array('{route}'=>$route===''?$this->defaultController:$route))); </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #12 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-><strong>runController</strong>("survey/index") </div> <div class="code"><pre><span class="ln">136</span> foreach(array_splice($this->catchAllRequest,1) as $name=>$value) <span class="ln">137</span> $_GET[$name]=$value; <span class="ln">138</span> } <span class="ln">139</span> else <span class="ln">140</span> $route=$this->getUrlManager()->parseUrl($this->getRequest()); <span class="error"><span class="ln error-ln">141</span> $this->runController($route); </span><span class="ln">142</span> } <span class="ln">143</span> <span class="ln">144</span> /** <span class="ln">145</span> * Registers the core application components. <span class="ln">146</span> * This method overrides the parent implementation by registering additional core components. </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #13 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/vendor/yiisoft/yii/framework/base/CApplication.php(185): <strong>CWebApplication</strong>-><strong>processRequest</strong>() </div> <div class="code"><pre><span class="ln">180</span> public function run() <span class="ln">181</span> { <span class="ln">182</span> if($this->hasEventHandler('onBeginRequest')) <span class="ln">183</span> $this->onBeginRequest(new CEvent($this)); <span class="ln">184</span> register_shutdown_function(array($this,'end'),0,false); <span class="error"><span class="ln error-ln">185</span> $this->processRequest(); </span><span class="ln">186</span> if($this->hasEventHandler('onEndRequest')) <span class="ln">187</span> $this->onEndRequest(new CEvent($this)); <span class="ln">188</span> } <span class="ln">189</span> <span class="ln">190</span> /** </pre></div> </td> </tr> <tr class="trace app collapsed"> <td class="number"> #14 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /home/shnoulle/Public/webdev/5XLTS/index.php(161): <strong>CApplication</strong>-><strong>run</strong>() </div> <div class="code"><pre><span class="ln">156</span> require_once APPPATH . 'core/LSYii_Application' . EXT; <span class="ln">157</span> <span class="ln">158</span> $config = require_once(APPPATH . 'config/internal' . EXT); <span class="ln">159</span> <span class="ln">160</span> Yii::$enableIncludePath = false; <span class="error"><span class="ln error-ln">161</span> Yii::createApplication('LSYii_Application', $config)->run(); </span><span class="ln">162</span> <span class="ln">163</span> /* End of file index.php */ <span class="ln">164</span> /* Location: ./index.php */ </pre></div> </td> </tr> </tbody></table> </div> <div class="version"> 2023-06-22 18:22:45 nginx/1.18.0 <a href="https://www.yiiframework.com/">Yii Framework</a>/1.1.28 </div> </div> <script type="text/javascript"> /*<![CDATA[*/ var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)"); var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)"); var e = document.getElementsByTagName("div"); for(var j=0,len=e.length;j<len;j++){ if(traceReg.test(e[j].className)){ e[j].onclick = function(){ var trace = this.parentNode.parentNode; if(collapsedReg.test(trace.className)) trace.className = trace.className.replace("collapsed", "expanded"); else trace.className = trace.className.replace("expanded", "collapsed"); } } } /*]]>*/ </script> <div id="grammalecte_menu_main_button_shadow_host" style="width: 0px; height: 0px;"></div></body><script src="PHP%20notice_fichiers/api.js"></script></html> | ||||
Bug heat | 2 | ||||
Complete LimeSurvey version number (& build) | 5.6.25 (and surely 6.X) | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | not relevant | ||||
Database type & version | not relevant | ||||
Server OS (if known) | not relevant | ||||
Webserver software & version (if known) | not relevant | ||||
PHP Version | not relevant | ||||
related to | 18969 | closed | DenisChenu | After update to 6.1.8/Git version : all survey are broken and no way to fix it |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-06-22 18:29 | DenisChenu | New Issue | |
2023-06-22 18:29 | DenisChenu | File Added: Capture d’écran du 2023-06-22 18-23-28.png | |
2023-06-22 18:29 | DenisChenu | File Added: CException.html | |
2023-06-22 18:29 | DenisChenu | File Added: PHP notice.html | |
2023-06-22 18:29 | DenisChenu | Note Added: 75808 | |
2023-06-22 18:29 | DenisChenu | Bug heat | 0 => 2 |
2023-07-20 14:58 | DenisChenu | Relationship added | related to 18969 |