Jump to:

1133 Posts in 1984 Topics by 403 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Event Calendar Fails with upgrade to SS 2.3.2rc1

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 944 Views
  • neonfrog
    Avatar
    Community Member
    10 Posts

    Event Calendar Fails with upgrade to SS 2.3.2rc1 Link to this post

    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.

  • neonfrog
    Avatar
    Community Member
    10 Posts

    Re: Event Calendar Fails with upgrade to SS 2.3.2rc1 Link to this post

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

    944 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.