CException

CAssetManager.basePath "/home/xecauchuy/domains/xecauchuyendung.com.vn/public_html/assets" không hợp lệ. Hãy chắc rằng thư mục này có tồn tại và được phép ghi bởi Web server.

/home/xecauchuy/domains/xecauchuyendung.com.vn/public_html/lib/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

#7
+
 /home/xecauchuy/domains/xecauchuyendung.com.vn/public_html/protected/views/user/post/postcat.php(53): CBaseController->widget("CLinkPager", array("currentPage" => 0, "itemCount" => "9", "pageSize" => 8, "maxButtonCount" => 5, ...))
48                         'itemCount' => $pages->getItemCount(),
49                         'pageSize' => $pages->getPageSize(),
50                         'maxButtonCount' => 5,
51                         'header' => '',
52                         'htmlOptions' => array('class' => 'phantrang list-inline pull-right'),
53                     ));
54                     ?>
55                 </div>
56             </div>
57             <div class="clr"></div>
58         </div><!--end overHide-->
#12
+
 /home/xecauchuy/domains/xecauchuyendung.com.vn/public_html/protected/controllers/user/PostController.php(91): CController->render("postcat", array("model" => array("id" => "14", "parent" => "0", "name_vi" => "DỊCH VỤ", "name_en" => "", ...), "models" => array(array("id" => "33", "parent" => "17", "product_id" => null, "name_vi" => "xe cẩu kato 25T", ...), array("id" => "34", "parent" => "17", "product_id" => null, "name_vi" => "Xe cẩu kato 20T", ...), array("id" => "35", "parent" => "17", "product_id" => null, "name_vi" => "xe cẩu kato 30T", ...), array("id" => "36", "parent" => "17", "product_id" => null, "name_vi" => "xe cẩu kato 50T", ...), ...), "pages" => CPagination))
86             $count = Yii::app()->db->createCommand('select COUNT(`id`) as `count` from `' . MNews::model()->tableName() . '` where `status` = 1 and `parent` in (' . $inCondition . ')')->queryScalar();
87             $pages = new CPagination($count);
88             $pages->setPageSize($this->limitPost);
89             
90             if (!$this->is_mobile) {
91             $this->render('postcat', array('model' => $model, 'models' => $models, 'pages' => $pages));
92             } else {
93                 $this->render('postcat_mobile', array('model' => $model, 'models' => $models, 'pages' => $pages));
94             }
95 
96         else:
#22
+
 /home/xecauchuy/domains/xecauchuyendung.com.vn/public_html/protected/components/WebApplication.php(18): CApplication->run()
13 
14     public function runEnd($name) {
15         $this->__name = $name;
16         $this->onRunEnd = array(&$this, 'changePath');
17         $this->onRunEnd(new CEvent($this->owner));
18         $this->owner->run();
19     }
20 
21     public function onRunEnd(CEvent $event) {
22         $this->raiseEvent('onRunEnd', $event);
23     }
2024-03-29 07:20:07 Apache/2 Yii Framework/1.1.15