Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
14893Development Survey Designpublic2021-10-28 11:40
ReporterDenisChenu Assigned Togalads  
PrioritynoneSeveritypartial_block 
Status resolvedResolutionfixed 
Product Version4.0.0dev 
Summary14893: Core attribute XML need optionnal value : mus allow empty value
DescriptionSee https://github.com/LimeSurvey/LimeSurvey/blob/35b080c32d871938c187410923432f7dccda3859/application/views/survey/questions/answer/5pointchoice/config.xml#L56-L59

Delete equation : throw error

All this attribute must be optionnal
Additional Information[getQuestionAttributesFromXml](https://github.com/LimeSurvey/LimeSurvey/blob/35b080c32d871938c187410923432f7dccda3859/application/models/QuestionAttribute.php#L440) add the default value + remove comment
BUT
[getQuestionThemeAttributeValues](https://github.com/LimeSurvey/LimeSurvey/blob/35b080c32d871938c187410923432f7dccda3859/application/helpers/questionHelper.php#L1621) don't use it
TagsNo tags attached.

Relationships

related to 14723 assignedcdorin Development  Global attribute or question dependance 
related to 15224 closedp_teichmann Bug reports newQuestionAttributes deprecated : need a replacer 

Activities

galads

galads

2021-10-28 10:38

administrator   ~66990

Please update to the latest version and check if the bug can still be reproduced. Thank you.
DenisChenu

DenisChenu

2021-10-28 11:08

developer   ~66994

Hard to check currently, with debug = 2
with zip files, start to upload : PHP Notice
PHP notice.html (29,651 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">
		Array to string conversion	</p>

	<div class="source">
		<p class="file">/data/webdev/master/framework/db/schema/CDbColumnSchema.php(146)</p>
		<div class="code"><pre><span class="ln">134</span>      * Converts the input value to the type that this column is of.
<span class="ln">135</span>      * @param mixed $value input value
<span class="ln">136</span>      * @return mixed converted value
<span class="ln">137</span>      */
<span class="ln">138</span>     public function typecast($value)
<span class="ln">139</span>     {
<span class="ln">140</span>         if(gettype($value)===$this-&gt;type || $value===null || $value instanceof CDbExpression)
<span class="ln">141</span>             return $value;
<span class="ln">142</span>         if($value==='' &amp;&amp; $this-&gt;allowNull)
<span class="ln">143</span>             return $this-&gt;type==='string' ? '' : null;
<span class="ln">144</span>         switch($this-&gt;type)
<span class="ln">145</span>         {
<span class="error"><span class="ln error-ln">146</span>             case 'string': return (string)$value;
</span><span class="ln">147</span>             case 'integer': return (integer)$value;
<span class="ln">148</span>             case 'boolean': return (boolean)$value;
<span class="ln">149</span>             case 'double':
<span class="ln">150</span>             default: return $value;
<span class="ln">151</span>         }
<span class="ln">152</span>     }
<span class="ln">153</span> }
</pre></div>	</div>

	<div class="traces">
		<h2>Stack Trace</h2>
				<table style="width:100%;">
						<tbody><tr class="trace core collapsed">
			<td class="number">
				#0			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/data/webdev/master/framework/db/schema/CDbCommandBuilder.php(229): <strong>CDbColumnSchema</strong>-&gt;<strong>typecast</strong>(array())				</div>

				<div class="code"><pre><span class="ln">224</span>                         $values[$n]=$v;
<span class="ln">225</span>                 }
<span class="ln">226</span>                 else
<span class="ln">227</span>                 {
<span class="ln">228</span>                     $placeholders[]=self::PARAM_PREFIX.$i;
<span class="error"><span class="ln error-ln">229</span>                     $values[self::PARAM_PREFIX.$i]=$column-&gt;typecast($value);
</span><span class="ln">230</span>                     $i++;
<span class="ln">231</span>                 }
<span class="ln">232</span>             }
<span class="ln">233</span>         }
<span class="ln">234</span>         if($fields===array())
</pre></div>			</td>
		</tr>
						<tr class="trace core expanded">
			<td class="number">
				#1			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/data/webdev/master/framework/db/ar/CActiveRecord.php(1082): <strong>CDbCommandBuilder</strong>-&gt;<strong>createInsertCommand</strong>(CMysqlTableSchema,
 array("name" =&gt; "arrayTextArea", "visible" =&gt; "Y", "xml_path" 
=&gt; 
"upload/themes/question/arrayTextArea/survey/questions/answer/arr...", 
"image_path" =&gt; 
"/upload/themes/question/arrayTextArea/survey/questions/answer/ar...", 
...))				</div>

				<div class="code"><pre><span class="ln">1077</span>         if($this-&gt;beforeSave())
