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.

All other Modules /

Discuss all other Modules here.

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

Subsites Modules - Problems + Bugs ... and how i overcame them (so far)

Go to End

14 Posts   5155 Views


Community Member, 57 Posts

16 February 2010 at 1:30am

Edited: 16/02/2010 1:30am

Hi Silverseba,

Ran this again. Now the first time I run the db/build I got the website error but the second time the db/build went successfully. The subsites tab is now visible but when I click on i t, it reports another error.

[Warning] file_get_contents(/home/kidsmc/domains/ [function.file-get-contents]: failed to open stream: No such file or directory
GET /admin/subsites/

Line 472 in /home/kidsmc/domains/

464 }
466 /**
467 * Load the given javascript template with the page.
468 * @param file The template file to load.
469 * @param vars The array of variables to load. These variables are loaded via string search & replace.
470 */
471 function javascriptTemplate($file, $vars, $uniquenessID = null) {
472 $script = file_get_contents(Director::getAbsFile($file));
473 foreach($vars as $k => $v) {
474 $search[] = '$' . $k;
475 $replace[] = str_replace("\\'","'", Convert::raw2js($v));
476 }
477 $script = str_replace($search, $replace, $script);
478 $this->customScript($script, $uniquenessID);


* file_get_contents(/home/kidsmc/domains/
Line 472 of Requirements.php
* Requirements_Backend->javascriptTemplate(cms/javascript/tinymce.template.js,Array,)
Line 133 of Requirements.php
* Requirements::javascriptTemplate(cms/javascript/tinymce.template.js,Array)
Line 101 of GenericDataAdmin.php
* GenericDataAdmin->init()
Line 113 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/admin/subsites/)
Line 118 of main.php

Turned the DEV mode off and the error is not displayed.


Community Member, 26 Posts

16 February 2010 at 1:35am

As the installation seems to work (the Subsites tables are installed obviously) this error may result from your cache.
Logout from the admin area, clear your browser-cache, restart your browser and call the admin area again. In previous versions of silverstripe that helped me a lot.


Community Member, 57 Posts

16 February 2010 at 1:37am

Edited: 17/02/2010 3:09am

Thanks for the support. I have now defined 2 subsites and trying to get it configured.

The Subsite virtual page does not work. The drop down to choose a page to link to comes up with a fatal error as follows:

Fatal error: Call to undefined method TreeDropdownField::tree() in /home/ on line 34

Any suggestions? Has anyone got this fatal error fixed?

Has anyone got a copy of a working Subsite v0.1?


Community Member, 22 Posts

19 February 2010 at 12:31am

Hi there,

I've got a semi working copy of the subsites module.

I managed to install SS 2.3.6 with genericdataadmin and subsites, the subsites tab is visible in the CMS and i can add subdomains. However, once I want to publish a newly added page in a subdomain, the CMS hangs on "publishing". After refreshing the page isn't published and/or saved.

Can anyone help me with this issue?


Community Member, 79 Posts

1 April 2010 at 6:55am

@Iain-vdw - I'm still using 2.3.5 but am having the same problem with subsites just hanging when I try to save or publish a new page. Did you ever find the answer?



Community Member, 8 Posts

4 April 2010 at 2:59am

Since your SilverStripe version is in between and I had the same problem at first, maybe this forum entry helps: Successful installation of Subsites module on SS 2.3.0 (2.3.7 seems feasible)

Go to Top