2013-03-09, 19:46:14
(2012-06-21, 03:02:39)shawn_a Wrote:grassfrog Wrote:I have upgraded to 3.1.1 and now the workaround previously suggested does NOT work.
Now, when I click Create Site Map, it says it's created, but it isn't. And if I create a blank sitemap.xml file, then click Create Site Map, here is what ends up getting written there:
XML Parsing Error: no element found
Location: http://smithhomeinspection.com/sitemap.xml
Line Number 1, Column 1:
^
I was about to post this to get help, but checked one more thing.... by changing the permissions on the new sitemap.xml file to the directory owner and chmod'ing to 777, the sitemap is then created properly. Just documenting this in case anyone else comes across the same issue.
Have a super swell day!
conjecturing here.
The way most of the xml code is setup, you cannot create empty files because it first loads it and fails if there is no valid xml structure, this is kind of a painm, we should be checking for zero length files and forcing a write.
I imagine since this file is being created in root, that dir needs write access, I don't know if this is a wise thing to do.
My dummy XML file always contains a few characters - creating it, saving it then overwriting it still seems to be the best way to go.
My workaround was working, but now... I'm getting a 403 error on one of my sitemap.xml files (but not the others). Looking at the permissions, I see no differences. I even tried recreating the sitemap but I still get a 403 error. I recently upgraded Plesk and am wondering if anyone else has some across this as a Plesk permissions issue (having to do with the psacln user group)? I saw something on this regarding XML files from Wordpress and am wondering if this is a similar issue.