View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
18719Bug reportsTheme editorpublic2023-04-24 16:33
ReporterDenisChenu Assigned Top_teichmann  
PriorityhighSeverityblock 
Status closedResolutionfixed 
Product Version6.0.x 
Summary18719: 6.X incompatible with AdminTheme and broke
Description

If you have an 5.X adminTheme and update to last master : receive error about htdocs/upload/admintheme/SondagesPro/images/logo.svg

Steps To Reproduce

Steps to reproduce

Import SondagesPro.zip or another 5.X (and previous) admin theme in 5.X
Update to 6.X
Try to log

Expected result

Log in

Actual result

500 error

TagsNo tags attached.
Attached Files
CException.html (27,483 bytes)   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>CException</title>

<style type="text/css">
/*<![CDATA[*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
body{line-height:1;}
ol,ul{list-style:none;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:none;}
:focus{outline:0;}
ins{text-decoration:none;}
del{text-decoration:line-through;}
table{border-collapse:collapse;border-spacing:0;}

body {
	font: normal 9pt "Verdana";
	color: #000;
	background: #fff;
}

h1 {
	font: normal 18pt "Verdana";
	color: #f00;
	margin-bottom: .5em;
}

h2 {
	font: normal 14pt "Verdana";
	color: #800000;
	margin-bottom: .5em;
}

h3 {
	font: bold 11pt "Verdana";
}

pre {
	font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;
}

pre span.error {
	display: block;
	background: #fce3e3;
}

pre span.ln {
	color: #999;
	padding-right: 0.5em;
	border-right: 1px solid #ccc;
}

pre span.error-ln {
	font-weight: bold;
}

.container {
	margin: 1em 4em;
}

.version {
	color: gray;
	font-size: 8pt;
	border-top: 1px solid #aaa;
	padding-top: 1em;
	margin-bottom: 1em;
}

.message {
	color: #000;
	padding: 1em;
	font-size: 11pt;
	background: #f3f3f3;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	margin-bottom: 1em;
	line-height: 160%;
}

.source {
	margin-bottom: 1em;
}

.code pre {
	background-color: #ffe;
	margin: 0.5em 0;
	padding: 0.5em;
	line-height: 125%;
	border: 1px solid #eee;
}

.source .file {
	margin-bottom: 1em;
	font-weight: bold;
}

.traces {
	margin: 2em 0;
}

.trace {
	margin: 0.5em 0;
	padding: 0.5em;
}

.trace.app {
	border: 1px dashed #c00;
}

.trace .number {
	text-align: right;
	width: 2em;
	padding: 0.5em;
}

.trace .content {
	padding: 0.5em;
}

.trace .plus,
.trace .minus {
	display:inline;
	vertical-align:middle;
	text-align:center;
	border:1px solid #000;
	color:#000;
	font-size:10px;
	line-height:10px;
	margin:0;
	padding:0 1px;
	width:10px;
	height:10px;
}

.trace.collapsed .minus,
.trace.expanded .plus,
.trace.collapsed pre {
	display: none;
}

.trace-file {
	cursor: pointer;
	padding: 0.2em;
}

.trace-file:hover {
	background: #f0ffff;
}
/*]]>*/
</style>
</head>

<body>
<div class="container">
	<h1>CException</h1>

	<p class="message">
		The asset 
