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/PageController.php(87): CController->render("page", array("model" => Page, "brands" => array(Brand, Brand, Brand, Brand, ...), "products" => array(9 => array(Product, Product, Product, Product, ...), 10 => array(Product, Product, Product, Product, ...), 11 => array(Product), 12 => array(Product, Product), ...), "pages" => array(Page, Page, Page, Page, ...)))
82         $this->render('page', [
83             'model' => $model,
84             'brands' => $brands,
85             'products' => $products,
86             'pages' => $pages,
87         ]);
88     }
89 
90     /**
91      * Возвращает модель данных на основе первичного ключа полученного из GET переменной.
92      * @return CActiveRecord
#16
+
 /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 12:32:20 Apache/2.2 Yii Framework/1.1.14