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?)
(I did not find the forum answer if asked earlier?)
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.
hello again .. and thanks!
Can you specify what you mean? sitemap.xml unix permission is now "644"
Can you specify what you mean? sitemap.xml unix permission is now "644"
644 = read + write / read / read.
Try 664 instead to also give write access to the group.
Try 664 instead to also give write access to the group.
tried, did not work..
Then your web server is not in that group. Not ideal... I guess you should then try 666.
old topic .. but can this be the same problem?
https://www.concrete5.org/community/forums/installation/unable-to-cr...
https://www.concrete5.org/community/forums/installation/unable-to-cr...
set 666 ..still not work :/
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.
Maybe you'd try setting a config setting via 'concrete.filesystem.temp_directory'?
For this, edit application/config/concrete.php.
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.
that path is our directory seems application/config/generated_overrides/concrete.php.
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?
If it doesn't exist, can you create it?
If it has permissions 755, can you make it 775?
yes, I found folder and changed the permission to 775 but not help.. job still not work.
In your attachment it's still 755? I'd try 775.
Are you able to upload files to the file manager in c5?
Are you able to upload files to the file manager in c5?
it is now unix permission 775 .. and yes i can upload files normally in filemanager.
all other default jobs work normally..
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)
E.g. check these files:
public/concrete/src/Page/Sitemap/SitemapWriter.php (line 282)
public/concrete/src/File/Service/File.php (line 264)
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()
SitemapWriter.php (line 282):
$tempFilename = @tempnam($this->getTemporaryDirectory(), 'sitemap');
public/concrete/src/File/Service/File.php (line 264):
public function getTemporaryDirectory()
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? :/
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.
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.
I do not really have any experience programming. Maybe is best make recovery from an old version .. this going too
difficult for me ..
difficult for me ..
This problem has been resolved updating version to 8.4.2