"/home/www/demonstrations/master.sondages.pro/htdocs/upload/admintheme/SondagesPro/images/logo.svg"
 to be published does not exist.	</p>

	<div class="source">
		<p class="file">/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CAssetManager.php(257)</p>
		<div class="code"><pre><span class="ln">245</span>                 {
<span class="ln">246</span>                     CFileHelper::copyDirectory($src,$dstDir,array(
<span class="ln">247</span>                         'exclude'=&gt;$this-&gt;excludeFiles,
<span class="ln">248</span>                         'level'=&gt;$level,
<span class="ln">249</span>                         'newDirMode'=&gt;$this-&gt;newDirMode,
<span class="ln">250</span>                         'newFileMode'=&gt;$this-&gt;newFileMode,
<span class="ln">251</span>                     ));
<span class="ln">252</span>                 }
<span class="ln">253</span> 
<span class="ln">254</span>                 return $this-&gt;_published[$path]=$this-&gt;getBaseUrl().'/'.$dir;
<span class="ln">255</span>             }
<span class="ln">256</span>         }
<span class="error"><span class="ln error-ln">257</span>         throw new CException(Yii::t('yii','The asset "{asset}" to be published does not exist.',
</span><span class="ln">258</span>             array('{asset}'=&gt;$path)));
<span class="ln">259</span>     }
<span class="ln">260</span> 
<span class="ln">261</span>     /**
<span class="ln">262</span>      * Returns the published path of a file path.
<span class="ln">263</span>      * This method does not perform any publishing. It merely tells you
<span class="ln">264</span>      * if the file or directory is published, where it will go.
<span class="ln">265</span>      * @param string $path directory or file path being published
<span class="ln">266</span>      * @param boolean $hashByName whether the published directory should be named as the hashed basename.
<span class="ln">267</span>      * If false, the name will be the hash taken from dirname of the path being published and path mtime.
<span class="ln">268</span>      * Defaults to false. Set true if the path being published is shared among
<span class="ln">269</span>      * different extensions.
</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>
										&nbsp;/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(354): <strong>CAssetManager</strong>-&gt;<strong>publish</strong>()				</div>

				<div class="code"><pre><span class="ln">349</span>      */
