Ошибка с кодом 601
Здравствуйте !
Подскажите, при выполнении клика на инсталлер выскакивает ошибка с кодом 601: полный тескт:
<h2 id="Title">Cannot write to cache file /var/www/u0009910/data/www/filtraqua.ru/wa-cache/apps/webasyst/cache/app_settings/installer.php</h2>
<h3>Error with code 601 in '/var/www/u0009910/data/www/filtraqua.ru/wa-system/cache/waVarExportCache.class.php' around line 23:</h3>
18 protected function writeToFile($file, $v) 19 { 20 if ((!file_exists($file) && is_writable(dirname($file))) || is_writable($file)) { 21 return file_put_contents($file, "<?php\nreturn ".var_export($v, true).";\n"); 22 } elseif (waSystemConfig::isDebug()) { >>23 throw new waException("Cannot write to cache file ".$file, 601); 24 } 25 } 26 27 protected function readFromFile($file) 28 {
<h2>Call stack</h2>
#0 /var/www/u0009910/data/www/filtraqua.ru/wa-system/cache/waFileCache.class.php(60): waVarExportCache->writeToFile('/var/www/u00099...', Array) #1 /var/www/u0009910/data/www/filtraqua.ru/wa-system/webasyst/lib/models/waAppSettings.model.php(47): waFileCache->set(Array) #2 /var/www/u0009910/data/www/filtraqua.ru/wa-apps/installer/lib/layouts/installerBackend.layout.php(28): waAppSettingsModel->get('installer', 'update_counter') #3 /var/www/u0009910/data/www/filtraqua.ru/wa-system/layout/waLayout.class.php(134): installerBackendLayout->execute() #4 /var/www/u0009910/data/www/filtraqua.ru/wa-system/controller/waViewController.class.php(104): waLayout->display() #5 /var/www/u0009910/data/www/filtraqua.ru/wa-system/controller/waViewController.class.php(47): waViewController->display() #6 /var/www/u0009910/data/www/filtraqua.ru/wa-system/controller/waFrontController.class.php(125): waViewController->run() #7 /var/www/u0009910/data/www/filtraqua.ru/wa-system/controller/waFrontController.class.php(58): waFrontController->execute('', 'backend', NULL) #8 /var/www/u0009910/data/www/filtraqua.ru/wa-system/waSystem.class.php(524): waFrontController->dispatch() #9 /var/www/u0009910/data/www/filtraqua.ru/index.php(7): waSystem->dispatch() #10 {main}
<h2>Request</h2>
array ( 'PHPSESSID' => '938166c10c130c95849438cba5adcd73', '_csrf' => '549b2c177c56e0.91117174', 'remember' => '0', 'last_page' => '1^^^/webasyst/installer/?module=update', 'uid_zxcv' => '258cc0ac5499e0a8a39f55e5030c1302', )
<h2>Params</h2>
array (
Как решить проблему ?
6 ответов
Увеличить права доступа пользователю сервера, от имени которого исполняются PHP-скрипты, к директории wa-cache и её содержимому.
Подскажи пожалуйста, как это сделать? IPS менеджере
открываете менеджер файлов
находите свою установку
выбираете имя пользователя (свой логин или пользователя на хостинге) и выбираете изменение прав
Нужно поменять с www-root на www-data?
Добавлю: проверьте, есть ли свободное место на хостинге
столкнулся с такой же ошибкой. Вылечилось освобождением места
движок просто не мог создать файлы
Удаление хлама тоже помогло решить проблему