3877 Posts in 1011 Topics by 1176 members
Installing SilverStripe
SilverStripe Forums » Installing SilverStripe » Installation problems
Getting SilverStripe up and running on your computer and on your web server.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 1453 Views |
-
Installation problems

17 December 2008 at 7:31am Last edited: 17 December 2008 7:31am
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);
}
...
topublic 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?
-
Re: Installation problems

17 December 2008 at 7:53am
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.
| 1453 Views | ||
|
Page:
1
|
Go to Top |


