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.

Archive /

Our old forums are still available as a read-only archive.

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

2.1 upgrade -> CMS log-ing = FATAL ERROR


Go to End


12 Posts   6693 Views

Avatar
Sean

Forum Moderator, 922 Posts

2 November 2007 at 10:02pm

You should have a page that has the URLSegment 'home' somewhere on your site is what Matt means. You can check the database for this using phpMyAdmin in the SiteTree table.

Cheers,
Sean

Avatar
mn

6 Posts

3 November 2007 at 2:56am

It turns out I do have a page with the URLSegment as home:

1 HomePage 2007-09-09 11:27:23 2007-09-10 17:18:54 home

Any other possible suggestions?

Avatar
mn

6 Posts

4 November 2007 at 7:19am

I also tried Andy's suggestion to change the line of code:

if($this->dataRecord && !$this->dataRecord->can('View')) {

to

if($this->dataRecord && method_exists($this->dataRecord, 'can') && !$this->dataRecord->can('View'))

After implementing I receive the following error:

Fatal error: Cannot redeclare project() (previously declared in /home/.furbag/USERNAME/URL/sapphire/core/Core.php:80) in /home/.furbag/USERNAME/URL/sapphire/core/control/ContentController.php on line 104

Any thoughts?

I've added a number of custom templates and pages to the site I put up. Is there an easy way to save everything and just do a clean install of SS from scratch?

Avatar
mn

6 Posts

4 November 2007 at 7:21am

Sorry - forgot the bracket to start the if statement when I implemented the code...

This is the error I get:

Fatal error: Call to undefined method stdClass::buildCastingHelperCache() in /home/.furbag/USERNAME/URL/sapphire/core/ViewableData.php on line 187

Go to Top