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.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Event Calendar Fails with upgrade to SS 2.3.2rc1


Reply


2 Posts   995 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');
   }
}