CException

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

/www/wwwroot/www.gaoyuanzdh.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

#8
+
 /www/wwwroot/www.gaoyuanzdh.com/protected/controllers/PageController.php(34): CController->render()
29                 Yii::app()->user->setFlash('actionInfo', '留言提交失败!');
30                 $this->refresh();
31             }
32         }
33         $this->seoTitle = "我要留言_" . $this->seoTitle;
34         $this->render('feed',array('model'=>$model));
35     }
36 }
#16
+
 /www/wwwroot/www.gaoyuanzdh.com/common.php(14): CApplication->run()
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 5);
11 require_once($yii);
12 $app = Yii::createWebApplication($config);
13 require_once($globals);
14 $app->run();
#17
+
 /www/wwwroot/www.gaoyuanzdh.com/index.php(17): require_once("/www/wwwroot/www.gaoyuanzdh.com/common.php")
12   $_GET['r'] = 'content/index';
13   $_GET['cid'] = 14;
14 }
15 $config=dirname(__FILE__).'/protected/config/main.php';
16 $globals = dirname(__FILE__) . '/protected/globals.php';
17 require_once('./common.php');
2021-09-30 20:17:21 nginx/1.17.3 Yii Framework/1.1.22