CException

Путь CAssetManager.basePath "/home/virtwww/w_nsk-ocean_97f12a1d/http/assets" задан неверно. Удостоверьтесь, что директория существует и доступна для записи пользователю, под которым запущен веб-сервер.

/home/virtwww/w_nsk-ocean_97f12a1d/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
+
 /home/virtwww/w_nsk-ocean_97f12a1d/protected/controllers/ProductController.php(114): CController->render("element", array("model" => Product, "oneclick" => Oneclick))
109         $this->model = $model;
110 
111         $this->render('element', [
112             'model' => $model,
113             'oneclick' => $oneclick,
114         ]);
115     }
116 
117     protected function oneClick($id) {
118         $oneClick = new Oneclick();
119 
#18
+
 /home/virtwww/w_nsk-ocean_97f12a1d/http/index.php(26): CApplication->run()
21     }
22 
23 }
24 
25 $config = dirname(__FILE__) . '/../protected/config/main.php';
26 $app = Yii::createWebApplication($config)->run();
27 
28 /*
29 ini_set('display_errors', 0);
30 ini_set('error_reporting', -1);
31 require_once(dirname(__FILE__) . '/../vendor/autoload.php');
2024-03-19 08:23:52 Apache/2.2 Yii Framework/1.1.14