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?

1 Attachment

fivedust
 
A3020 replied on at Permalink Reply
A3020
Have you upgraded to 8.4.2 yet?
fivedust replied on at Permalink Reply
fivedust
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?
A3020 replied on at Permalink Best Answer Reply
A3020
fivedust replied on at Permalink Reply
fivedust
Thanks a lot!