Jump to:

649 Posts in 1606 Topics by 162 members

Releases and Announcements

SilverStripe Forums » Releases and Announcements » 2.3.4 Stable

Latest news about the SilverStripe software.

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

Page: 1
Go to End
Author Topic: 1655 Views
  • Yakiv
    Avatar
    Community Member
    59 Posts

    2.3.4 Stable Link to this post

    Thank you so much, on releasing 2.3.4 Stable!

    I just did an installation, with the following modules (downloaded from the extensions area of the web-site, not from SVN):

    blog, dataobject_manager, diary, ecommerce, embargoexpiry, event_calendar, filemanager, forum, gallery, genericdataadmin, multiform, polls, and userforms

    I am on a Linux VPS, with an installation to a subdomain. The installation appeared to go well. The front-end looks fine. However, when going to the /admin/ area, I saw the following and I am hoping for some help (maybe one of the modules is not compatible?):

    [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/www/html/mysubdomainfolder/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 517 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

  • Yakiv
    Avatar
    Community Member
    59 Posts

    Re: 2.3.4 Stable Link to this post

    I don't know if this helps, but this is what I have when I do a /db/build , which should give a clear idea of what I have installed:

    Building Database silverstripe

    Creating database tables
    # TrackBackPing
    # PageComment
    # DiaryEvent
    # Event
    # Order
    # Order_Item
    # OrderStatusLog
    # Payment
    # Product_Attribute
    # CalendarDateTime
    # ICSFeed
    # RecurringDayOfMonth
    # RecurringDayOfWeek
    # RecurringException
    # ForumCategory
    # Post
    # Post_Subscription
    # GalleryPage_Extension
    # MultiFormSession
    # MultiFormStep
    # Poll
    # PollAnswer
    # SiteTree
    # Email_BounceRecord
    # QueuedEmail
    # File
    # Group
    # LoginAttempt
    # Member
    # MemberPassword
    # Permission
    # Widget
    # WidgetArea
    # UserDefinedForm_EmailRecipient
    # EditableFormField
    # EditableOption
    # SubmittedForm
    # SubmittedFormField
    # ChequePayment
    # DPSPayment
    # PayPalPayment
    # WorldpayPayment
    # Order_Item_Attribute
    # Page
    # GhostPage
    # BlogEntry
    # BlogHolder
    # DiaryHolder
    # AccountPage
    # CheckoutPage
    # EcommerceTermsPage
    # Product
    # ProductGroup
    # Calendar
    # CalendarEvent
    # FilePage
    # Forum
    # ForumHolder
    # GalleryPage
    # ErrorPage
    # RedirectorPage
    # VirtualPage
    # UserDefinedForm
    # FileListingPage
    # FLV
    # MP3
    # Post_Attachment
    # Image
    # Folder
    # Product_Image
    # GalleryPage_Image
    # Image_Cached
    # ArchiveWidget
    # BlogManagementWidget
    # RSSWidget
    # SubscribeRSSWidget
    # TagCloudWidget
    # DiaryWidget
    # EventTypesWidget
    # EditableCheckbox
    # EditableDateField
    # EditableEmailField
    # EditableFileField
    # EditableFormHeading
    # EditableLiteralField
    # EditableMemberListField
    # EditableMultipleOptionField
    # EditableTextField
    # EditableCheckboxGroupField
    # EditableDropdown
    # EditableRadioField
    # SubmittedFileField

    Creating database records
    # TrackBackPing
    # PageComment
    # DiaryEvent
    # Event
    # Order
    # Order_Item
    # OrderStatusLog
    # Payment
    # Product_Attribute
    # CalendarDateTime
    # ICSFeed
    # RecurringDayOfMonth
    # Recurring Days of Month added.
    # RecurringDayOfWeek
    # Recurring Days of Week added.
    # RecurringException
    # ForumCategory
    # Post
    # Post_Subscription
    # GalleryPage_Extension
    # MultiFormSession
    # MultiFormStep
    # Poll
    # PollAnswer
    # SiteTree
    # Email_BounceRecord
    # QueuedEmail
    # File
    # Group
    # LoginAttempt
    # Member
    # MemberPassword
    # Permission
    # Widget
    # WidgetArea
    # UserDefinedForm_EmailRecipient
    # EditableFormField
    # EditableOption
    # SubmittedForm
    # SubmittedFormField
    # ChequePayment
    # DPSPayment
    # PayPalPayment
    # WorldpayPayment
    # Order_Item_Attribute
    # Page
    # GhostPage
    # BlogEntry
    # BlogHolder
    # DiaryHolder
    # AccountPage
    # CheckoutPage
    # EcommerceTermsPage
    # Product
    # ProductGroup
    # Calendar
    # CalendarEvent
    # FilePage
    # Forum
    # ForumHolder
    # GalleryPage
    # ErrorPage
    # RedirectorPage
    # VirtualPage
    # UserDefinedForm
    # FileListingPage
    # FLV
    # MP3
    # Post_Attachment
    # Image
    # Folder
    # Product_Image
    # GalleryPage_Image
    # Image_Cached
    # ArchiveWidget
    # BlogManagementWidget
    # RSSWidget
    # SubscribeRSSWidget
    # TagCloudWidget
    # DiaryWidget
    # EventTypesWidget
    # EditableCheckbox
    # EditableDateField
    # EditableEmailField
    # EditableFileField
    # EditableFormHeading
    # EditableLiteralField
    # EditableMemberListField
    # EditableMultipleOptionField
    # EditableTextField
    # EditableCheckboxGroupField
    # EditableDropdown
    # EditableRadioField
    # SubmittedFileField

  • Yakiv
    Avatar
    Community Member
    59 Posts

    Re: 2.3.4 Stable Link to this post

    Aha. I fixed it. I found this CustomScriptInit specifically in the filemanager mod and nowhere else. So, I deleted this mod, did anoter db/build, refreshed my admin and now it loads! ...So, it appears that it is the filemanager that is not compatible.

  • Yakiv
    Avatar
    Community Member
    59 Posts

    Re: 2.3.4 Stable Link to this post

    I had to add the following module, for the "Files & Images" to work:

    http://silverstripe.org/swfuploadfield-module/

    There is a dependency, on this module. Make sure to rename the unzipped folder to: swfupload

  • banal
    Avatar
    Community Member
    901 Posts

    Re: 2.3.4 Stable Link to this post

    The HasManyFileManager (or filemanager) is not compatible with SilverStripe Versions 2.3.2 and newer. I stopped to further develop this module, since the DataObjectManager provides the same (and more) functionality.
    This is also mentioned here http://silverstripe.org/has-many-file-manager-module/ and here http://bummzack.ch/hasmanyfilemanager/

  • Yakiv
    Avatar
    Community Member
    59 Posts

    Re: 2.3.4 Stable Link to this post

    Thank you, banal, for replying with the information. ...It would be helpful, if plugins that either do not work anymore or are part of some other improved plugin, would be removed from the SVN and from the downloads section.

    I also think it would be good if the plugins would be better organized, with matching versions per release. I know that some plugins were developed strictly for 2.4 and are not available for 2.3.4. But, some plugins should really have two development branches (for now) for 2.3.x and 2.4, or at least be backwards compatible (which is not always possible).

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: 2.3.4 Stable Link to this post

    FYI The root cause was a change in the way you decorate LeftAndMain subclasses.

    You were able to use DataObjectDecorator, but since 2.3.3 (I think?) you use LeftAndMainDecorator.

  • Yakiv
    Avatar
    Community Member
    59 Posts

    Re: 2.3.4 Stable Link to this post

    Thanks for the info! Very cool.

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