Lange
Легенда
- Версия TP
- нет
Собственно выскакивает при выполнении всех задач в кроне в ручном режиме:
Код:
RuntimeException thrown with message "File "/var/www/sitemap/sitemap_dynamic.xml" is not writable."
Stacktrace:
#6 RuntimeException in /var/www//vendor/samdark/sitemap/Sitemap.php:149
#5 samdark\sitemap\Sitemap:createNewFile in /var/www//vendor/samdark/sitemap/Sitemap.php:276
#4 samdark\sitemap\Sitemap:addItem in /var/www//src/Sitemap.php:123
#3 TorrentPier\Sitemap:buildDynamicSitemap in /var/www//src/Sitemap.php:166
#2 TorrentPier\Sitemap:createSitemap in /var/www//library/includes/cron/jobs/sitemap.php:15
#1 require in /var/www/src/Legacy/Admin/Cron.php:38
#0 TorrentPier\Legacy\Admin\Cron:run_jobs in /var/www//admin/admin_cron.php:188
Код:
{
$this->fileCount++;
$filePath = $this->getCurrentFilePath();
$this->writtenFilePaths[] = $filePath;
if (file_exists($filePath)) {
$filePath = realpath($filePath);
if (is_writable($filePath)) {
unlink($filePath);
} else {
throw new \RuntimeException("File \"$filePath\" is not writable.");
}
}
if ($this->useGzip) {
if (function_exists('deflate_init') && function_exists('deflate_add')) {
$this->writerBackend = new DeflateWriter($filePath);
} else {
$this->writerBackend = new TempFileGZIPWriter($filePath);
}
} else {