jrh

*
  • *
  • 2
Empty XML file
« on: April 05, 2006, 04:35:32 PM »
I'm using the standalone generator. After every run, the HTML and TXT versions are fine, but the XML file is always empty. There are no errors displayed.

Any ideas?
Re: Empty XML file
« Reply #1 on: April 05, 2006, 05:13:54 PM »
Hello,

please make sure that you have 0666 permissions set for this xml file.

jrh

*
  • *
  • 2
Re: Empty XML file
« Reply #2 on: April 05, 2006, 06:21:13 PM »
Actually, the problem was that I specified web_root/generator/data/sitemap.xml as the path in the config. When I changed it to web_root/sitemap.xml, created an empty sitemap.xml file there set to 666, then it worked fine.
Re: Empty XML file
« Reply #4 on: April 07, 2017, 10:50:43 PM »
This helped me figure out this same issue.

This is definitely a bug ... if you try to have it write to the data directory for the sitemap.xml file it renders valid ror.xml, and sitemap*.html files, but  and empty sitemap.xml file (see example file listing below)

/path/to/xml-sitemaps/data/sitemap.xml - doesn't work
/path/tp/xml-sitemaps/sitemap.xml - does work

It would be nice if you could have it save to a directory you wish to have owned by the php user so that it could generate new html names if the size of the link lists grew and also it would have full write access to create any other files it needed... and you wouldn't have to have that directory have the ability to run php files...

I manually moved all the html files and the ror file to the generator's root dir and created the sitemap.xml file there and it seems to work.


-rw-r--r-- 1 wwwphp wwwphp 1817336 Apr  7 16:21 ror.xml
-rw-r--r-- 1 wwwphp wwwphp  256839 Apr  7 16:13 sitemap10.html
-rw-r--r-- 1 wwwphp wwwphp  198997 Apr  7 16:13 sitemap11.html
-rw-r--r-- 1 wwwphp wwwphp  237224 Apr  7 16:21 sitemap2.html
-rw-r--r-- 1 wwwphp wwwphp  252030 Apr  7 16:21 sitemap3.html
-rw-r--r-- 1 wwwphp wwwphp  192287 Apr  7 16:21 sitemap4.html
-rw-r--r-- 1 wwwphp wwwphp  162229 Apr  7 16:21 sitemap5.html
-rw-r--r-- 1 wwwphp wwwphp  169672 Apr  7 16:21 sitemap6.html
-rw-r--r-- 1 wwwphp wwwphp   60956 Apr  7 16:21 sitemap7.html
-rw-r--r-- 1 wwwphp wwwphp  249007 Apr  7 16:13 sitemap8.html
-rw-r--r-- 1 wwwphp wwwphp  238327 Apr  7 16:13 sitemap9.html
-rw-rw-r-- 1 wwwphp wwwphp  168063 Apr  7 16:21 sitemap.html
-rw-rw-rw- 1 wwwphp wwwphp       0 Apr  7 16:21 sitemap.xml
-rw-rw-rw- 1 wwwphp wwwphp  451746 Apr  7 16:21 urllist.txt


Re: Empty XML file
« Reply #5 on: April 08, 2017, 06:49:48 AM »
Hello,

"Save sitemap to" setting is not allowed to point to generator/data/ folder. That folder is used for internal generator data only.