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.

Releases and Announcements /

Latest news about the SilverStripe software.

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

2.3.4 Stable


Reply


8 Posts   1718 Views

Avatar
Yakiv

Community Member, 59 Posts

28 November 2009 at 9:16pm

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

Avatar
Yakiv

Community Member, 59 Posts

28 November 2009 at 9:44pm

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

Avatar
Yakiv

Community Member, 59 Posts

28 November 2009 at 11:37pm

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.

Avatar
Yakiv

Community Member, 59 Posts

28 November 2009 at 11:50pm

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

Avatar
banal

Community Member, 901 Posts

29 November 2009 at 2:47am

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/

Avatar
Yakiv

Community Member, 59 Posts

29 November 2009 at 3:56am

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

Avatar
Hamish

Community Member, 712 Posts

3 December 2009 at 8:43am

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.

Avatar
Yakiv

Community Member, 59 Posts

5 December 2009 at 12:59pm

Thanks for the info! Very cool.