CException

CAssetManager.basePath "/home/almas/mehr/site/assets" is invalid. Please make sure the directory exists and is writable by the Web server process.

/home/almas/mehr/site/yii/web/CAssetManager.php(138)

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)

Stack Trace

#7
+
 /home/almas/mehr/site/protected/views/contentGroup/view.php(18): CBaseController->widget("CLinkPager", array("pages" => CPagination))
13 <?php
14 $this->renderPartial('partials/_contentsList', array('contents' => $contents, 'types' => $types));
15 ?>
16     <div class="spacer20 clear"></div>
17 <?php
18 $this->widget('CLinkPager', array('pages' => $pages,));
19 ?>
#12
+
 /home/almas/mehr/site/protected/controllers/ContentGroupController.php(44): CController->render("view", array("contents" => array(), "pages" => CPagination, "types" => array(0 => "", 1 => "کتاب", 2 => "سخنرانی", 3 => "دوره آموزشی", ...)))
39         $pages = $this->getPagination($totalCount);
40 
41         $this->render('view', array(
42             'contents' => $contents,
43             'pages' => $pages,
44             'types' => $types
45         ));
46     }
47 
48     private function getContentsByGroupId($groupId, $page)
49     {
#25
+
 /home/almas/mehr/site/index.php(14): CApplication->run()
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
10 
11 require_once($yii);
12 
13 //Yii::beginProfile('start');
14 Yii::createWebApplication($config)->run();
15 //Yii::endProfile('start');
2024-03-28 16:41:41 Apache/2.4.57 (Ubuntu) Yii Framework/1.1.22