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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1454 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');
}
}