Jump to:

23457 Posts in 18905 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Silverstripe 2.3.4 Google Sitemap Problem

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 2420 Views
  • me.yay
    Avatar
    Community Member
    14 Posts

    Silverstripe 2.3.4 Google Sitemap Problem Link to this post

    Hi SilverStripers,

    i am running a Silverstripe 2.3.4 website and want to use the sitemap feature.

    On my forum/google search i found out the sitemap feature become a seperate plugin in silverstripe 2.3.0 and later.
    It is said the plugin runs automaticly, though mine seems not to run (properly?)

    When i call my site http://mysite.com/sitemap.xml i get a 500 error.

    Any hint what might wrong and where to take a look?

    kind regards
    Metin

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Silverstripe 2.3.4 Google Sitemap Problem Link to this post

    If you're getting a 500 error put the site into devmode - you should then get a proper error message

  • me.yay
    Avatar
    Community Member
    14 Posts

    Re: Silverstripe 2.3.4 Google Sitemap Problem Link to this post

    Thanks for the input Willr, but even in devmode (added url to Director::set_dev_servers array in mysite/_config.php) there is no addtional output. I just receive the errorpage from my isp :/

    Does SS support some sort of local log files?

    kind regards
    me.yay

  • me.yay
    Avatar
    Community Member
    14 Posts

    Re: Silverstripe 2.3.4 Google Sitemap Problem Link to this post

    i tried google sitemap on a plain installation of ss 2.3.4 and it was working fine.

    After importing the data from my live system, sitemap stopped working. I recognized sitemap timed out for me which was overloaded by my isps timeout.

    I could isolate the problem to a language/charset problem. My locale is set to de_DE, which makes it default for the sitemap request aswell. When i use the request hostname/sitemap.xml?locale=en_US it works flawless.

    Seems like a bug in the google sitemap addon..

    kind regards
    me.yay

  • me.yay
    Avatar
    Community Member
    14 Posts

    Re: Silverstripe 2.3.4 Google Sitemap Problem Link to this post

    When i requested sitemap.xml?locale=de_DE i get time out errors:

    Fatal error: Maximum execution time of 60 seconds exceeded in C:\dev\xampp\htdocs\sapphire\core\model\DataObject.php on line 1378
    Fatal error: Maximum execution time of 60 seconds exceeded in C:\dev\xampp\htdocs\sapphire\core\model\Hierarchy.php on line 241
    Fatal error: Maximum execution time of 60 seconds exceeded in C:\dev\xampp\htdocs\sapphire\core\Object.php on line 268
    and so on.

    The requests for sitemap.xml?locale=en_US worked flawless. Just google naged about an unknown/unexpected character because a "." was used instead of a "," on one of the priorities. After changing the priority manually for this particular page google could start to do its job.

    Unluckily i am still clueless what might cause the problems for my de_DE localization.
    kind regards
    me.yay

  • scpi
    Avatar
    Community Member
    21 Posts

    Re: Silverstripe 2.3.4 Google Sitemap Problem Link to this post

    I'm having the same problem, except without any localization issues. I'm running out of memory or timing out. Increasing the values for PHP memory and execution time hasn't helped any. I seem to remember reading that the current version of Google Sitemaps is only compatible with 2.4, not 2.3, so I grabbed the 1.2 tag from Subversion. That gives me the Google Sitemaps features in the CMS, but getting to the sitemap.xml file is still timing out. I'm not making much progress at this point. Any ideas?

  • JustinB
    Avatar
    Community Member
    1 Post

    Re: Silverstripe 2.3.4 Google Sitemap Problem Link to this post

    Has anyone found a solution to this issue? I am having the same problem with the sitemap.xml file timing out. I have downloaded 2.4.5 and also up-ed the set_time_limit to 1000 and am still not getting the expected results.

    Any help would be greatly appreciated.

  • martimiz
    Avatar
    Forum Moderator
    1078 Posts

    Re: Silverstripe 2.3.4 Google Sitemap Problem Link to this post

    Hard to tell what's causing this, could be all kinds of things. What the sitemap does is create a DataObjectSet of every live page on the site. So even one faulty page could maybe cause the problem. If your site is very large, that could also slow things down. First thing I would do is try and upgrade the site (a test version) to the newest stable SS version.

    In the case of the Locale issue: this could even be a problem in one of the de_DE.php language files - you can check this by temporary removing/renaming your languagefiles one-by-one, especially the ones in custom modules and check if it now works.

    Would be nice if you had access to your servers logs and see if anything else occurs besides timing out...

    You could try and comment out parts of the Items() function in GoogleSitemaps/code/GoogleSitemap.php, if you're up to that, and see where it goes wrong, that would maybe give you a hint.

    2420 Views
Page: 1
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.