I have installed the GSitemap and get this error:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
XML document must have a top level element. Error processing resource 'http://www.cyprusxyz.com/sitemap.xml'.
http://www.cyprusxyz.com/sitemap.xml
It all appears to be installed correctly.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | diff_7.txt | 370 bytes | dave_b |
Comments
Comment #1
fmmribeiro commentedI've looked at your site map, and it works fine. Did you do anything . I have the same error
Comment #2
rimma commentedSame problem here.
"The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing resource"http://example.com/sitemap.xml""
Could you give some advice?
Thanks.
Comment #3
dave_b commentedI ran into this problem when running Drupal under Apache on Windows. I tracked it down to the tmp path name generation for the sitemap cache files. The module uses the result of getenv('HTTP_HOST') to build the tmp path name. If your host name contains a port number, i.e., hostname:8080, then the path name will be generated with a colon which is not valid on Windows. The cache file creation fails and the nothing is returned. The attached patch fixed the problem for me. It may not be the best way to fix it. I'm ultimately deploying on Unix so I didn't put a whole lot of thought into it.
Comment #4
darren ohComment #5
darren ohFixed in CVS commit 83400.
Comment #6
(not verified) commented