Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Can't add pages after installing module subsites

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 1973 Views
  • Suzanne
    Avatar
    Community Member
    37 Posts

    Can't add pages after installing module subsites Link to this post

    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,

    suzanne

    Attached Files
  • Suzanne
    Avatar
    Community Member
    37 Posts

    Re: Can't add pages after installing module subsites Link to this post

    I get also the following errors:

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

  • Fanta
    Avatar
    Community Member
    7 Posts

    Re: Can't add pages after installing module subsites Link to this post

    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.

    P.S.
    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".

  • Suzanne
    Avatar
    Community Member
    37 Posts

    Re: Can't add pages after installing module subsites Link to this post

    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.

    Anyone?

  • Cerbo
    Avatar
    Community Member
    1 Post

    Re: Can't add pages after installing module subsites Link to this post

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

  • senorgeno
    Avatar
    Community Member
    10 Posts

    Re: Can't add pages after installing module subsites Link to this post

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

    Any ideas anyone?

  • philsbury
    Avatar
    Community Member
    2 Posts

    Re: Can't add pages after installing module subsites Link to this post

    Hi all,

    There's a git repository that solves these issues, I had the same problem.
    https://github.com/silverstripe/silverstripe-subsites

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

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

  • dacar
    Avatar
    Community Member
    168 Posts

    Re: Can't add pages after installing module subsites Link to this post

    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

    Source
    ======
    86:       
    87:       parent::onBeforeWrite();
    88:    }
    89:
    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));
    92:       
    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'

    1973 Views
Page: 1 2
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.