HasManyFiles Ver SVN 0.3.2
[User Error] DataObjectDecorator->setOwner(): Trying to decorate an object of class 'CMSMain' with 'CustomScriptInit', only Dataobject subclasses are supported.
GET /admin/
Line 44 in /var/html/sapphire/core/model/DataObjectDecorator.php
Source
35 private static $extra_statics_loaded = array();
36
37 function setOwner(Object $owner, $ownerBaseClass = null) {
38 if(!($owner instanceof DataObject)) {
39 user_error(sprintf(
40 "DataObjectDecorator->setOwner(): Trying to decorate an object of class '%s' with '%s',
41 only Dataobject subclasses are supported.",
42 get_class($owner), $this->class),
43 E_USER_ERROR
44 );
45 return false;
46 }
47 parent::setOwner($owner, $ownerBaseClass);
48 }
49
50 /**
Trace
* DataObjectDecorator->setOwner(): Trying to decorate an object of class 'CMSMain' with 'CustomScriptInit', only Dataobject subclasses are supported.
Line 44 of DataObjectDecorator.php
* DataObjectDecorator->setOwner(CMSMain,LeftAndMain)
Line 492 of Object.php
* Object->__construct()
Line 74 of RequestHandler.php
* RequestHandler->__construct()
Line 274 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/admin/)
Line 118 of main.php
Humm.. Why i have a error?