Jump to:

4935 Posts in 16066 Topics by 1488 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Installation problems

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 1750 Views
  • Reflektera
    Avatar
    49 Posts

    Installation problems Link to this post

    I installed the latest daily build, and on refresh to homepage I got this error message . I followed the trace and it seems like the problem is in function getNestedController() on line 32 in ModelAsController.php. I changed it from

       public function getNestedController() {
          if($this->urlParams['URLSegment']) {
             $SQL_URLSegment = Convert::raw2sql($this->urlParams['URLSegment']);         
                $child = Translatable::get_one("SiteTree", "SiteTree.\"URLSegment\" = '$SQL_URLSegment'", false);
             } else {
                $child = DataObject::get_one("SiteTree", "SiteTree.\"URLSegment\" = '$SQL_URLSegment'", false);
             }
    ...


    to

       public function getNestedController() {
          if($this->urlParams['URLSegment']) {
             $SQL_URLSegment = Convert::raw2sql($this->urlParams['URLSegment']);
             if (Translatable::is_enabled()) {
                $child = Translatable::get_one("SiteTree", "URLSegment = '$SQL_URLSegment'", false);
             } else {
                $child = DataObject::get_one("SiteTree", "URLSegment = '$SQL_URLSegment'", false);
             }
    ...

    and it seems to work fine. Know bug or what? Anyone else who have had this problem?         

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Installation problems Link to this post

    Looks like a problem due to merging in some of the database abstraction code. You should open a ticket about it on open.silverstripe.com

    I suggest that you use branches/2.3 instead of trunk until after 2.3 is released. All the bug fixes are currently being done in the branch, and will be merged back into trunk later.

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Installation problems Link to this post

    yeah, Trunk is not stable at the moment.

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