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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Can't add pages after installing module subsites

Go to End

9 Posts   3546 Views


Community Member, 37 Posts

29 September 2012 at 12:00am

Hoi Everyone,

I have installed the module Subsites but now I'm not able to add any pages not to my subsite and also not to
my main site. After deleting the module I will be able to do this but I need to have different subsites.
I have done /dev/build?flush=all several times and even rebooted my intire system. What can I do?

I have added the module.

Thank you,


Attached Files

Community Member, 37 Posts

29 September 2012 at 12:08am

I get also the following errors:

404 error page could not be created at /var/www/ss/assets/error-404-http://subsites. Please check permissions
500 error page could not be created at /var/www/ss/assets/error-500-http://subsites. Please check permissions


Community Member, 7 Posts

1 October 2012 at 8:57am

Edited: 01/10/2012 9:25am

I just migrated from Silverstripe 2.4 to 3.0. and use also the subsites module (silverstripe-subsites-master-1.0-beta1).
I have the same problem an cannot add new pages. I get no error message, but the sitetree stays unchanged.

I can add a page when i use the context menü (right mouse button -> "Add new page here").
But I cannot add a page when i use the green button "Add new".


Community Member, 37 Posts

2 October 2012 at 8:43pm

I can also add new page with right mouse button->"add new page here" but then I get an page not found error when wanting to preview it or when I go to the url.



Community Member, 1 Post

4 October 2012 at 5:03am

I have the same problem, I hope anyone can help us to fix this issue.


Community Member, 10 Posts

26 October 2012 at 5:29pm

I have this issue as well, can add a menu item by right clicking but not in a new subsite.

Any ideas anyone?


Community Member, 2 Posts

20 November 2012 at 10:42pm

Hi all,

There's a git repository that solves these issues, I had the same problem.

There's an error in the subsitesTreeDropDown.js file though where it uses $$ rather than $.

*nb, not my work, just thought it'd help.


Community Member, 173 Posts

3 January 2013 at 7:00am

Hi, i can't get Subsites (2.4-compat) working on SS 2.4.9.

$this->owner->Subsite() does not return an Object anymore? Can anybody help?

Greetings, Carsten.

ERROR [Notice]: Trying to get property of non-object
IN POST /admin/getitem?ID=30&locale=de_DE&ajax=1
Line 95 in /home/www/22/42/cwflade787/subsites/code/SiteTreeSubsites.php

  87:  		parent::onBeforeWrite();
  88:  	}
  90:  	function updateCMSFields(&$fields) {
  91:  		if($this->owner->MasterPageID) $fields->insertFirst(new HeaderField('This page\'s content is
       copied from a master page: ' . $this->owner->MasterPage()->Title, 2));
  93:  		// replace readonly link prefix
  94:  		$subsite = $this->owner->Subsite();
* 95:  		if($subsite && $subsite->ID) {
  96:  			$baseUrl = 'http://' . $subsite->domain() . '/';
  97:  			$fields->removeByName('BaseUrlLabel');
  98:  			$fields->addFieldToTab(
  99:  				'Root.Content.Metadata',
  100: 				new LabelField('BaseUrlLabel',$baseUrl),
  101: 				'URLSegment'

Go to Top