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/GalleryController.php(23): CController->render("index", array("model" => Page, "galleries" => array(Gallery, Gallery, Gallery, Gallery, ...), "videos" => array()))
18 
19         $this->render('index', [
20             'model' => $model,
21             'galleries' => $galleries,
22             'videos' => $videos,
23         ]);
24     }
25 
26     public function actionElement($id)
27     {
28         $model = Gallery::model()->findByPk($id, 'status = 1');
#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:04:51 Apache/2.2 Yii Framework/1.1.14