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.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

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

Googlesitemaps


Reply

7 Posts   1693 Views

Avatar
Robert1970

27 June 2009 at 8:27pm Community Member, 4 Posts

Hi,

Where is installation instruction for Googlesitemaps module? Does it work at all? What to do to force it to work?

Please help!

Robert

Avatar
Joeri81

16 October 2009 at 6:59am Community Member, 4 Posts

Assuming you use the latest version of SS:

Download the latest build here:
http://doc.silverstripe.com/doku.php?id=modules:googlesitemaps

(FTP to your ss site): Overwrite all files in the googlesitemaps directory with the new ones you just download
then browse to: http://yourwebsite/db/build

then login to http://yourwebsite/admin

the UI of google site maps ranking is there. Now you have the following problem: "sitemap.xml is not being generated"

I don't know how to solve this, but maybe someone else can. Please let me know.

Avatar
Fred C.

16 October 2009 at 8:07am Community Member, 18 Posts

Call the following method in your mysite/_config.php:

GoogleSitemap::enable();

Avatar
Joeri81

16 October 2009 at 10:04am (Last edited: 16 October 2009 10:05am), Community Member, 4 Posts

Thank you for the quick reply:

Here's how I changed the _config.php located in the mysite folder:

<?php

global $project;
$project = 'mysite';

global $databaseConfig;
$databaseConfig = array(
   "type" => "MySQLDatabase",
   "server" => "localhost",
   "username" => "***",
   "password" => "**",
   "database" => "***",
);

// Sites running on the following servers will be
// run in development mode. See
// http://doc.silverstripe.com/doku.php?id=devmode
// for a description of what dev mode does.
Director::set_dev_servers(array(
   'localhost',
   '127.0.0.1',
));

// This line set's the current theme. More themes can be
// downloaded from http://www.silverstripe.com/themes/
SSViewer::set_theme('highway');

//enabling 3rd party software
GoogleSitemap::enable();

?>

Still no sitemap.xml :(. I have CHMOD the root folder to 777, flushed the site and logged in and clicked save on a page. Still no effect. Any ideas?

Avatar
Fred C.

17 October 2009 at 4:11am Community Member, 18 Posts

Unfortunately it Just Works on my installations—but then I'm using the version of the module that's bundled with SilverStripe 2.3.3.

Avatar
secuaz

29 April 2013 at 8:35pm (Last edited: 29 April 2013 8:36pm), Community Member, 21 Posts

Hi all,

I keep trying to make the google sitemap work. In the website I have installed a googlesite moudule for the pages of the site, and then installed a wordpress blog, which means I need to submit two sitemap.xml files.
(Using ss3 and the master googlesitemap module)
My questions are two:

I am getting a 500 internal error saying: GoogleSitemapController::$allowed_actions must be public. I read on github that static configurables properties need to be private. Does it have to be public?????

How do I submit separately the two sitemap.xml files? Do i need a separate googlesitemap module for the wordpress blog?

Please help!!

Avatar
Willr

3 May 2013 at 9:16pm Forum Moderator, 5511 Posts

You'll need to download the supported version for your module. Master supports 3.1, 1.1 supports 3.0 (https://github.com/silverstripe-labs/silverstripe-googlesitemaps/tree/1.1).