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

Silverstripe 3.0 Googlesitemap Empty


Go to End


13 Posts   3378 Views

Avatar
mbleimuth

Community Member, 1 Post

27 March 2013 at 12:53am

Hi Experts,

I am using Silverstripe 3.0 and i tried to use the googlesitemap modul to generate my sitemap. My site contains 5 "toplevel" pages and 3 subpages.
I downloaded the modul from this URL:
https://github.com/silverstripe-labs/silverstripe-googlesitemaps/tree/1.1
Then i copied the folder to the "mysite" folder and run dev/build.
When i open http://localhost/silverstripe/sitemap.xml I get following XML:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://localhost/silverstripe/sitemap.xml/sitemap/SiteTree/1</loc>
<lastmod>2013-03-13</lastmod>
</sitemap>
</sitemapindex>

All my sites are missing in the XML, what am I doing wrong? Any Ideas?

Kind Regards
Manuel

Avatar
airscool

Community Member, 4 Posts

3 April 2013 at 4:09am

I have the same issue. Any ideas forthcoming?

:-(

Avatar
Willr

Forum Moderator, 5523 Posts

3 April 2013 at 9:13pm

That is in index file. Like a table of contents. See the <loc> url for sitemap which contains your pages.

Avatar
secuaz

Community Member, 24 Posts

26 April 2013 at 10:11pm

Hi all, I finally got the sitemap to show but i am getting the same problem: no pages showing.

Willr: "See the <loc> url for sitemap which contains your pages"

I only get the below entry,

<loc>
http://www.thesite.uk/sitemap.xml/sitemap/SiteTree/1
</loc>

how can I see the <loc> url????

Thanks in advance!

Avatar
Willr

Forum Moderator, 5523 Posts

26 April 2013 at 10:18pm

Avatar
secuaz

Community Member, 24 Posts

26 April 2013 at 10:19pm

I am wondering if this can be caused for the site to be on a local server not live...?

Thanks.

Avatar
secuaz

Community Member, 24 Posts

26 April 2013 at 10:36pm

Thanks for your help, hopefully im close to getting the sitemap ready..

I saw http://www.thesite.uk/sitemap.xml/sitemap/SiteTree/1
and got this error:

[User Error] Couldn't run query: SELECT DISTINCT "sitetree"."ClassName", "sitetree"."Created", "sitetree"."LastEdited", "sitetree"."URLSegment", "sitetree"."Title", "sitetree"."MenuTitle", "sitetree"."Content", "sitetree"."MetaTitle", "sitetree"."MetaDescription", "sitetree"."MetaKeywords", "sitetree"."ExtraMeta", "sitetree"."ShowInMenus", "sitetree"."ShowInSearch", "sitetree"."Sort", "sitetree"."HasBrokenFile", "sitetree"."HasBrokenLink", "sitetree"."ReportClass", "sitetree"."CanViewType", "sitetree"."CanEditType", "sitetree"."Version", "sitetree"."ParentID", "sitetree"."ID", CASE WHEN "sitetree"."ClassName" IS NOT NULL THEN "sitetree"."ClassName" ELSE 'sitetree' END AS "RecordClassName" FROM "sitetree" ORDER BY "sitetree"."Sort" ASC LIMIT 1000 Table 'thesite_feb.sitetree' doesn't exist
GET /sitemap.xml/sitemap/sitetree/1/
Line 568 in /var/www/thesite.co.uk/framework/model/MySQLDatabase.php

Do you think it may be related to the wordpress blog I have installed. I need a separate sitemap.xml file for it and send it separately but can't find how.

Thank you!

Avatar
Willr

Forum Moderator, 5523 Posts

26 April 2013 at 10:37pm

It's complaining about your database, make sure you've run a /dev/build recently.

Go to Top