View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 09938 | Bug reports | ComfortUpdate | public | 2015-10-02 10:10 | 2015-11-10 12:28 |
| Reporter | DenisChenu | Assigned To | |||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 2.06+ | ||||
| Fixed in Version | 2.06+ | ||||
| Summary | 09938: build 150911 + debug at 2 : unable to access to admin | ||||
| Description | With a build 150911 and debug at 2 : PHP Warning | ||||
| Steps To Reproduce | Have a build 150911 , set debug at 2 and try to go to admin | ||||
| Additional Information | You don' set debug at 2 when put a new feature ????? | ||||
| Tags | No tags attached. | ||||
| Attached Files | PHP warning.html (15,514 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">
reset() expects parameter 1 to be array, boolean given </p>
<div class="source">
<p class="file">/home/sondages.pro/htdocs/clients/complets/obc/limesurvey/application/helpers/common_helper.php(5254)</p>
<div class="code"><pre><span class="ln">5242</span> switch ($sUpdateNotificationType)
<span class="ln">5243</span> {
<span class="ln">5244</span> case 'stable':
<span class="ln">5245</span> // Only show update if in stable (master) branch
<span class="ln">5246</span> if (isset($aUpdateVersions['master'])) {
<span class="ln">5247</span> $aUpdateVersion=$aUpdateVersions['master'];
<span class="ln">5248</span> $aUpdateVersions=array_intersect_key($aUpdateVersions,array('master'=>'1'));
<span class="ln">5249</span> }
<span class="ln">5250</span> break;
<span class="ln">5251</span>
<span class="ln">5252</span> case 'both':
<span class="ln">5253</span> // Show first available update
<span class="error"><span class="ln error-ln">5254</span> $aUpdateVersion=reset($aUpdateVersions);
</span><span class="ln">5255</span> break;
<span class="ln">5256</span>
<span class="ln">5257</span> default:
<span class="ln">5258</span> // Never show a notification
<span class="ln">5259</span> $aUpdateVersions=array();
<span class="ln">5260</span> break;
<span class="ln">5261</span> }
<span class="ln">5262</span> }
<span class="ln">5263</span>
<span class="ln">5264</span> setGlobalSetting('updateversions',json_encode($aUpdateVersions));
<span class="ln">5265</span>
<span class="ln">5266</span>
</pre></div> </div>
<div class="traces">
<h2>Stack Trace</h2>
<table style="width:100%;">
<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/sondages.pro/htdocs/clients/complets/obc/limesurvey/application/helpers/common_helper.php(5254): <strong>reset</strong>(false) </div>
<div class="code"><pre><span class="ln">5249</span> }
<span class="ln">5250</span> break;
<span class="ln">5251</span>
<span class="ln">5252</span> case 'both':
<span class="ln">5253</span> // Show first available update
<span class="error"><span class="ln error-ln">5254</span> $aUpdateVersion=reset($aUpdateVersions);
</span><span class="ln">5255</span> break;
<span class="ln">5256</span>
<span class="ln">5257</span> default:
<span class="ln">5258</span> // Never show a notification
<span class="ln">5259</span> $aUpdateVersions=array();
</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/sondages.pro/htdocs/clients/complets/obc/limesurvey/application/controllers/AdminController.php(35): <strong>updateCheck</strong>() </div>
<div class="code"><pre><span class="ln">30</span> $sUpdateLastCheck = getGlobalSetting('updatelastcheck');
<span class="ln">31</span>
<span class="ln">32</span> $this->_sessioncontrol();
<span class="ln">33</span>
<span class="ln">34</span> if (Yii::app()->getConfig('buildnumber') != "" && Yii::app()->getConfig('updatecheckperiod') > 0 && $sUpdateLastCheck < dateShift(date("Y-m-d H:i:s"), "Y-m-d H:i:s", "-". Yii::app()->getConfig('updatecheckperiod')." days"))
<span class="error"><span class="ln error-ln">35</span> updateCheck();
</span><span class="ln">36</span>
<span class="ln">37</span> //unset(Yii::app()->session['FileManagerContext']);
<span class="ln">38</span> App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . "admin_core.js");
<span class="ln">39</span> $this->user_id = Yii::app()->user->getId();
<span class="ln">40</span> if (!Yii::app()->getConfig("surveyid")) {Yii::app()->setConfig("surveyid", returnGlobal('sid'));} //SurveyID
</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/sondages.pro/htdocs/clients/complets/obc/limesurvey/application/core/LSYii_Controller.php(41): <strong>AdminController</strong>-><strong>_init</strong>() </div>
<div class="code"><pre><span class="ln">36</span> $this->loadLibrary('LS.LS');
<span class="ln">37</span> $this->loadHelper('globalsettings');
<span class="ln">38</span> $this->loadHelper('common');
<span class="ln">39</span> $this->loadHelper('expressions.em_manager');
<span class="ln">40</span> $this->loadHelper('replacements');
<span class="error"><span class="ln error-ln">41</span> $this->_init();
</span><span class="ln">42</span> }
<span class="ln">43</span>
<span class="ln">44</span> /**
<span class="ln">45</span> * Check that installation was already done by looking for config.php
<span class="ln">46</span> * Will redirect to the installer script if not exists.
</pre></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>
/home/sondages.pro/htdocs/clients/complets/obc/limesurvey/framework/web/CWebApplication.php(359): <strong>LSYii_Controller</strong>-><strong>__construct</strong>("admin", null) </div>
<div class="code"><pre><span class="ln">354</span> require($classFile);
<span class="ln">355</span> if(class_exists($className,false) && is_subclass_of($className,'CController'))
<span class="ln">356</span> {
<span class="ln">357</span> $id[0]=strtolower($id[0]);
<span class="ln">358</span> return array(
<span class="error"><span class="ln error-ln">359</span> new $className($controllerID.$id,$owner===$this?null:$owner),
</span><span class="ln">360</span> $this->parseActionParams($route),
<span class="ln">361</span> );
<span class="ln">362</span> }
<span class="ln">363</span> return null;
<span class="ln">364</span> }
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#4 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/home/sondages.pro/htdocs/clients/complets/obc/limesurvey/framework/web/CWebApplication.php(276): <strong>CWebApplication</strong>-><strong>createController</strong>("admin") </div>
<div class="code"><pre><span class="ln">271</span> * @param string $route the route of the current request. See {@link createController} for more details.
<span class="ln">272</span> * @throws CHttpException if the controller could not be created.
<span class="ln">273</span> */
<span class="ln">274</span> public function runController($route)
<span class="ln">275</span> {
<span class="error"><span class="ln error-ln">276</span> if(($ca=$this->createController($route))!==null)
</span><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();
</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/sondages.pro/htdocs/clients/complets/obc/limesurvey/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-><strong>runController</strong>("admin") </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">
#6 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/home/sondages.pro/htdocs/clients/complets/obc/limesurvey/framework/base/CApplication.php(184): <strong>CWebApplication</strong>-><strong>processRequest</strong>() </div>
<div class="code"><pre><span class="ln">179</span> public function run()
<span class="ln">180</span> {
<span class="ln">181</span> if($this->hasEventHandler('onBeginRequest'))
<span class="ln">182</span> $this->onBeginRequest(new CEvent($this));
<span class="ln">183</span> register_shutdown_function(array($this,'end'),0,false);
<span class="error"><span class="ln error-ln">184</span> $this->processRequest();
</span><span class="ln">185</span> if($this->hasEventHandler('onEndRequest'))
<span class="ln">186</span> $this->onEndRequest(new CEvent($this));
<span class="ln">187</span> }
<span class="ln">188</span>
<span class="ln">189</span> /**
</pre></div> </td>
</tr>
<tr class="trace app collapsed">
<td class="number">
#7 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/home/sondages.pro/htdocs/clients/complets/obc/limesurvey/index.php(211): <strong>CApplication</strong>-><strong>run</strong>() </div>
<div class="code"><pre><span class="ln">206</span> die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath));
<span class="ln">207</span> }
<span class="ln">208</span> }
<span class="ln">209</span>
<span class="ln">210</span> Yii::$enableIncludePath = false;
<span class="error"><span class="ln error-ln">211</span> Yii::createApplication('LSYii_Application', $config)->run();
</span><span class="ln">212</span>
<span class="ln">213</span> /* End of file index.php */
<span class="ln">214</span> /* Location: ./index.php */
</pre></div> </td>
</tr>
</table>
</div>
<div class="version">
2015-10-02 10:02:37 Apache/2.2.22 (Debian) <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.15 </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>
</body>
</html>
| ||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | 150911 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | firefox | ||||
| Database type & version | not relevant | ||||
| Server OS (if known) | not relevant | ||||
| Webserver software & version (if known) | not relevant | ||||
| PHP Version | not relevant | ||||
|
I can neither reproduce this with a fresh installation nor with an existing one. Must be something in your database, then. |
|
|
Please, update to last version. |
|
|
OK : updated to 0930, set manually version to 150911 to have a 'alert' : no issue. |
|
|
Seems only to occur if the global setting for 'updatenotification' is set to 'both', even if we do not currently support it. |
|
|
PS: set manually to 150911 : no issue Code are not updated ? https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/common_helper.php#L5252 |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2015-10-02 10:10 | DenisChenu | New Issue | |
| 2015-10-02 10:10 | DenisChenu | Status | new => assigned |
| 2015-10-02 10:10 | DenisChenu | Assigned To | => c_schmitz |
| 2015-10-02 10:10 | DenisChenu | File Added: PHP warning.html | |
| 2015-10-02 10:32 | c_schmitz | Note Added: 33293 | |
| 2015-10-02 10:32 | c_schmitz | Assigned To | c_schmitz => LouisGac |
| 2015-10-02 10:38 |
|
Note Added: 33294 | |
| 2015-10-02 10:48 | DenisChenu | Note Added: 33295 | |
| 2015-10-02 10:48 | DenisChenu | Status | assigned => resolved |
| 2015-10-02 10:48 | DenisChenu | Fixed in Version | => 2.06+ |
| 2015-10-02 10:48 | DenisChenu | Resolution | open => fixed |
| 2015-10-02 10:54 | c_schmitz | Note Added: 33296 | |
| 2015-10-02 11:25 | DenisChenu | Note Added: 33297 | |
| 2015-10-02 11:26 | DenisChenu | Note Edited: 33297 | |
| 2015-11-10 12:28 | c_schmitz | Status | resolved => closed |