Jump to:

1156 Posts in 2568 Topics by 408 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » [Solved] Yet another access problem to the admin area (2.3.1 to 2.3.3)

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: 1396 Views
  • JensR
    Avatar
    Community Member
    8 Posts

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

    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

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: [Solved] Yet another access problem to the admin area (2.3.1 to 2.3.3) Link to this post

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

  • JensR
    Avatar
    Community Member
    8 Posts

    Re: [Solved] Yet another access problem to the admin area (2.3.1 to 2.3.3) Link to this post

    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!

  • JensR
    Avatar
    Community Member
    8 Posts

    Re: [Solved] Yet another access problem to the admin area (2.3.1 to 2.3.3) Link to this post

    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

    1396 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.