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] faulty sitemap


Go to End


4 Posts   853 Views

Avatar
Faloude

Community Member, 55 Posts

15 November 2016 at 11:56am

Edited: 15/11/2016 12:11pm

The module creates the sitemap, but it holds just one link, which happens to be a dead one too (silverstripe generated server error page). I have this issue on both a populated and a clean ss 3.4.1 installation. Any idea what's happening here?

domain.com/sitemap.xml

domain.com/sitemap.xml/sitemap/SiteTree/1

Avatar
Willr

Forum Moderator, 5523 Posts

15 November 2016 at 6:09pm

Edited: 15/11/2016 6:10pm

Does your home page extend the 'Page' class. This method is defined on

https://github.com/wilr/silverstripe-googlesitemaps/blob/1.5.1/code/extensions/GoogleSitemapSiteTreeExtension.php#L89

This extension will have been added to your SiteTree/Page class as part of the the module (https://github.com/wilr/silverstripe-googlesitemaps/blob/1.5.1/_config.php#L4)

Avatar
Faloude

Community Member, 55 Posts

16 November 2016 at 12:07am

All my pages extend Page class indeed.

I tried the mod on a barebone install which holds only pagetype 'Page', same error:

Avatar
Faloude

Community Member, 55 Posts

16 November 2016 at 12:39am

Edited: 16/11/2016 3:05am

I had to manually make the GoogleSitemapExtension extend the SiteTree class, it works now:

SiteTree:
  extensions:
    - GoogleSitemapSiteTreeExtension