CException

CAssetManager.basePath "/mnt/wwwroot/95447/shebao.95447.com/assets" 是无效的. 请确定它是一个可被 Web server process 写入资料的目录.

/mnt/wwwroot/95447/shebao.95447.com/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

#7
+
 /mnt/wwwroot/95447/shebao.95447.com/protected/views/shebao/page_sb.php(34): CBaseController->widget("CLinkPager", array("header" => "", "firstPageLabel" => "首页", "lastPageLabel" => "末页", "prevPageLabel" => "<<", ...))
29     'lastPageLabel' => '末页',
30     'prevPageLabel' => '<<',
31     'nextPageLabel' => '>>',
32     'pages'=>$pagebar,
33     'maxButtonCount'=>8,              
34     ));?>
35         </div>
36      </div>
37       
38       <div class="sidebar">
39         <dl>
#12
+
 /mnt/wwwroot/95447/shebao.95447.com/protected/controllers/ShebaoController.php(399): CController->render()
394             'hotlist' => $posthotmodel,
395             'datalist' => $datalist,
396             'pagebar' => $pages,
397             'lm' => $lm,
398             'lmname' => $lmname
399         ]);
400     }
401 }
#20
+
 /mnt/wwwroot/95447/shebao.95447.com/index.php(20): CApplication->run()
15 define('WWWPATH', str_replace(array('\\', '\\\\'), '/', dirname(__FILE__)));
16 $framework = dirname(__FILE__) . DS. 'framework'.DS.'yiilite.php';
17 $config = WWWPATH . DS .'protected'.DS.'config'.DS.'main.php';
18 defined('YII_DEBUG') or define('YII_DEBUG',true);
19 require_once ($framework);
20 Yii::createWebApplication($config)->run();
2024-03-28 22:25:11 nginx/1.24.0 Yii Framework/1.1.14