View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
16800 | Bug reports | Theme editor | public | 2020-10-30 16:31 | 2021-02-03 15:56 |
Reporter | DenisChenu | Assigned To | |||
Priority | normal | Severity | tweak | ||
Status | confirmed | Resolution | open | ||
Product Version | 4.3.23 | ||||
Summary | 16800: Invalid QuestionTheme broke some page with debug | ||||
Description | When there are invalid questioontheme directory , with debug set to 2 : we can't go to Global settings | ||||
Steps To Reproduce | Import or put a QuestionTheme
| ||||
Additional Information | Rare issue , debug must be set to 2 | ||||
Tags | No tags attached. | ||||
Attached Files | PHP warning.html (21,478 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 warning</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 warning</h1> <p class="message"> file_get_contents(/mnt/data/shnoulle/nginx/www/permission/upload/themes/question/List-Radio-Test-2/survey/questions/answer/listradio/config.xml): failed to open stream: No such file or directory </p> <div class="source"> <p class="file">/mnt/data/shnoulle/nginx/www/permission/application/models/QuestionTheme.php(649)</p> <div class="code"><pre><span class="ln">637</span> { <span class="ln">638</span> $criteria = new CDbCriteria(); <span class="ln">639</span> // $criteria->condition = 'extends = :extends'; <span class="ln">640</span> $criteria->addCondition('visible = :visible', 'AND'); <span class="ln">641</span> $criteria->params = [':visible' => 'Y']; <span class="ln">642</span> <span class="ln">643</span> $baseQuestions = self::model()->query($criteria, true, false); <span class="ln">644</span> <span class="ln">645</span> $bOldEntityLoaderState = libxml_disable_entity_loader(true); <span class="ln">646</span> $baseQuestionsModified = []; <span class="ln">647</span> foreach ($baseQuestions as $baseQuestion) { <span class="ln">648</span> //TODO: should be moved into DB column (question_theme_settings table) <span class="error"><span class="ln error-ln">649</span> $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $baseQuestion['xml_path'] . DIRECTORY_SEPARATOR . 'config.xml'); // @see: Now that entity loader is disabled, we can't use simplexml_load_file; so we must read the file with file_get_contents and convert it as a string </span><span class="ln">650</span> $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); <span class="ln">651</span> $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true); <span class="ln">652</span> $showAsQuestionType = $questionEngineData['show_as_question_type']; <span class="ln">653</span> <span class="ln">654</span> // if an extended Question should not be shown as a selectable questiontype skip it <span class="ln">655</span> if (!empty($baseQuestion['extends'] && !$showAsQuestionType)) { <span class="ln">656</span> continue; <span class="ln">657</span> } <span class="ln">658</span> <span class="ln">659</span> // language settings <span class="ln">660</span> $baseQuestion['title'] = gT($baseQuestion['title'], "html"); <span class="ln">661</span> $baseQuestion['group'] = gT($baseQuestion['group'], "html"); </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> /mnt/data/shnoulle/nginx/www/permission/application/models/QuestionTheme.php(649): <strong>file_get_contents</strong>("/mnt/data/shnoulle/nginx/www/permission/upload/themes/question/L...") </div> <div class="code"><pre><span class="ln">644</span> <span class="ln">645</span> $bOldEntityLoaderState = libxml_disable_entity_loader(true); <span class="ln">646</span> $baseQuestionsModified = []; <span class="ln">647</span> foreach ($baseQuestions as $baseQuestion) { <span class="ln">648</span> //TODO: should be moved into DB column (question_theme_settings table) <span class="error"><span class="ln error-ln">649</span> $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $baseQuestion['xml_path'] . DIRECTORY_SEPARATOR . 'config.xml'); // @see: Now that entity loader is disabled, we can't use simplexml_load_file; so we must read the file with file_get_contents and convert it as a string </span><span class="ln">650</span> $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); <span class="ln">651</span> $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true); <span class="ln">652</span> $showAsQuestionType = $questionEngineData['show_as_question_type']; <span class="ln">653</span> <span class="ln">654</span> // if an extended Question should not be shown as a selectable questiontype skip it </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> /mnt/data/shnoulle/nginx/www/permission/application/controllers/admin/useraction.php(721): <strong>QuestionTheme</strong>::<strong>findAllQuestionMetaDataForSelector</strong>() </div> <div class="code"><pre><span class="ln">716</span> <span class="ln">717</span> $currentPreselectedQuestiontype = array_key_exists('preselectquestiontype', $aUserSettings) ? $aUserSettings['preselectquestiontype'] : App()->getConfig('preselectquestiontype'); <span class="ln">718</span> <span class="ln">719</span> $aData['currentPreselectedQuestiontype'] = $currentPreselectedQuestiontype; <span class="ln">720</span> $aData['aUserSettings'] = $aUserSettings; <span class="error"><span class="ln error-ln">721</span> $aData['aQuestionTypeList'] = QuestionTheme::findAllQuestionMetaDataForSelector(); </span><span class="ln">722</span> $aData['selectedQuestion'] = QuestionTheme::findQuestionMetaData($currentPreselectedQuestiontype); <span class="ln">723</span> <span class="ln">724</span> $aData['surveymenu_data']['model'] = $oSurveymenu; <span class="ln">725</span> $aData['surveymenuentry_data']['model'] = $oSurveymenuEntries; <span class="ln">726</span> // Render personal settings view </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #2 </td> <td class="content"> <div class="trace-file"> unknown(0): <strong>UserAction</strong>-><strong>personalsettings</strong>() </div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #3 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/permission/framework/web/actions/CAction.php(109): <strong>ReflectionMethod</strong>-><strong>invokeArgs</strong>(UserAction, array()) </div> <div class="code"><pre><span class="ln">104</span> elseif($param->isDefaultValueAvailable()) <span class="ln">105</span> $ps[]=$param->getDefaultValue(); <span class="ln">106</span> else <span class="ln">107</span> return false; <span class="ln">108</span> } <span class="error"><span class="ln error-ln">109</span> $method->invokeArgs($object,$ps); </span><span class="ln">110</span> return true; <span class="ln">111</span> } <span class="ln">112</span> } </pre></div> </td> </tr> <tr class="trace app expanded"> <td class="number"> #4 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/permission/application/core/Survey_Common_Action.php(86): <strong>CAction</strong>-><strong>runWithParamsInternal</strong>(UserAction, ReflectionMethod, array("r" => "admin/user/sa/personalsettings", "sa" => "personalsettings")) </div> <div class="code"><pre><span class="ln">81</span> $oMethod = new ReflectionMethod($this, $sDefault); <span class="ln">82</span> } <span class="ln">83</span> <span class="ln">84</span> // We're all good to go, let's execute it <span class="ln">85</span> // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params <span class="error"><span class="ln error-ln">86</span> return parent::runWithParamsInternal($this, $oMethod, $params); </span><span class="ln">87</span> } <span class="ln">88</span> <span class="ln">89</span> /** <span class="ln">90</span> * Some functions have different parameters, which are just an alias of the <span class="ln">91</span> * usual parameters we're getting in the url. This function just populates </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> /mnt/data/shnoulle/nginx/www/permission/framework/web/CController.php(308): <strong>Survey_Common_Action</strong>-><strong>runWithParams</strong>(array("r" => "admin/user/sa/personalsettings", "sa" => "personalsettings")) </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"> #6 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/permission/framework/web/CController.php(286): <strong>CController</strong>-><strong>runAction</strong>(UserAction) </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"> #7 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/permission/framework/web/CController.php(265): <strong>CController</strong>-><strong>runActionWithFilters</strong>(UserAction, 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 app collapsed"> <td class="number"> #8 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/permission/application/controllers/AdminController.php(180): <strong>CController</strong>-><strong>run</strong>("user") </div> <div class="code"><pre><span class="ln">175</span> } <span class="ln">176</span> <span class="ln">177</span> $this->runModuleController($action); <span class="ln">178</span> <span class="ln">179</span> <span class="error"><span class="ln error-ln">180</span> return parent::run($action); </span><span class="ln">181</span> } <span class="ln">182</span> <span class="ln">183</span> /** <span class="ln">184</span> * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. <span class="ln">185</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> /mnt/data/shnoulle/nginx/www/permission/framework/web/CWebApplication.php(282): <strong>AdminController</strong>-><strong>run</strong>("user") </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"> #10 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/permission/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-><strong>runController</strong>("admin/user/sa/personalsettings") </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"> #11 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/permission/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"> #12 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/permission/index.php(182): <strong>CApplication</strong>-><strong>run</strong>() </div> <div class="code"><pre><span class="ln">177</span> require_once APPPATH . 'core/LSYii_Application' . EXT; <span class="ln">178</span> <span class="ln">179</span> $config = require_once(APPPATH . 'config/internal' . EXT); <span class="ln">180</span> <span class="ln">181</span> Yii::$enableIncludePath = false; <span class="error"><span class="ln error-ln">182</span> Yii::createApplication('LSYii_Application', $config)->run(); </span><span class="ln">183</span> <span class="ln">184</span> /* End of file index.php */ <span class="ln">185</span> /* Location: ./index.php */ </pre></div> </td> </tr> </tbody></table> </div> <div class="version"> 2020-10-30 15:19:15 nginx/1.18.0 <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.22-dev </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%20warning_fichiers/api.js"></script></html> | ||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 4.3.23 | ||||
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 | ||||
Oh no : set debug=0 : issue don't show (and theme don't seems to be in list) but theme still in DB … |
|
Denis - any chance to test it in 4.4.1? I think Patricia fixed some issues in there |
|
OK
debg= 0 seems OK I try set theme to a question and edit after (with debug not set) PHP warning-2.html (23,664 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 warning</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 warning</h1> <p class="message"> file_get_contents(/mnt/data/shnoulle/nginx/www/master/upload/themes/question/Social-Value-Orientation/survey/questions/answer/listradio/config.xml): failed to open stream: No such file or directory </p> <div class="source"> <p class="file">/mnt/data/shnoulle/nginx/www/master/application/models/QuestionTheme.php(682)</p> <div class="code"><pre><span class="ln">670</span> { <span class="ln">671</span> $criteria = new CDbCriteria(); <span class="ln">672</span> // $criteria->condition = 'extends = :extends'; <span class="ln">673</span> $criteria->addCondition('visible = :visible', 'AND'); <span class="ln">674</span> $criteria->params = [':visible' => 'Y']; <span class="ln">675</span> <span class="ln">676</span> $baseQuestions = self::model()->query($criteria, true, false); <span class="ln">677</span> <span class="ln">678</span> $bOldEntityLoaderState = libxml_disable_entity_loader(true); <span class="ln">679</span> $baseQuestionsModified = []; <span class="ln">680</span> foreach ($baseQuestions as $baseQuestion) { <span class="ln">681</span> //TODO: should be moved into DB column (question_theme_settings table) <span class="error"><span class="ln error-ln">682</span> $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $baseQuestion['xml_path'] . DIRECTORY_SEPARATOR . 'config.xml'); // @see: Now that entity loader is disabled, we can't use simplexml_load_file; so we must read the file with file_get_contents and convert it as a string </span><span class="ln">683</span> $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); <span class="ln">684</span> $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true); <span class="ln">685</span> $showAsQuestionType = $questionEngineData['show_as_question_type']; <span class="ln">686</span> <span class="ln">687</span> // if an extended Question should not be shown as a selectable questiontype skip it <span class="ln">688</span> if (!empty($baseQuestion['extends'] && !$showAsQuestionType)) { <span class="ln">689</span> continue; <span class="ln">690</span> } <span class="ln">691</span> <span class="ln">692</span> // language settings <span class="ln">693</span> $baseQuestion['title'] = gT($baseQuestion['title'], "html"); <span class="ln">694</span> $baseQuestion['group'] = gT($baseQuestion['group'], "html"); </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> /mnt/data/shnoulle/nginx/www/master/application/models/QuestionTheme.php(682): <strong>file_get_contents</strong>("/mnt/data/shnoulle/nginx/www/master/upload/themes/question/Socia...") </div> <div class="code"><pre><span class="ln">677</span> <span class="ln">678</span> $bOldEntityLoaderState = libxml_disable_entity_loader(true); <span class="ln">679</span> $baseQuestionsModified = []; <span class="ln">680</span> foreach ($baseQuestions as $baseQuestion) { <span class="ln">681</span> //TODO: should be moved into DB column (question_theme_settings table) <span class="error"><span class="ln error-ln">682</span> $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $baseQuestion['xml_path'] . DIRECTORY_SEPARATOR . 'config.xml'); // @see: Now that entity loader is disabled, we can't use simplexml_load_file; so we must read the file with file_get_contents and convert it as a string </span><span class="ln">683</span> $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); <span class="ln">684</span> $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true); <span class="ln">685</span> $showAsQuestionType = $questionEngineData['show_as_question_type']; <span class="ln">686</span> <span class="ln">687</span> // if an extended Question should not be shown as a selectable questiontype skip it </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> /mnt/data/shnoulle/nginx/www/master/application/controllers/QuestionAdministrationController.php(190): <strong>QuestionTheme</strong>::<strong>findAllQuestionMetaDataForSelector</strong>() </div> <div class="code"><pre><span class="ln">185</span> $this->aData['questionbar']['buttons']['view'] = true; <span class="ln">186</span> $this->aData['sidemenu']['landOnSideMenuTab'] = 'structure'; <span class="ln">187</span> $this->aData['title_bar']['title'] = <span class="ln">188</span> $question->survey->currentLanguageSettings->surveyls_title <span class="ln">189</span> . " (" . gT("ID") . ":" . $question->sid . ")"; <span class="error"><span class="ln error-ln">190</span> $this->aData['aQuestionTypeList'] = QuestionTheme::findAllQuestionMetaDataForSelector(); </span><span class="ln">191</span> $advancedSettings = $this->getAdvancedOptions($question->qid, $question->type, $questionTemplate); <span class="ln">192</span> // Remove general settings from this array. <span class="ln">193</span> unset($advancedSettings['Attribute']); <span class="ln">194</span> <span class="ln">195</span> // Add <input> with JSON as value, used by JavaScript. </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> /mnt/data/shnoulle/nginx/www/master/application/controllers/QuestionAdministrationController.php(146): <strong>QuestionAdministrationController</strong>-><strong>renderFormAux</strong>(Question) </div> <div class="code"><pre><span class="ln">141</span> 'qid' => $question->qid, <span class="ln">142</span> 'landOnSideMenuTab' => 'structure' <span class="ln">143</span> ] <span class="ln">144</span> ); <span class="ln">145</span> $this->aData['tabOverviewEditor'] = $tabOverviewEditor; <span class="error"><span class="ln error-ln">146</span> $this->renderFormAux($question); </span><span class="ln">147</span> } <span class="ln">148</span> <span class="ln">149</span> /** <span class="ln">150</span> * Helper function to render form. <span class="ln">151</span> * Used by create and edit actions. </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> /mnt/data/shnoulle/nginx/www/master/application/controllers/QuestionAdministrationController.php(68): <strong>QuestionAdministrationController</strong>-><strong>actionEdit</strong>(5626) </div> <div class="code"><pre><span class="ln">63</span> * <span class="ln">64</span> * @throws CException <span class="ln">65</span> */ <span class="ln">66</span> public function actionView($surveyid, $gid = null, $qid = null, $landOnSideMenuTab = 'structure') <span class="ln">67</span> { <span class="error"><span class="ln error-ln">68</span> $this->actionEdit($qid); </span><span class="ln">69</span> } <span class="ln">70</span> <span class="ln">71</span> /** <span class="ln">72</span> * Show form to create new question. <span class="ln">73</span> * </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #4 </td> <td class="content"> <div class="trace-file"> unknown(0): <strong>QuestionAdministrationController</strong>-><strong>actionView</strong>("436344", "387", "5626", "structure") </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> /mnt/data/shnoulle/nginx/www/master/framework/web/actions/CAction.php(109): <strong>ReflectionMethod</strong>-><strong>invokeArgs</strong>(QuestionAdministrationController, array("436344", "387", "5626", "structure")) </div> <div class="code"><pre><span class="ln">104</span> elseif($param->isDefaultValueAvailable()) <span class="ln">105</span> $ps[]=$param->getDefaultValue(); <span class="ln">106</span> else <span class="ln">107</span> return false; <span class="ln">108</span> } <span class="error"><span class="ln error-ln">109</span> $method->invokeArgs($object,$ps); </span><span class="ln">110</span> return true; <span class="ln">111</span> } <span class="ln">112</span> } </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #6 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/master/framework/web/actions/CInlineAction.php(47): <strong>CAction</strong>-><strong>runWithParamsInternal</strong>(QuestionAdministrationController, ReflectionMethod, array("surveyid" => "436344", "gid" => "387", "qid" => "5626")) </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"> #7 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): <strong>CInlineAction</strong>-><strong>runWithParams</strong>(array("surveyid" => "436344", "gid" => "387", "qid" => "5626")) </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"> #8 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): <strong>CController</strong>-><strong>runAction</strong>(CInlineAction) </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"> #9 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): <strong>CController</strong>-><strong>runActionWithFilters</strong>(CInlineAction, 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 app collapsed"> <td class="number"> #10 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> /mnt/data/shnoulle/nginx/www/master/application/controllers/LSBaseController.php(160): <strong>CController</strong>-><strong>run</strong>("view") </div> <div class="code"><pre><span class="ln">155</span> $this->redirect(array('/admin/authentication/sa/login')); <span class="ln">156</span> } <span class="ln">157</span> } <span class="ln">158</span> } <span class="ln">159</span> <span class="error"><span class="ln error-ln">160</span> parent::run($action); </span><span class="ln">161</span> } <span class="ln">162</span> <span class="ln">163</span> /** <span class="ln">164</span> * Load and set session vars <span class="ln">165</span> * </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> /mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282): <strong>LSBaseController</strong>-><strong>run</strong>("view") </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> /mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-><strong>runController</strong>("questionAdministration/view") </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> /mnt/data/shnoulle/nginx/www/master/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> /mnt/data/shnoulle/nginx/www/master/index.php(182): <strong>CApplication</strong>-><strong>run</strong>() </div> <div class="code"><pre><span class="ln">177</span> require_once APPPATH . 'core/LSYii_Application' . EXT; <span class="ln">178</span> <span class="ln">179</span> $config = require_once(APPPATH . 'config/internal' . EXT); <span class="ln">180</span> <span class="ln">181</span> Yii::$enableIncludePath = false; <span class="error"><span class="ln error-ln">182</span> Yii::createApplication('LSYii_Application', $config)->run(); </span><span class="ln">183</span> <span class="ln">184</span> /* End of file index.php */ <span class="ln">185</span> /* Location: ./index.php */ </pre></div> </td> </tr> </tbody></table> </div> <div class="version"> 2021-02-03 14:46:51 nginx/1.18.0 <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.22-dev </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%20warning_fichiers/api.js"></script></html> |
|
With debug=0 : preview question is OK Social Value Orientation still shown in Question edit With debug = 2 : preview question broke : mean public survey broke. PHP warning-3.html (24,471 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 warning</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 warning</h1> <p class="message"> file_get_contents(/mnt/data/shnoulle/nginx/www/master/upload/themes/question/Social-Value-Orientation/survey/questions/answer/listradio/config.xml): failed to open stream: No such file or directory </p> <div class="source"> <p class="file">/mnt/data/shnoulle/nginx/www/master/application/models/QuestionTheme.php(812)</p> <div class="code"><pre><span class="ln">800</span> } <span class="ln">801</span> <span class="ln">802</span> if ($name == 'core') { <span class="ln">803</span> $questionTheme = self::model()->findByAttributes([], 'question_type=:question_type AND extends=:extends', ['question_type' => $type, 'extends' => '']); <span class="ln">804</span> } else { <span class="ln">805</span> $questionTheme = self::model()->findByAttributes([], 'name=:name AND question_type=:question_type', ['name' => $name, 'question_type' => $type]); <span class="ln">806</span> } <span class="ln">807</span> <span class="ln">808</span> $answerColumnDefinition = ''; <span class="ln">809</span> if (isset($questionTheme['xml_path'])) { <span class="ln">810</span> $bOldEntityLoaderState = libxml_disable_entity_loader(true); <span class="ln">811</span> <span class="error"><span class="ln error-ln">812</span> $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $questionTheme['xml_path'] . DIRECTORY_SEPARATOR . 'config.xml'); // @see: Now that entity loader is disabled, we can't use simplexml_load_file; so we must read the file with file_get_contents and convert it as a string </span><span class="ln">813</span> $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); <span class="ln">814</span> if (isset($oQuestionConfig->metadata->answercolumndefinition)) { <span class="ln">815</span> // TODO: Check json_last_error. <span class="ln">816</span> $answerColumnDefinition = json_decode(json_encode($oQuestionConfig->metadata->answercolumndefinition), true)[0]; <span class="ln">817</span> } <span class="ln">818</span> <span class="ln">819</span> libxml_disable_entity_loader($bOldEntityLoaderState); <span class="ln">820</span> } <span class="ln">821</span> <span class="ln">822</span> $cacheMemo[$cacheKey] = $answerColumnDefinition; <span class="ln">823</span> return $answerColumnDefinition; <span class="ln">824</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> /mnt/data/shnoulle/nginx/www/master/application/models/QuestionTheme.php(812): <strong>file_get_contents</strong>("/mnt/data/shnoulle/nginx/www/master/upload/themes/question/Socia...") </div> <div class="code"><pre><span class="ln">807</span> <span class="ln">808</span> $answerColumnDefinition = ''; <span class="ln">809</span> if (isset($questionTheme['xml_path'])) { <span class="ln">810</span> $bOldEntityLoaderState = libxml_disable_entity_loader(true); <span class="ln">811</span> <span class="error"><span class="ln error-ln">812</span> $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $questionTheme['xml_path'] . DIRECTORY_SEPARATOR . 'config.xml'); // @see: Now that entity loader is disabled, we can't use simplexml_load_file; so we must read the file with file_get_contents and convert it as a string </span><span class="ln">813</span> $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); <span class="ln">814</span> if (isset($oQuestionConfig->metadata->answercolumndefinition)) { <span class="ln">815</span> // TODO: Check json_last_error. <span class="ln">816</span> $answerColumnDefinition = json_decode(json_encode($oQuestionConfig->metadata->answercolumndefinition), true)[0]; <span class="ln">817</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> /mnt/data/shnoulle/nginx/www/master/application/helpers/common_helper.php(1471): <strong>QuestionTheme</strong>::<strong>getAnswerColumnDefinition</strong>("Social-Value-Orientation", "L") </div> <div class="code"><pre><span class="ln">1466</span> $conditions = 'N'; <span class="ln">1467</span> $usedinconditions = 'N'; <span class="ln">1468</span> <span class="ln">1469</span> // Check if answertable has custom setting for current question <span class="ln">1470</span> if (isset($arow['attribute']) && isset($arow['type']) && $arow['attribute'] == 'question_template') { <span class="error"><span class="ln error-ln">1471</span> $answerColumnDefinition = QuestionTheme::getAnswerColumnDefinition($arow['value'], $arow['type']); </span><span class="ln">1472</span> } <span class="ln">1473</span> <span class="ln">1474</span> // Field identifier <span class="ln">1475</span> // GXQXSXA <span class="ln">1476</span> // G=Group Q=Question S=Subquestion A=Answer Option </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> /mnt/data/shnoulle/nginx/www/master/application/helpers/frontend_helper.php(693): <strong>createFieldMap</strong>(Survey, "full", true, false, ...) </div> <div class="code"><pre><span class="ln">688</span> <span class="ln">689</span> if ($thissurvey['anonymized'] == "N") { <span class="ln">690</span> $_SESSION['survey_' . $surveyid]['insertarray'][] = "token"; <span class="ln">691</span> } <span class="ln">692</span> <span class="error"><span class="ln error-ln">693</span> $fieldmap = $_SESSION['survey_' . $surveyid]['fieldmap'] = createFieldMap($survey, 'full', true, false, $_SESSION['survey_' . $surveyid]['s_lang']); </span><span class="ln">694</span> <span class="ln">695</span> // first call to initFieldArray <span class="ln">696</span> initFieldArray($surveyid, $fieldmap); <span class="ln">697</span> <span class="ln">698</span> // Prefill questions/answers from command line params </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> /mnt/data/shnoulle/nginx/www/master/application/helpers/SurveyRuntimeHelper.php(1711): <strong>buildsurveysession</strong>("436344", true) </div> <div class="code"><pre><span class="ln">1706</span> } <span class="ln">1707</span> <span class="ln">1708</span> private function setPreview() <span class="ln">1709</span> { <span class="ln">1710</span> $this->sSurveyMode = ($this->previewgrp) ? 'group' : 'question'; // Can be great to have a survey here … <span class="error"><span class="ln error-ln">1711</span> buildsurveysession($this->iSurveyid, true); // Preview part disable SurveyURLParameter , why ? Work without </span><span class="ln">1712</span> <span class="ln">1713</span> /* Set steps for PHP notice */ <span class="ln">1714</span> $_SESSION[$this->LEMsessid]['prevstep'] = 2; <span class="ln">1715</span> $_SESSION[$this->LEMsessid]['maxstep'] = 0; <span class="ln">1716</span> $_SESSION[$this->LEMsessid]['step'] = 0; </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> /mnt/data/shnoulle/nginx/www/master/application/helpers/SurveyRuntimeHelper.php(215): <strong>SurveyRuntimeHelper</strong>-><strong>setPreview</strong>() </div> <div class="code"><pre><span class="ln">210</span> $this->saveAllIfNeeded(); <span class="ln">211</span> $this->saveSubmitIfNeeded(); <span class="ln">212</span> // TODO: move somewhere else <span class="ln">213</span> $this->setNotAnsweredAndNotValidated(); <span class="ln">214</span> } else { <span class="error"><span class="ln error-ln">215</span> $this->setPreview(); </span><span class="ln">216</span> } <span class="ln">217</span> $this->moveSubmitIfNeeded(); <span class="ln">218</span> $this->setGroup(); <span class="ln">219</span> $this->fixMaxStep(); <span class="ln">220</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> /mnt/data/shnoulle/nginx/www/master/application/controllers/survey/index.php(604): <strong>SurveyRuntimeHelper</strong>-><strong>run</strong>("436344", array("surveyid" => "436344", "thissurvey" => array("htmlemail" => "Y", "format" => "G", "tokenencryptionoptions" => "", "template" => "vanilla", ...), "thisstep" => null, "tokensexist" => 0, ...)) </div> <div class="code"><pre><span class="ln">599</span> unset($redata); <span class="ln">600</span> $redata = compact(array_keys(get_defined_vars())); <span class="ln">601</span> Yii::import('application.helpers.SurveyRuntimeHelper'); <span class="ln">602</span> $tmp = new SurveyRuntimeHelper(); <span class="ln">603</span> // try { <span class="error"><span class="ln error-ln">604</span> $tmp->run($surveyid, $redata); </span><span class="ln">605</span> // } catch (WrongTemplateVersionException $ex) { <span class="ln">606</span> // echo $ex->getMessage(); <span class="ln">607</span> // } <span class="ln">608</span> } <span class="ln">609</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> /mnt/data/shnoulle/nginx/www/master/application/controllers/survey/index.php(26): <strong>index</strong>-><strong>action</strong>() </div> <div class="code"><pre><span class="ln">21</span> public $oTemplate; <span class="ln">22</span> <span class="ln">23</span> public function run() <span class="ln">24</span> { <span class="ln">25</span> useFirebug(); <span class="error"><span class="ln error-ln">26</span> $this->action(); </span><span class="ln">27</span> } <span class="ln">28</span> <span class="ln">29</span> public function action() <span class="ln">30</span> { <span class="ln">31</span> global $surveyid; </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> /mnt/data/shnoulle/nginx/www/master/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> /mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): <strong>CAction</strong>-><strong>runWithParams</strong>(array("action" => "previewquestion", "sid" => "436344", "gid" => "387", "qid" => "5626")) </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> /mnt/data/shnoulle/nginx/www/master/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> /mnt/data/shnoulle/nginx/www/master/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> /mnt/data/shnoulle/nginx/www/master/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> /mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-><strong>runController</strong>("survey/index/action/previewquestion/sid/436344/gid/387/qid/5626") </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> /mnt/data/shnoulle/nginx/www/master/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> /mnt/data/shnoulle/nginx/www/master/index.php(182): <strong>CApplication</strong>-><strong>run</strong>() </div> <div class="code"><pre><span class="ln">177</span> require_once APPPATH . 'core/LSYii_Application' . EXT; <span class="ln">178</span> <span class="ln">179</span> $config = require_once(APPPATH . 'config/internal' . EXT); <span class="ln">180</span> <span class="ln">181</span> Yii::$enableIncludePath = false; <span class="error"><span class="ln error-ln">182</span> Yii::createApplication('LSYii_Application', $config)->run(); </span><span class="ln">183</span> <span class="ln">184</span> /* End of file index.php */ <span class="ln">185</span> /* Location: ./index.php */ </pre></div> </td> </tr> </tbody></table> </div> <div class="version"> 2021-02-03 14:55:28 nginx/1.18.0 <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.22-dev </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%20warning_fichiers/api.js"></script></html> |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2020-10-30 16:31 | DenisChenu | New Issue | |
2020-10-30 16:31 | DenisChenu | File Added: PHP warning.html | |
2020-10-30 16:33 | DenisChenu | Note Added: 60472 | |
2020-12-30 17:48 | cdorin | Priority | none => normal |
2020-12-30 17:48 | cdorin | Status | new => confirmed |
2020-12-30 17:48 | cdorin | Sync to Zoho Project | => |Yes| |
2021-02-03 15:22 | cdorin | Note Added: 61895 | |
2021-02-03 15:49 | DenisChenu | Note Added: 61897 | |
2021-02-03 15:49 | DenisChenu | File Added: Social-Value-Orientation.zip | |
2021-02-03 15:49 | DenisChenu | File Added: PHP warning-2.html | |
2021-02-03 15:56 | DenisChenu | Note Added: 61898 | |
2021-02-03 15:56 | DenisChenu | File Added: PHP warning-3.html | |
2021-02-03 15:56 | DenisChenu | File Added: Capture d’écran du 2021-02-03 15-54-11.png | |
2021-02-03 15:56 | DenisChenu | File Added: Capture d’écran du 2021-02-03 15-55-15.png |