Jump to:

10929 Posts in 2613 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Installing Subsites Module

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1545 Views
  • Doverose
    Avatar
    Community Member
    8 Posts

    Installing Subsites Module Link to this post

    Whilst I had no problems installing the subsites module on my localhost with wamp, I cannot get it to install at all - not even rebuild the databank when I upload the same subsite directory to my server hosted by domainfactory. Any ideas what could be the problem?

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Installing Subsites Module Link to this post

    Do you get an error? If you enable display_errors in your php.ini and turn on dev mode on your live site (just for now) you should get a more helpful error message.

  • Doverose
    Avatar
    Community Member
    8 Posts

    Re: Installing Subsites Module Link to this post

    Thanks Willr.
    I cannot get it to display any errors even with everything switched on. I just get the Silverstripe Web error banner come up. The browser error console does not show any errors either.

  • Doverose
    Avatar
    Community Member
    8 Posts

    Re: Installing Subsites Module Link to this post

    Solved the problem
    Added: Director::set_environment_type("dev"); to mysite/config file
    (I did this in an attempt to see the messages)
    Then it surprisingly worked!
    Afterwards I could comment that out and it still works.

  • Euphemismus
    Avatar
    Community Member
    82 Posts

    Re: Installing Subsites Module Link to this post

    If logged in as administrator, you can also add the URL-param ?isDev=1
    this also enables development-mode for you.
    This might also be handy...

    Regards,
    Marc

  • Doverose
    Avatar
    Community Member
    8 Posts

    Re: Installing Subsites Module Link to this post

    Thanks Marc for the useful tip. It's just been beginner's luck to date.
    Steve

  • ulysses
    Avatar
    Community Member
    57 Posts

    Re: Installing Subsites Module Link to this post

    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

    1545 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.