4 January 2010 at 10:36pm
maybe someone out there could point me in the right direction:
Google sitemap.xml is working fine on local machine, but not on live site.
Just get "parse error". Does anyone know if this is related to execution time or similar ? Or am I missing something after going live with my site ?
18 November 2010 at 11:43am
That would suggest to me that white space is being output before "<?xml version="1.0" encoding="UTF-8"?>" becasue it says "Line Number 2" and it should the very first thing in the xml file. check your template googlesitemaps\templates\GoogleSitemap.ss and also look for trailing spaces in the your php files.
23 February 2011 at 10:13pm
We were experiencing this same problem out of the blue this morning for an existing website and I stumbled upon this thread in my search for a solution. Thanks to this and [url=http://silverstripe.org/blog-module-forum/show/9158#post281571]a post in another thread[/url] on the same subject, I was able to solve the problem.
In my case, it was two "new lines" after the closing PHP tag in a custom page within the "mysite" directory. So I can confirm looking through all of the .php files in search of trailing whitespace is most likely the way to fix this :)