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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

Installation problems


Go to End


3 Posts   2963 Views

Avatar
Reflektera

49 Posts

17 December 2008 at 7:31am

Edited: 17/12/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);
			}
...

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?

Avatar
(deleted)

Community Member, 473 Posts

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.

Avatar
Hamish

Community Member, 712 Posts

17 December 2008 at 8:57am

yeah, Trunk is not stable at the moment.