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

[Solved] Yet another access problem to the admin area (2.3.1 to 2.3.3)


Reply

4 Posts   1409 Views

Avatar
JensR

2 October 2009 at 9:18am (Last edited: 3 October 2009 12:30am), Community Member, 8 Posts

When I try to access my website via "http://kurz-praezise-geistreich.com/admin/", I get the following message:
Website Error
There has been an error
The website server has not been able to respond to your request."

If I try to access via "http://www.kurz-praezise-geistreich.com/admin/", I get this other message:

[User Error] DataObjectDecorator->setOwner(): Trying to decorate an object of class 'CMSMain' with 'CustomScriptInit', only Dataobject subclasses are supported.
GET /admin/

Line 44 in /home/kurzprae/domains/kurz-praezise-geistreich.com/public_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

Can anybody help and shed some light on this?

Thanks in advance,

Jens

Avatar
Willr

2 October 2009 at 4:26pm Forum Moderator, 5511 Posts

Are you trying to install with any modules or addons or custom code?. CustomScriptInit seems like something custom. That could be incorrectly setup

Avatar
JensR

2 October 2009 at 11:07pm Community Member, 8 Posts

Yes, I have several modules installed, but no custom code. I'll try again without the modules and see what happens then.

Thanks for the tip!

Avatar
JensR

3 October 2009 at 12:32am Community Member, 8 Posts

I checked all my modules and widgets out and one by one in again. The "has-many-files" module was the problem - which I don't really need anyway.

Thanks again,

Jens