Jump to:

10842 Posts in 2513 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Website error on installing Calender

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 862 Views
  • srd
    Avatar
    Community Member
    4 Posts

    Website error on installing Calender Link to this post

    Hi,

    I downloaded the event calender module from the site http://eventcalendar.bluehousegroup.com/ and then placed it in the home directory and builded the database. After this when I try to access the admin page, I am getting website error. Can anyone let me know how I can find out what is the problem and set it right.

    TIA
    srd

  • sureshk
    Avatar
    Community Member
    10 Posts

    Re: Website error on installing Calender Link to this post

    Find the clear error by adding Director::set_environment_type("dev"); to your mysite/_config.php file .
    You will see the details of errors so that you can understand better what is the problem.

  • srd
    Avatar
    Community Member
    4 Posts

    Re: Website error on installing Calender Link to this post

    This is the error

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

    Line 44 in /silver/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 'CalendarScriptInit', 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

  • srd
    Avatar
    Community Member
    4 Posts

    Re: Website error on installing Calender Link to this post

    Is there some place where I can getting working version of the laterst event calender. The one from the silverstripe modules site also seems to have some problem.

    TIA

  • bluefield
    Avatar
    Community Member
    2 Posts

    Re: Website error on installing Calender Link to this post

    Hi SRD.
    Exactly same problem, with SilverStripe version 2.4. What is a little strange is, that in the backend other sections work fine, only content management section doesn't. When you put ...com/admin/assets/ (for example) to admin access, it opens. but when you try to go site content section of backend, appears error message. By the way, I didn't got clear about that occurred error: have you any glue what it might be and how to arrange it properly?

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