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.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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 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.
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');
}
}