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, biapar, Willr, Ingo, swaiba, simon_w

Subsites Module Configuration Problem


Reply


4 Posts   2607 Views

Avatar
B-Side

Community Member, 42 Posts

30 November 2009 at 3:55pm

Hi there

I've got a site hosting at an ISP that's set up to serve Virtual Hosting. I've have installed and configured Subsites to run, along with genericdataadmin. I'm using Silverstripe 2.3.3.

I've rebuilt the database and had no trouble seeing the subsites link and adding my new sub-site and pages. The tables were created, all looks well.

However when the ISP set up the redirect for the subsite to redirect to the main site, when I attempt to go to the subdomain it's redirecting to http://mysite.com/?url=/ and just loading the main site homepage.

I'm unsure as to what to ask the hosts to do next to check if it's their configuration or something I need to do. Any ideas?

Many thanks,

Jayne

Avatar
ulysses

Community Member, 57 Posts

16 February 2010 at 1:01am

Hi Jayne,

How did you get the subsite module working?

I have tried installing subsites with the genericdataadmin module. when I try to access the site or run /db/build or /dev/build I get database errors regarding missing table for the sub-site.

Running the DEV mode, I see the error...

[User Error] Couldn't run query: SELECT `Subsite`.*, `Subsite`.ID, if(`Subsite`.ClassName,`Subsite`.ClassName,'Subsite') AS RecordClassName FROM `Subsite` WHERE (`Subdomain` = 'kidsmusiccompany' AND `IsPublic` = 1) ORDER BY "Title" LIMIT 1 Table 'kidsmc_ss233.Subsite' doesn't exist
GET /

Line 401 in /home/kidsmc/domains/kidsmusiccompany.com/public_html/sapphire/core/model/MySQLDatabase.php
Source
.........etc. etc.

SS 2.3.3
subsites trunk modules_subsites_trunk-r99005.zip

Avatar
B-Side

Community Member, 42 Posts

16 February 2010 at 11:13am

Hi Ulysses - I didn't experience that problem, however the problems I had with configuration of Subsites were resolved by following this thread:
http://www.silverstripe.org/all-other-modules/show/251892#post251892

Good luck! Y

Avatar
patjnr

Community Member, 101 Posts

18 February 2010 at 12:16am

Hey

Good for you you got it working.
if you don't mind can you paste a copy of you "configurations" and that will go a long way in helping me.

My back-end is fine i can create as many sub-site by can seem to get the front-end to work.
probably its because of 'DNS' settings but i have tried a couple of changes and its not working.

thanks

P