<span class="ln">1078</span>         {
<span class="ln">1079</span>             Yii::trace(get_class($this).'.insert()','system.db.ar.CActiveRecord');
<span class="ln">1080</span>             $builder=$this-&gt;getCommandBuilder();
<span class="ln">1081</span>             $table=$this-&gt;getTableSchema();
<span class="error"><span class="ln error-ln">1082</span>             $command=$builder-&gt;createInsertCommand($table,$this-&gt;getAttributes($attributes));
</span><span class="ln">1083</span>             if($command-&gt;execute())
<span class="ln">1084</span>             {
<span class="ln">1085</span>                 $primaryKey=$table-&gt;primaryKey;
<span class="ln">1086</span>                 if($table-&gt;sequenceName!==null)
<span class="ln">1087</span>                 {
</pre></div>			</td>
		</tr>
						<tr class="trace core expanded">
			<td class="number">
				#2			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/data/webdev/master/framework/db/ar/CActiveRecord.php(811): <strong>CActiveRecord</strong>-&gt;<strong>insert</strong>(null)				</div>

				<div class="code"><pre><span class="ln">806</span>      * @return boolean whether the saving succeeds
<span class="ln">807</span>      */
<span class="ln">808</span>     public function save($runValidation=true,$attributes=null)
<span class="ln">809</span>     {
<span class="ln">810</span>         if(!$runValidation || $this-&gt;validate($attributes))
<span class="error"><span class="ln error-ln">811</span>             return $this-&gt;getIsNewRecord() ? $this-&gt;insert($attributes) : $this-&gt;update($attributes);
</span><span class="ln">812</span>         else
<span class="ln">813</span>             return false;
<span class="ln">814</span>     }
<span class="ln">815</span> 
<span class="ln">816</span>     /**
</pre></div>			</td>
		</tr>
						<tr class="trace app expanded">
			<td class="number">
				#3			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/data/webdev/master/application/models/QuestionTheme.php(284): <strong>CActiveRecord</strong>-&gt;<strong>save</strong>()				</div>

				<div class="code"><pre><span class="ln">279</span>         /** @var array&lt;string, mixed&gt; */
<span class="ln">280</span>         // todo proper error handling should be done before in getQuestionMetaData via validate()
<span class="ln">281</span>         $aMetaDataArray = self::getMetaDataArray($aQuestionMetaData);
<span class="ln">282</span> 
<span class="ln">283</span>         $this-&gt;setAttributes($aMetaDataArray, false);
<span class="error"><span class="ln error-ln">284</span>         if ($this-&gt;save()) {
</span><span class="ln">285</span>             return $aQuestionMetaData['title'];
<span class="ln">286</span>         } else {
<span class="ln">287</span>             throw new Exception('Could not save question theme metadata: ' . json_encode($this-&gt;errors));
<span class="ln">288</span>         }
<span class="ln">289</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>
										&nbsp;/data/webdev/master/application/libraries/ExtensionInstaller/QuestionThemeInstaller.php(42): <strong>QuestionTheme</strong>-&gt;<strong>importManifest</strong>("upload/themes/question/arrayTextArea/survey/questions/answer/arr...", false, true)				</div>

				<div class="code"><pre><span class="ln">37</span>             $questionTheme = new QuestionTheme();
<span class="ln">38</span>             $xmlFolder = $this-&gt;getXmlFolder($destdir);
<span class="ln">39</span>             if (empty($xmlFolder)) {
<span class="ln">40</span>                 throw new Exception('Found no xml folder for question theme');
<span class="ln">41</span>             }
<span class="error"><span class="ln error-ln">42</span>             $questionTheme-&gt;importManifest($xmlFolder, false, true);
</span><span class="ln">43</span>             $this-&gt;fileFetcher-&gt;abort();
<span class="ln">44</span>         } else {
<span class="ln">45</span>             throw new Exception('Could not move files.');
<span class="ln">46</span>         }
<span class="ln">47</span> 
</pre></div>			</td>
		</tr>
						<tr class="trace app expanded">
			<td class="number">
				#5			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/data/webdev/master/application/controllers/admin/themes.php(313): <strong>LimeSurvey\ExtensionInstaller\QuestionThemeInstaller</strong>-&gt;<strong>install</strong>()				</div>

				<div class="code"><pre><span class="ln">308</span>                     throw new Exception(gT('The question theme is not compatible with your version of LimeSurvey.'));
<span class="ln">309</span>                 }
<span class="ln">310</span>                 $questionTheme = QuestionTheme::model()-&gt;findByAttributes(['name' =&gt; $config-&gt;getName()]);
<span class="ln">311</span>                 try {
<span class="ln">312</span>                     if (empty($questionTheme)) {
<span class="error"><span class="ln error-ln">313</span>                         $installer-&gt;install();
</span><span class="ln">314</span>                     } else {
<span class="ln">315</span>                         $installer-&gt;update();
<span class="ln">316</span>                     }
<span class="ln">317</span>                     // TODO: If you want to do nice file upload summary, you need to define a
<span class="ln">318</span>                     // FileFetcherResult and return it from install().
</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>
										&nbsp;/data/webdev/master/application/controllers/admin/themes.php(186): <strong>themes</strong>-&gt;<strong>uploadTemplate</strong>()				</div>

				<div class="code"><pre><span class="ln">181</span>             // NB: lid = label id
<span class="ln">182</span>             $lid = returnGlobal('lid');
<span class="ln">183</span>             if ($action == 'templateuploadimagefile') {
<span class="ln">184</span>                 return $this-&gt;uploadTemplateImageFile($sTemplateName);
<span class="ln">185</span>             } elseif ($action == 'templateupload') {
<span class="error"><span class="ln error-ln">186</span>                 $aData = $this-&gt;uploadTemplate();
</span><span class="ln">187</span>                 $aViewUrls = 'importuploaded_view';
<span class="ln">188</span>             } else {
<span class="ln">189</span>                 $aViewUrls = 'importform_view';
<span class="ln">190</span>                 $aData = array('lid' =&gt; $lid);
<span class="ln">191</span>             }
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#7			</td>
			<td class="content">
				<div class="trace-file">
										&nbsp;unknown(0): <strong>themes</strong>-&gt;<strong>upload</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>
										&nbsp;/data/webdev/master/framework/web/actions/CAction.php(115): <strong>ReflectionMethod</strong>-&gt;<strong>invokeArgs</strong>(themes, array())				</div>

				<div class="code"><pre><span class="ln">110</span>             elseif($param-&gt;isDefaultValueAvailable())
<span class="ln">111</span>                 $ps[]=$param-&gt;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-&gt;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 app collapsed">
			<td class="number">
				#9			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/data/webdev/master/application/core/Survey_Common_Action.php(86): <strong>CAction</strong>-&gt;<strong>runWithParamsInternal</strong>(themes, ReflectionMethod, array("r" =&gt; "admin/themes/sa/upload", "sa" =&gt; "upload", "sAction" =&gt; "templateupload"))				</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 app collapsed">
			<td class="number">
				#10			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/data/webdev/master/application/controllers/admin/themes.php(32): <strong>Survey_Common_Action</strong>-&gt;<strong>runWithParams</strong>(array("r" =&gt; "admin/themes/sa/upload", "sa" =&gt; "upload", "sAction" =&gt; "templateupload"))				</div>

				<div class="code"><pre><span class="ln">27</span> 
<span class="ln">28</span>     public function runWithParams($params)
<span class="ln">29</span>     {
<span class="ln">30</span>         $sTemplateName = Yii::app()-&gt;request-&gt;getPost('templatename', '');
<span class="ln">31</span>         if (Permission::model()-&gt;hasGlobalPermission('templates', 'read') || Permission::model()-&gt;hasTemplatePermission($sTemplateName)) {
<span class="error"><span class="ln error-ln">32</span>             parent::runWithParams($params);
</span><span class="ln">33</span>         } else {
<span class="ln">34</span>             Yii::app()-&gt;setFlashMessage(gT("We are sorry but you don't have permissions to do this."), 'error');
<span class="ln">35</span>             $this-&gt;getController()-&gt;redirect(array("themeOptions/index"));
<span class="ln">36</span>         }
<span class="ln">37</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>
										&nbsp;/data/webdev/master/framework/web/CController.php(308): <strong>themes</strong>-&gt;<strong>runWithParams</strong>(array("r" =&gt; "admin/themes/sa/upload", "sa" =&gt; "upload"))				</div>

				<div class="code"><pre><span class="ln">303</span>     {
<span class="ln">304</span>         $priorAction=$this-&gt;_action;
<span class="ln">305</span>         $this-&gt;_action=$action;
<span class="ln">306</span>         if($this-&gt;beforeAction($action))
<span class="ln">307</span>         {
<span class="error"><span class="ln error-ln">308</span>             if($action-&gt;runWithParams($this-&gt;getActionParams())===false)
</span><span class="ln">309</span>                 $this-&gt;invalidActionParams($action);
<span class="ln">310</span>             else
<span class="ln">311</span>                 $this-&gt;afterAction($action);
<span class="ln">312</span>         }
<span class="ln">313</span>         $this-&gt;_action=$priorAction;
</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>
										&nbsp;/data/webdev/master/framework/web/CController.php(286): <strong>CController</strong>-&gt;<strong>runAction</strong>(themes)				</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-&gt;runAction($action);
</span><span class="ln">287</span>         else
<span class="ln">288</span>         {
<span class="ln">289</span>             $priorAction=$this-&gt;_action;
<span class="ln">290</span>             $this-&gt;_action=$action;
<span class="ln">291</span>             CFilterChain::create($this,$action,$filters)-&gt;run();
</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>
										&nbsp;/data/webdev/master/framework/web/CController.php(265): <strong>CController</strong>-&gt;<strong>runActionWithFilters</strong>(themes, array())				</div>

				<div class="code"><pre><span class="ln">260</span>         {
<span class="ln">261</span>             if(($parent=$this-&gt;getModule())===null)
<span class="ln">262</span>                 $parent=Yii::app();
<span class="ln">263</span>             if($parent-&gt;beforeControllerAction($this,$action))
<span class="ln">264</span>             {
<span class="error"><span class="ln error-ln">265</span>                 $this-&gt;runActionWithFilters($action,$this-&gt;filters());
</span><span class="ln">266</span>                 $parent-&gt;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-&gt;missingAction($actionID);
</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>
										&nbsp;/data/webdev/master/application/controllers/AdminController.php(202): <strong>CController</strong>-&gt;<strong>run</strong>("themes")				</div>

				<div class="code"><pre><span class="ln">197</span>         }
<span class="ln">198</span> 
<span class="ln">199</span>         $this-&gt;runModuleController($action);
<span class="ln">200</span> 
<span class="ln">201</span> 
<span class="error"><span class="ln error-ln">202</span>         return parent::run($action);
</span><span class="ln">203</span>     }
<span class="ln">204</span> 
<span class="ln">205</span>     /**
<span class="ln">206</span>      * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers.
<span class="ln">207</span>      *
</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>
										&nbsp;/data/webdev/master/framework/web/CWebApplication.php(282): <strong>AdminController</strong>-&gt;<strong>run</strong>("themes")				</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-&gt;_controller;
<span class="ln">280</span>             $this-&gt;_controller=$controller;
<span class="ln">281</span>             $controller-&gt;init();
<span class="error"><span class="ln error-ln">282</span>             $controller-&gt;run($actionID);
</span><span class="ln">283</span>             $this-&gt;_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}'=&gt;$route===''?$this-&gt;defaultController:$route)));
</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>
										&nbsp;/data/webdev/master/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-&gt;<strong>runController</strong>("admin/themes/sa/upload")				</div>

				<div class="code"><pre><span class="ln">136</span>             foreach(array_splice($this-&gt;catchAllRequest,1) as $name=&gt;$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-&gt;getUrlManager()-&gt;parseUrl($this-&gt;getRequest());
<span class="error"><span class="ln error-ln">141</span>         $this-&gt;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">
				#17			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/data/webdev/master/framework/base/CApplication.php(185): <strong>CWebApplication</strong>-&gt;<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-&gt;hasEventHandler('onBeginRequest'))
<span class="ln">183</span>             $this-&gt;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-&gt;processRequest();
</span><span class="ln">186</span>         if($this-&gt;hasEventHandler('onEndRequest'))
<span class="ln">187</span>             $this-&gt;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">
				#18			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/data/webdev/master/index.php(192): <strong>CApplication</strong>-&gt;<strong>run</strong>()				</div>

				<div class="code"><pre><span class="ln">187</span> require_once APPPATH . 'core/LSYii_Application' . EXT;
<span class="ln">188</span> 
<span class="ln">189</span> $config = require_once(APPPATH . 'config/internal' . EXT);
<span class="ln">190</span> 
<span class="ln">191</span> Yii::$enableIncludePath = false;
<span class="error"><span class="ln error-ln">192</span> Yii::createApplication('LSYii_Application', $config)-&gt;run();
</span><span class="ln">193</span> 
<span class="ln">194</span> /* End of file index.php */
<span class="ln">195</span> /* Location: ./index.php */
</pre></div>			</td>
		</tr>
				</tbody></table>
	</div>

	<div class="version">
		2021-10-28 11:04:15 nginx/1.18.0 <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.24-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>




<table class="yiiLog" style="border-spacing:1px;font:11px Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;color:#666666;" width="100%" cellpadding="2">
	<tbody><tr>
		<th style="background:black;color:white;" colspan="5">
			Journal d'application
		</th>
	</tr>
	<tr style="background-color: #ccc;">
	    <th style="width:120px">Heure</th>
		<th>Niveau</th>
		<th>Categorie</th>
		<th>Message</th>
	</tr>
	<tr style="background:#FFC0CB">
		<td align="center">11:04:15.522433</td>
		<td>error</td>
		<td>php</td>
		<td><pre>Array to string conversion
(/data/webdev/master/framework/db/schema/CDbColumnSchema.php:146)
Stack trace:
#0 /data/webdev/master/framework/db/ar/CActiveRecord.php(811):
QuestionTheme-&gt;insert()
#1 /data/webdev/master/application/models/QuestionTheme.php(284):
QuestionTheme-&gt;save()
#2
/data/webdev/master/application/libraries/ExtensionInstaller/QuestionThemeInstaller.php(42):
QuestionTheme-&gt;importManifest()
#3 /data/webdev/master/application/controllers/admin/themes.php(313):
LimeSurvey\ExtensionInstaller\QuestionThemeInstaller-&gt;install()
#4 /data/webdev/master/application/controllers/admin/themes.php(186):
themes-&gt;uploadTemplate()
#5 unknown(0): themes-&gt;upload()
#6 /data/webdev/master/framework/web/actions/CAction.php(115):
ReflectionMethod-&gt;invokeArgs()
#7 /data/webdev/master/application/core/Survey_Common_Action.php(86):
themes-&gt;runWithParamsInternal()
#8 /data/webdev/master/application/controllers/admin/themes.php(32):
themes-&gt;runWithParams()
#9 /data/webdev/master/framework/web/CController.php(308):
themes-&gt;runWithParams()
#10 /data/webdev/master/framework/web/CController.php(286):
AdminController-&gt;runAction()
#11 /data/webdev/master/framework/web/CController.php(265):
AdminController-&gt;runActionWithFilters()
#12 /data/webdev/master/application/controllers/AdminController.php(202):
AdminController-&gt;run()
#13 /data/webdev/master/framework/web/CWebApplication.php(282):
AdminController-&gt;run()
#14 /data/webdev/master/framework/web/CWebApplication.php(141):
LSYii_Application-&gt;runController()
#15 /data/webdev/master/framework/base/CApplication.php(185):
LSYii_Application-&gt;processRequest()
#16 /data/webdev/master/index.php(192): LSYii_Application-&gt;run()
REQUEST_URI=/master/index.php?r=admin/themes/sa/upload</pre></td>
	</tr></tbody></table>
<!-- end of log messages --><div id="grammalecte_menu_main_button_shadow_host" style="width: 0px; height: 0px;"></div></body><script src="PHP%20notice_fichiers/api.js"></script></html>
<!-- start log messages -->
PHP notice.html (29,651 bytes)   
DenisChenu

DenisChenu

2021-10-28 11:16

developer   ~66995

Seems OK now
galads

galads

2021-10-28 11:40

administrator   ~66996

Thank you for confirming the issue is resolved.

Issue History

Date Modified Username Field Change
2019-05-11 17:31 DenisChenu New Issue
2019-05-11 17:31 DenisChenu Status new => assigned
2019-05-11 17:31 DenisChenu Assigned To => markusfluer
2019-10-22 15:01 DenisChenu Relationship added related to 14723
2020-01-15 16:04 DenisChenu Assigned To markusfluer => cdorin
2020-01-28 15:33 DenisChenu Relationship added related to 15224
2021-10-28 10:38 galads Note Added: 66990
2021-10-28 10:38 galads Status assigned => feedback
2021-10-28 11:08 DenisChenu Note Added: 66994
2021-10-28 11:08 DenisChenu File Added: PHP notice.html
2021-10-28 11:08 DenisChenu File Added: arraytext_display_rows.zip
2021-10-28 11:08 DenisChenu Status feedback => assigned
2021-10-28 11:16 DenisChenu Assigned To cdorin => galads
2021-10-28 11:16 DenisChenu Status assigned => resolved
2021-10-28 11:16 DenisChenu Resolution open => fixed
2021-10-28 11:16 DenisChenu Note Added: 66995
2021-10-28 11:40 galads Note Added: 66996