8.4.1 Automated Jobs / Unable to create a sitemap.xml

Permalink
After update 8.4.0 to 8.4.1 found problems run automatic job "generate the sitemap.xml."
(I did not find the forum answer if asked earlier?)

1 Attachment

67072568252
 
A3020 replied on at Permalink Reply
A3020
You have to give the web server permission to write to the /sitemap.xml file. You can often do this via a control panel / file manager if you don't have SSH access.
67072568252 replied on at Permalink Reply
67072568252
hello again .. and thanks!
Can you specify what you mean? sitemap.xml unix permission is now "644"
A3020 replied on at Permalink Reply
A3020
644 = read + write / read / read.

Try 664 instead to also give write access to the group.
67072568252 replied on at Permalink Reply
67072568252
tried, did not work..
A3020 replied on at Permalink Reply
A3020
Then your web server is not in that group. Not ideal... I guess you should then try 666.
67072568252 replied on at Permalink Reply
67072568252
old topic .. but can this be the same problem?
https://www.concrete5.org/community/forums/installation/unable-to-cr...
67072568252 replied on at Permalink Reply
67072568252
set 666 ..still not work :/
A3020 replied on at Permalink Reply
A3020
Gotcha. OK, yeah you are right. It probably tries to write to /tmp first, but your website doesn't have access there, it seems.

Maybe you'd try setting a config setting via 'concrete.filesystem.temp_directory'?

For this, edit application/config/concrete.php.
67072568252 replied on at Permalink Reply
67072568252
sorry for my english skills .. i did not understand what i must do?

that path is our directory seems application/config/generated_overrides/concrete.php.
A3020 replied on at Permalink Reply
A3020
Can you go to your application/files directory and check if you have a 'tmp' directory there? Also, can you check which permissions it has?

If it doesn't exist, can you create it?
If it has permissions 755, can you make it 775?
67072568252 replied on at Permalink Reply 1 Attachment
67072568252
yes, I found folder and changed the permission to 775 but not help.. job still not work.
A3020 replied on at Permalink Reply
A3020
In your attachment it's still 755? I'd try 775.

Are you able to upload files to the file manager in c5?
67072568252 replied on at Permalink Reply
67072568252
it is now unix permission 775 .. and yes i can upload files normally in filemanager.
67072568252 replied on at Permalink Reply
67072568252
all other default jobs work normally..
A3020 replied on at Permalink Reply
A3020
Pff, I don't know then. I guess you need to debug...

E.g. check these files:
public/concrete/src/Page/Sitemap/SitemapWriter.php (line 282)
public/concrete/src/File/Service/File.php (line 264)
67072568252 replied on at Permalink Reply
67072568252
i look files and these are like this:

SitemapWriter.php (line 282):
$tempFilename = @tempnam($this->getTemporaryDirectory(), 'sitemap');


public/concrete/src/File/Service/File.php (line 264):
public function getTemporaryDirectory()
67072568252 replied on at Permalink Reply
67072568252
is there a possibility for example to recreate this work again? i do not you know how to solve the problem or how do I create a sitemap in the future? :/
A3020 replied on at Permalink Reply
A3020
What I mean with 'debug' is that you try to figure out what the code is doing. Do you have programming experience?

E.g. you'd 'echo' or 'var_dump' the contents of variables while running the job, to see where in the process it goes wrong. The two file locations I sent earlier are starting points for that.
67072568252 replied on at Permalink Reply
67072568252
I do not really have any experience programming. Maybe is best make recovery from an old version .. this going too
difficult for me ..
67072568252 replied on at Permalink Reply
67072568252
This problem has been resolved updating version to 8.4.2