HI,
I have installed latest available version of event_calendar from net. Then i executed run db command which worked fine. But as soon as i tried to open the admin screen , i got below mentioned errors:
[User Error] DataObjectDecorator->setOwner(): Trying to decorate an object of class 'CMSMain' with 'CalendarScriptInit', only Dataobject subclasses are supported.
GET /silverstripe/admin/
Line 41 in C:\wamp\www\silverstripe\sapphire\core\model\DataObjectDecorator.php
Source
32 * @param DataObject $owner
33 */
34 function setOwner(Object $owner) {
35 if(!($owner instanceof DataObject)) {
36 user_error(sprintf(
37 "DataObjectDecorator->setOwner(): Trying to decorate an object of class '%s' with '%s',
38 only Dataobject subclasses are supported.",
39 get_class($owner), $this->class),
40 E_USER_ERROR
41 );
42 return false;
43 }
44
45 parent::setOwner($owner);
46 }
47
Trace
* DataObjectDecorator->setOwner(): Trying to decorate an object of class 'CMSMain' with 'CalendarScriptInit', only Dataobject subclasses are supported.
Line 41 of DataObjectDecorator.php
* DataObjectDecorator->setOwner(CMSMain)
Line 456 of Object.php
* Object->__construct()
Line 74 of RequestHandler.php
* RequestHandler->__construct()
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/admin/)
Line 117 of main.php
It would be appreciable if anyone can help me out. :)
Thanks,