sitemap.xml won't create
Permalink
Task fails with "Unable to create a temporary file." ( see attached screenshot ) . Some digging into the error message brought me to \Concrete\Core\File\Service\File::getTemporaryDirectory() ... the output there points to the tmp folder inside [webroot]/application/files ( path is full server path /var/www/vhosts/[sitename]/httpdocs/application/files/tmp )
I tried in a block template to place a file there via file_put_contents() and that works fine. php process has the right handle and permission.
Anyone any clue?
I tried in a block template to place a file there via file_put_contents() and that works fine. php process has the right handle and permission.
Anyone any clue?
Have you upgraded to 8.4.2 yet?
Nope, Core Version - 8.4.1 ... wanted to wait since there were some voices expressing some concerns about prematurely upgrading.
I fixed it for now by replacing line 282 \concrete\src\Page\Sitemap\SitemapWriter.php
$tempFilename = @tempnam($this->getTemporaryDirectory(), 'sitemap');
with
$tempFilename = @tempnam( \Concrete\Core\File\Service\File::getTemporaryDirectory(), 'sitemap');
So you say 8.4.2 will fix that as well?
I fixed it for now by replacing line 282 \concrete\src\Page\Sitemap\SitemapWriter.php
$tempFilename = @tempnam($this->getTemporaryDirectory(), 'sitemap');
with
$tempFilename = @tempnam( \Concrete\Core\File\Service\File::getTemporaryDirectory(), 'sitemap');
So you say 8.4.2 will fix that as well?
Yes, it has been fixed in 8.4.2: https://documentation.concrete5.org/developers/background/version-hi...
Thanks a lot!