CException

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

/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CAssetManager.php(257)

245                 {
246                     CFileHelper::copyDirectory($src,$dstDir,array(
247                         'exclude'=>$this->excludeFiles,
248                         'level'=>$level,
249                         'newDirMode'=>$this->newDirMode,
250                         'newFileMode'=>$this->newFileMode,
251                     ));
252                 }
253 
254                 return $this->_published[$path]=$this->getBaseUrl().'/'.$dir;
255             }
256         }
257         throw new CException(Yii::t('yii','The asset "{asset}" to be published does not exist.',
258             array('{asset}'=>$path)));
259     }
260 
261     /**
262      * Returns the published path of a file path.
263      * This method does not perform any publishing. It merely tells you
264      * if the file or directory is published, where it will go.
265      * @param string $path directory or file path being published
266      * @param boolean $hashByName whether the published directory should be named as the hashed basename.
267      * If false, the name will be the hash taken from dirname of the path being published and path mtime.
268      * Defaults to false. Set true if the path being published is shared among
269      * different extensions.

Stack Trace

#0
+
 /home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(354): CAssetManager->publish()
349      */
350     private function defineConstants()
351     {
352         // Define images url
353         if (!YII_DEBUG || self::$use_asset_manager || Yii::app()->getConfig('use_asset_manager')) {
354             define('LOGO_URL', App()->getAssetManager()->publish($this->path . '/images/logo.svg'));
355             define('LOGO_ICON_URL', App()->getAssetManager()->publish($this->path . '/images/logo_icon.png'));
356         } else {
357             define('LOGO_URL', $this->sTemplateUrl . '/images/logo.svg');
358             define('LOGO_ICON_URL', $this->sTemplateUrl . '/images/logo_icon.png');
359         }
#1
+
 /home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(115): AdminTheme->defineConstants()
110         $this->config = json_decode(json_encode((array) simplexml_load_string($sXMLConfigFile), 1));
111 
112         // If developers want to test asset manager with debug mode on
113         self::$use_asset_manager = isset($this->config->engine->use_asset_manager_in_debug_mode) ? ($this->config->engine->use_asset_manager_in_debug_mode == 'true') : false;
114 
115         $this->defineConstants(); // Define the (still) necessary constants
116         $this->registerStylesAndScripts(); // Register all CSS and JS
117 
118         if (\PHP_VERSION_ID < 80000) {
119             libxml_disable_entity_loader($bOldEntityLoaderState); // Put back entity loader to its original state, to avoid contagion to other applications on the server
120         }
#2
+
 /home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(261): AdminTheme->setAdminTheme()
256      */
257     public static function getInstance()
258     {
259         if (empty(self::$instance)) {
260             self::$instance = new self();
261             self::$instance->setAdminTheme();
262         }
263         return self::$instance;
264     }
265 
266     /**
2023-04-05 17:37:41 Apache/2.4.38 (Debian) Yii Framework/1.1.28
Application Log
Timestamp Level Category Message
17:37:41.410687 trace system.CModule
Loading "log" application component
17:37:41.410913 trace system.CModule
Loading "ETwigViewRenderer" application component
17:37:41.411500 trace system.CModule
Loading "request" application component
17:37:41.411698 trace system.CModule
Loading "session" application component
17:37:41.416208 trace system.CModule
Loading "db" application component
17:37:41.416378 trace system.db.CDbConnection
Opening DB connection
17:37:41.417514 trace system.CModule
Loading "cache" application component
17:37:41.417741 trace system.db.CDbCommand
Querying SQL: SHOW FULL COLUMNS FROM `lime_settings_global`
17:37:41.419456 trace system.db.CDbCommand
Querying SQL: SHOW CREATE TABLE `lime_settings_global`
17:37:41.420273 trace system.db.ar.CActiveRecord
SettingGlobal.findAll()
17:37:41.420439 trace system.db.CDbCommand
Querying SQL: SELECT * FROM `lime_settings_global` `t`
17:37:41.422318 trace system.CModule
Loading "assetManager" application component
17:37:41.422445 trace system.CModule
Loading "urlManager" application component
17:37:41.423130 trace system.CModule
Loading "user" application component
17:37:41.423616 trace system.CModule
Loading "coreMessages" application component
17:37:41.423728 error exception.CException
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->publish()
#1
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(115):
AdminTheme->defineConstants()
#2
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(261):
AdminTheme->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->customInit()
#5
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(359):
LSYii_Controller->__construct()
#6
/home/www/demonstrations/master.sondages.pro/htdocs/application/core/LSYii_Application.php(530):
CWebApplication->createController()
#7
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(276):
LSYii_Application->createController()
#8
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(141):
CWebApplication->runController()
#9
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/base/CApplication.php(185):
CWebApplication->processRequest()
#10 /home/www/demonstrations/master.sondages.pro/htdocs/index.php(161):
CApplication->run()
#11 {main}
REQUEST_URI=/admin/
---
17:37:41.423763 trace system.CModule
Loading "errorHandler" application component
Application Log
Timestamp Level Category Message
17:37:41.423728 error exception.CException
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->publish()
#1
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(115):
AdminTheme->defineConstants()
#2
/home/www/demonstrations/master.sondages.pro/htdocs/application/models/AdminTheme.php(261):
AdminTheme->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->customInit()
#5
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(359):
LSYii_Controller->__construct()
#6
/home/www/demonstrations/master.sondages.pro/htdocs/application/core/LSYii_Application.php(530):
CWebApplication->createController()
#7
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(276):
LSYii_Application->createController()
#8
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(141):
CWebApplication->runController()
#9
/home/www/demonstrations/master.sondages.pro/htdocs/vendor/yiisoft/yii/framework/base/CApplication.php(185):
CWebApplication->processRequest()
#10 /home/www/demonstrations/master.sondages.pro/htdocs/index.php(161):
CApplication->run()
#11 {main}
REQUEST_URI=/admin/
---