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(55): CController->render("element", array("model" => Gallery, "lastGalleries" => array(Gallery, Gallery, Gallery, Gallery), "collections" => array(Collection, Collection, Collection, Collection)))
50         $this->render('element', [
51             'model' => $model,
52             'lastGalleries' => $lastGalleries,
53             //'tags' => $tags,
54             'collections' => $collections
55         ]);
56     }
57 
58 }
59 
#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-28 11:21:12 Apache/2.2 Yii Framework/1.1.14