Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

googlesitemaps module problem


Go to End


1030 Views

Avatar
radialgraphics

Community Member, 2 Posts

10 July 2016 at 2:30pm

Edited: 12/07/2016 12:03pm

Hi All

I installed the googlesitemaps module on a local development environment and everything worked perfectly. After deploying it to our Production Server and running a dev/build then sitemap.xml?flush=1 I receive the following error:

error on line 2 at column 1: Document is empty

When visiting /sitemap.xml on the website all you get is a '1 part' sitemap.

Additionally, I added a mysite/_config/googlesitemaps.yml file as per the instructions in the docs.

We are using SS3.1. Is there something I am missing with my install procedure? Has anyone else had issues with the module?

Any help with this is very much appreciated.

UPDATE: Thanks Willr for getting back to me. The module was working all along. I overlooked clicking on the single URL located at '/sitemap.xml'. Doh!

However, I noticed that my home page does not appear as part of the sitemap. Any ideas?

Thanks