Jump to:

10842 Posts in 2512 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Silverstripe 3.0 Googlesitemap Empty

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 931 Views
  • mbleimuth
    Avatar
    Community Member
    1 Post

    Silverstripe 3.0 Googlesitemap Empty Link to this post

    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

  • airscool
    Avatar
    Community Member
    2 Posts

    Re: Silverstripe 3.0 Googlesitemap Empty Link to this post

    I have the same issue. Any ideas forthcoming?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Silverstripe 3.0 Googlesitemap Empty Link to this post

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

  • secuaz
    Avatar
    Community Member
    21 Posts

    Re: Silverstripe 3.0 Googlesitemap Empty Link to this post

    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!

  • Willr
    Avatar
    Forum Moderator
    5462 Posts
  • secuaz
    Avatar
    Community Member
    21 Posts

    Re: Silverstripe 3.0 Googlesitemap Empty Link to this post

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

    Thanks.

  • secuaz
    Avatar
    Community Member
    21 Posts

    Re: Silverstripe 3.0 Googlesitemap Empty Link to this post

    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!

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Silverstripe 3.0 Googlesitemap Empty Link to this post

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

    931 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.