CException

CAssetManager.basePath "/home/eatlappscp/public_html/weather/assets" is invalid. Please make sure the directory exists and is writable by the Web server process.

/home/eatlappscp/public_html/framework/web/CAssetManager.php(138)

126     }
127 
128     /**
129      * Sets the root directory storing published asset files.
130      * @param string $value the root directory storing published asset files
131      * @throws CException if the base path is invalid
132      */
133     public function setBasePath($value)
134     {
135         if(($basePath=realpath($value))!==false && is_dir($basePath) && is_writable($basePath))
136             $this->_basePath=$basePath;
137         else
138             throw new CException(Yii::t('yii','CAssetManager.basePath "{path}" is invalid. Please make sure the directory exists and is writable by the Web server process.',
139                 array('{path}'=>$value)));
140     }
141 
142     /**
143      * @return string the base url that the published asset files can be accessed.
144      * Note, the ending slashes are stripped off. Defaults to '/AppBaseUrl/assets'.
145      */
146     public function getBaseUrl()
147     {
148         if($this->_baseUrl===null)
149         {
150             $request=Yii::app()->getRequest();

Stack Trace

#2
+
 /home/eatlappscp/public_html/weather/protected/extensions/bootstrap/components/Bootstrap.php(532): CAssetManager->publish("/home/eatlappscp/public_html/weather/protected/extensions/bootst...", false, -1, false)
527         if (isset($this->_assetsUrl))
528             return $this->_assetsUrl;
529         else
530         {
531             $assetsPath = Yii::getPathOfAlias('bootstrap.assets');
532             $assetsUrl = Yii::app()->assetManager->publish($assetsPath, false, -1, $this->forceCopyAssets);
533             return $this->_assetsUrl = $assetsUrl;
534         }
535     }
536 
537     /**
#3
+
 /home/eatlappscp/public_html/weather/protected/extensions/bootstrap/components/Bootstrap.php(211): Bootstrap->getAssetsUrl()
206      * @param string $cssFile the css file name to register
207      * @param string $media the media that the CSS file should be applied to. If empty, it means all media types.
208      */
209     public function registerAssetCss($cssFile, $media = '')
210     {
211         Yii::app()->getClientScript()->registerCssFile($this->getAssetsUrl() . "/css/{$cssFile}", $media);
212     }
213 
214     /**
215      * Registers the core JavaScript.
216      * @since 0.9.8
#4
+
 /home/eatlappscp/public_html/weather/protected/extensions/bootstrap/components/Bootstrap.php(163): Bootstrap->registerAssetCss("bootstrap.css")
158     /**
159      * Registers the Bootstrap CSS.
160      */
161     public function registerCoreCss()
162     {
163         $this->registerAssetCss('bootstrap' . (!YII_DEBUG ? '.min' : '') . '.css');
164     }
165 
166     /**
167      * Registers the Bootstrap responsive CSS.
168      * @since 0.9.8
2024-03-28 16:37:30 Apache Yii Framework/1.1.13