<span class="ln">350</span>     private function defineConstants()
<span class="ln">351</span>     {
<span class="ln">352</span>         // Define images url
<span class="ln">353</span>         if (!YII_DEBUG || self::$use_asset_manager || Yii::app()-&gt;getConfig('use_asset_manager')) {
<span class="error"><span class="ln error-ln">354</span>             define('LOGO_URL', App()-&gt;getAssetManager()-&gt;publish($this-&gt;path . '/images/logo.svg'));
</span><span class="ln">355</span>             define('LOGO_ICON_URL', App()-&gt;getAssetManager()-&gt;publish($this-&gt;path . '/images/logo_icon.png'));
<span class="ln">356</span>         } else {
<span class="ln">357</span>             define('LOGO_URL', $this-&gt;sTemplateUrl . '/images/logo.svg');
<span class="ln">358</span>             define('LOGO_ICON_URL', $this-&gt;sTemplateUrl . '/images/logo_icon.png');
<span class="ln">359</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>
										&nbsp;/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(115): <strong>AdminTheme</strong>-&gt;<strong>defineConstants</strong>()				</div>

				<div class="code"><pre><span class="ln">110</span>         $this-&gt;config = json_decode(json_encode((array) simplexml_load_string($sXMLConfigFile), 1));
<span class="ln">111</span> 
<span class="ln">112</span>         // If developers want to test asset manager with debug mode on
<span class="ln">113</span>         self::$use_asset_manager = isset($this-&gt;config-&gt;engine-&gt;use_asset_manager_in_debug_mode) ? ($this-&gt;config-&gt;engine-&gt;use_asset_manager_in_debug_mode == 'true') : false;
<span class="ln">114</span> 
<span class="error"><span class="ln error-ln">115</span>         $this-&gt;defineConstants(); // Define the (still) necessary constants
</span><span class="ln">116</span>         $this-&gt;registerStylesAndScripts(); // Register all CSS and JS
<span class="ln">117</span> 
<span class="ln">118</span>         if (\PHP_VERSION_ID &lt; 80000) {
<span class="ln">119</span>             libxml_disable_entity_loader($bOldEntityLoaderState); // Put back entity loader to its original state, to avoid contagion to other applications on the server
<span class="ln">120</span>         }
</pre></div>			</td>
		</tr>
						<tr class="trace app expanded">
			<td class="number">
				#2			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(261): <strong>AdminTheme</strong>-&gt;<strong>setAdminTheme</strong>()				</div>

				<div class="code"><pre><span class="ln">256</span>      */
<span class="ln">257</span>     public static function getInstance()
<span class="ln">258</span>     {
<span class="ln">259</span>         if (empty(self::$instance)) {
<span class="ln">260</span>             self::$instance = new self();
<span class="error"><span class="ln error-ln">261</span>             self::$instance-&gt;setAdminTheme();
</span><span class="ln">262</span>         }
<span class="ln">263</span>         return self::$instance;
<span class="ln">264</span>     }
<span class="ln">265</span> 
<span class="ln">266</span>     /**
</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>
										&nbsp;/home/www/demonstrations/master.sondages.pro/htdocs/application/controllers/AdminController.php(79): <strong>AdminTheme</strong>::<strong>getInstance</strong>()				</div>

				<div class="code"><pre><span class="ln">74</span>         if (!Yii::app()-&gt;getConfig("editedaction")) {
<span class="ln">75</span>             Yii::app()-&gt;setConfig("editedaction", returnGlobal('editedaction'));
<span class="ln">76</span>         } // for html editor integration
<span class="ln">77</span> 
<span class="ln">78</span>         // This line is needed for template editor to work
<span class="error"><span class="ln error-ln">79</span>         $oAdminTheme = AdminTheme::getInstance();
</span><span class="ln">80</span> 
<span class="ln">81</span>         Yii::setPathOfAlias('lsadminmodules', Yii::app()-&gt;getConfig('lsadminmodulesrootdir'));
<span class="ln">82</span>     }
<span class="ln">83</span> 
<span class="ln">84</span>     /**
</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>
										&nbsp;/home/www/demonstrations/master.sondages.pro/htdocs/application/core/LSYii_Controller.php(45): <strong>AdminController</strong>-&gt;<strong>customInit</strong>()				</div>

				<div class="code"><pre><span class="ln">40</span>         $this-&gt;loadHelper('globalsettings');
<span class="ln">41</span>         // tracevar function
<span class="ln">42</span>         //$this-&gt;loadHelper('common');
<span class="ln">43</span>         $this-&gt;loadHelper('expressions.em_manager');
<span class="ln">44</span>         $this-&gt;loadHelper('replacements');
<span class="error"><span class="ln error-ln">45</span>         $this-&gt;customInit();
</span><span class="ln">46</span>     }
<span class="ln">47</span> 
<span class="ln">48</span>     /**
<span class="ln">49</span>      * Check that installation was already done by looking for config.php
<span class="ln">50</span>      * Will redirect to the installer script if not exists.
</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>
										&nbsp;/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(359): <strong>LSYii_Controller</strong>-&gt;<strong>__construct</strong>()				</div>

				<div class="code"><pre><span class="ln">354</span>                     require($classFile);
<span class="ln">355</span>                 if(class_exists($className,false) &amp;&amp; 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-&gt;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 app collapsed">
			<td class="number">
				#6			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/www/demonstrations/master.sondages.pro/htdocs/application/core/LSYii_Application.php(530): <strong>CWebApplication</strong>-&gt;<strong>createController</strong>()				</div>

				<div class="code"><pre><span class="ln">525</span>      * @inheritdoc
<span class="ln">526</span>      * Special handling for SEO friendly URLs
<span class="ln">527</span>      */
<span class="ln">528</span>     public function createController($route, $owner=null)
<span class="ln">529</span>     {
<span class="error"><span class="ln error-ln">530</span>         $controller = parent::createController($route, $owner);
</span><span class="ln">531</span> 
<span class="ln">532</span>         // If no controller is found by standard ways, check if the route matches
<span class="ln">533</span>         // an existing survey's alias.
<span class="ln">534</span>         if (is_null($controller)) {
<span class="ln">535</span>             $controller = $this-&gt;createControllerFromShortUrl($route);
</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>
										&nbsp;/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(276): <strong>LSYii_Application</strong>-&gt;<strong>createController</strong>()				</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-&gt;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-&gt;_controller;
<span class="ln">280</span>             $this-&gt;_controller=$controller;
<span class="ln">281</span>             $controller-&gt;init();
</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>
										&nbsp;/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-&gt;<strong>runController</strong>()				</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">
				#9			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/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">
				#10			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/www/demonstrations/master.sondages.pro/htdocs/index.php(161): <strong>CApplication</strong>-&gt;<strong>run</strong>()				</div>

				<div class="code"><pre><span class="ln">156</span> require_once APPPATH . 'core/LSYii_Application' . EXT;
<span class="ln">157</span> 
<span class="ln">158</span> $config = require_once(APPPATH . 'config/internal' . EXT);
<span class="ln">159</span> 
<span class="ln">160</span> Yii::$enableIncludePath = false;
<span class="error"><span class="ln error-ln">161</span> Yii::createApplication('LSYii_Application', $config)-&gt;run();
</span><span class="ln">162</span> 
<span class="ln">163</span> /* End of file index.php */
<span class="ln">164</span> /* Location: ./index.php */
</pre></div>			</td>
		</tr>
				</tbody></table>
	</div>

	<div class="version">
		2023-04-05 17:37:41 Apache/2.4.38 (Debian) <a href="https://www.yiiframework.com/">Yii Framework</a>/1.1.28	</div>
</div>

<script type="text/javascript">
/*<![CDATA[*/
var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");

var e = document.getElementsByTagName("div");
for(var j=0,len=e.length;j<len;j++){
	if(traceReg.test(e[j].className)){
		e[j].onclick = function(){
			var trace = this.parentNode.parentNode;
			if(collapsedReg.test(trace.className))
				trace.className = trace.className.replace("collapsed", "expanded");
			else
				trace.className = trace.className.replace("expanded", "collapsed");
		}
	}
}
/*]]>*/
</script>




<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">
			Application Log
		</th>
	</tr>
	<tr style="background-color: #ccc;">
	    <th style="width:120px">Timestamp</th>
		<th>Level</th>
		<th>Category</th>
		<th>Message</th>
	</tr>
	<tr style="background:#FFFFFF">
		<td align="center">17:37:41.410687</td>
		<td>trace</td>
		<td>system.CModule</td>
		<td><pre>Loading "log" application component</pre></td>
	</tr>	<tr style="background:#F5F5F5">
		<td align="center">17:37:41.410913</td>
		<td>trace</td>
		<td>system.CModule</td>
		<td><pre>Loading "ETwigViewRenderer" application component</pre></td>
	</tr>	<tr style="background:#FFFFFF">
		<td align="center">17:37:41.411500</td>
		<td>trace</td>
		<td>system.CModule</td>
		<td><pre>Loading "request" application component</pre></td>
	</tr>	<tr style="background:#F5F5F5">
		<td align="center">17:37:41.411698</td>
		<td>trace</td>
		<td>system.CModule</td>
		<td><pre>Loading "session" application component</pre></td>
	</tr>	<tr style="background:#FFFFFF">
		<td align="center">17:37:41.416208</td>
		<td>trace</td>
		<td>system.CModule</td>
		<td><pre>Loading "db" application component</pre></td>
	</tr>	<tr style="background:#F5F5F5">
		<td align="center">17:37:41.416378</td>
		<td>trace</td>
		<td>system.db.CDbConnection</td>
		<td><pre>Opening DB connection</pre></td>
	</tr>	<tr style="background:#FFFFFF">
		<td align="center">17:37:41.417514</td>
		<td>trace</td>
		<td>system.CModule</td>
		<td><pre>Loading "cache" application component</pre></td>
	</tr>	<tr style="background:#F5F5F5">
		<td align="center">17:37:41.417741</td>
		<td>trace</td>
		<td>system.db.CDbCommand</td>
		<td><pre>Querying SQL: SHOW FULL COLUMNS FROM `lime_settings_global`</pre></td>
	</tr>	<tr style="background:#FFFFFF">
		<td align="center">17:37:41.419456</td>
		<td>trace</td>
		<td>system.db.CDbCommand</td>
		<td><pre>Querying SQL: SHOW CREATE TABLE `lime_settings_global`</pre></td>
	</tr>	<tr style="background:#F5F5F5">
		<td align="center">17:37:41.420273</td>
		<td>trace</td>
		<td>system.db.ar.CActiveRecord</td>
		<td><pre>SettingGlobal.findAll()</pre></td>
	</tr>	<tr style="background:#FFFFFF">
		<td align="center">17:37:41.420439</td>
		<td>trace</td>
		<td>system.db.CDbCommand</td>
		<td><pre>Querying SQL: SELECT * FROM `lime_settings_global` `t`</pre></td>
	</tr>	<tr style="background:#F5F5F5">
		<td align="center">17:37:41.422318</td>
		<td>trace</td>
		<td>system.CModule</td>
		<td><pre>Loading "assetManager" application component</pre></td>
	</tr>	<tr style="background:#FFFFFF">
		<td align="center">17:37:41.422445</td>
		<td>trace</td>
		<td>system.CModule</td>
		<td><pre>Loading "urlManager" application component</pre></td>
	</tr>	<tr style="background:#F5F5F5">
		<td align="center">17:37:41.423130</td>
		<td>trace</td>
		<td>system.CModule</td>
		<td><pre>Loading "user" application component</pre></td>
	</tr>	<tr style="background:#FFFFFF">
		<td align="center">17:37:41.423616</td>
		<td>trace</td>
		<td>system.CModule</td>
		<td><pre>Loading "coreMessages" application component</pre></td>
	</tr>	<tr style="background:#FFC0CB">
		<td align="center">17:37:41.423728</td>
		<td>error</td>
		<td>exception.CException</td>
		<td><pre>CException: The asset
"/home/www/demonstrations/master.sondages.pro/htdocs/upload/admintheme/SondagesPro/images/logo.svg"
to be published does not exist. in
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CAssetManager.php:257
Stack trace:
#0
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(354):
CAssetManager-&gt;publish()
#1
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(115):
AdminTheme-&gt;defineConstants()
#2
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(261):
AdminTheme-&gt;setAdminTheme()
#3
/home/www/demonstrations/master.sondages.pro/htdocs/application/controllers/AdminController.php(79):
AdminTheme::getInstance()
#4
/home/www/demonstrations/master.sondages.pro/htdocs/application/core/LSYii_Controller.php(45):
AdminController-&gt;customInit()
#5
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(359):
LSYii_Controller-&gt;__construct()
#6
/home/www/demonstrations/master.sondages.pro/htdocs/application/core/LSYii_Application.php(530):
CWebApplication-&gt;createController()
#7
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(276):
LSYii_Application-&gt;createController()
#8
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(141):
CWebApplication-&gt;runController()
#9
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/base/CApplication.php(185):
CWebApplication-&gt;processRequest()
#10 /home/www/demonstrations/master.sondages.pro/htdocs/index.php(161):
CApplication-&gt;run()
#11 {main}
REQUEST_URI=/admin/
---</pre></td>
	</tr>	<tr style="background:#FFFFFF">
		<td align="center">17:37:41.423763</td>
		<td>trace</td>
		<td>system.CModule</td>
		<td><pre>Loading "errorHandler" application component</pre></td>
	</tr></tbody></table>
<!-- end of log messages --><!-- start log messages -->
<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">
			Application Log
		</th>
	</tr>
	<tr style="background-color: #ccc;">
	    <th style="width:120px">Timestamp</th>
		<th>Level</th>
		<th>Category</th>
		<th>Message</th>
	</tr>
	<tr style="background:#FFC0CB">
		<td align="center">17:37:41.423728</td>
		<td>error</td>
		<td>exception.CException</td>
		<td><pre>CException: The asset
"/home/www/demonstrations/master.sondages.pro/htdocs/upload/admintheme/SondagesPro/images/logo.svg"
to be published does not exist. in
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CAssetManager.php:257
Stack trace:
#0
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(354):
CAssetManager-&gt;publish()
#1
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(115):
AdminTheme-&gt;defineConstants()
#2
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(261):
AdminTheme-&gt;setAdminTheme()
#3
/home/www/demonstrations/master.sondages.pro/htdocs/application/controllers/AdminController.php(79):
AdminTheme::getInstance()
#4
/home/www/demonstrations/master.sondages.pro/htdocs/application/core/LSYii_Controller.php(45):
AdminController-&gt;customInit()
#5
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(359):
LSYii_Controller-&gt;__construct()
#6
/home/www/demonstrations/master.sondages.pro/htdocs/application/core/LSYii_Application.php(530):
CWebApplication-&gt;createController()
#7
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(276):
LSYii_Application-&gt;createController()
#8
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(141):
CWebApplication-&gt;runController()
#9
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/base/CApplication.php(185):
CWebApplication-&gt;processRequest()
#10 /home/www/demonstrations/master.sondages.pro/htdocs/index.php(161):
CApplication-&gt;run()
#11 {main}
REQUEST_URI=/admin/
---</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="CException_fichiers/api.js"></script></html>
<!-- start log messages -->
CException.html (27,483 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)6.0.0
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2023-04-05 17:41

developer   ~74391

SondagesPro.zip (164,694 bytes)
DenisChenu

DenisChenu

2023-04-05 17:47

developer   ~74392

Was set to Seagreen after log in

ollehar

ollehar

2023-04-05 18:00

administrator   ~74393

Hm did it update to dbversion 499?

DenisChenu

DenisChenu

2023-04-05 18:01

developer   ~74394

I fix it quickly adding a logo.svg, log in : and it was set to Seagreen

Then : no : must update (or check if file exist) before try to use.

p_teichmann

p_teichmann

2023-04-21 12:53

administrator   ~74569

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=34504

LimeBot

LimeBot

2023-04-24 16:33

administrator   ~74609

Fixed in Release 6.0.3+230424

Related Changesets

LimeSurvey: master 2445e035

2023-04-19 16:40

p_teichmann


Details Diff
Fixed issue 18719: custom admin theme failing if new logo files are not set in the theme Affected Issues
18719
mod - application/models/AdminTheme.php Diff File

Issue History

Date Modified Username Field Change
2023-04-05 17:38 DenisChenu New Issue
2023-04-05 17:38 DenisChenu File Added: Capture d’écran du 2023-04-05 17-37-07.png
2023-04-05 17:38 DenisChenu File Added: CException.html
2023-04-05 17:41 DenisChenu Note Added: 74391
2023-04-05 17:41 DenisChenu File Added: SondagesPro.zip
2023-04-05 17:41 DenisChenu Bug heat 0 => 2
2023-04-05 17:47 DenisChenu Note Added: 74392
2023-04-05 18:00 ollehar Note Added: 74393
2023-04-05 18:00 ollehar Bug heat 2 => 4
2023-04-05 18:01 DenisChenu Note Added: 74394
2023-04-05 18:02 DenisChenu Steps to Reproduce Updated
2023-04-05 18:02 ollehar Product Version 6.0.0-dev => 6.0.x
2023-04-06 09:38 ollehar Assigned To => p_teichmann
2023-04-06 09:38 ollehar Status new => assigned
2023-04-06 09:38 ollehar Priority none => high
2023-04-19 14:43 p_teichmann Status assigned => ready for testing
2023-04-21 12:53 p_teichmann Changeset attached => LimeSurvey master 2445e035
2023-04-21 12:53 p_teichmann Note Added: 74569
2023-04-21 12:53 p_teichmann Bug heat 4 => 6
2023-04-21 12:53 p_teichmann Resolution open => fixed
2023-04-24 16:33 LimeBot Note Added: 74609
2023-04-24 16:33 LimeBot Status ready for testing => closed
2023-04-24 16:33 LimeBot Bug heat 6 => 8