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.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Event Calendar Fails with upgrade to SS 2.3.2rc1


Go to End


2 Posts   1883 Views

Avatar
neonfrog

Community Member, 10 Posts

22 May 2009 at 4:30am

Upgrading to the last SS beta (2.3.2rc1) gives the following error:

[User Error] DataObjectDecorator->setOwner(): Trying to decorate an object of class 'CMSMain' with 'CalendarScriptInit', only Dataobject subclasses are supported.

Avatar
neonfrog

Community Member, 10 Posts

22 May 2009 at 5:01pm

the solution to this is change CalendarScriptInit.php to;

<?php
class CalendarScriptInit extends LeftAndMainDecorator
{
public function init(){
Requirements::javascript('event_calendar/javascript/calendar_interface.js');
Requirements::css('event_calendar/css/calendar_cms.css');
}
}