2012-06-21, 03:02:39
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.