Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » HasManyFiles and SS ver 2.3.2

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1499 Views
  • biapar
    Avatar
    Forum Moderator
    435 Posts

    HasManyFiles and SS ver 2.3.2 Link to this post

    Hi,

    after add HasManyFile Trunk to SS 2.3.2, I had these error:

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

    Line 43 in C:\xampp\htdocs\ss\sapphire\core\model\DataObjectDecorator.php
    Source

    34     * @param DataObject $owner
    35     */
    36    function setOwner(Object $owner, $ownerBaseClass = null) {
    37       if(!($owner instanceof DataObject)) {
    38          user_error(sprintf(
    39             "DataObjectDecorator->setOwner(): Trying to decorate an object of class '%s' with '%s',
    40             only Dataobject subclasses are supported.",
    41             get_class($owner), $this->class),
    42             E_USER_ERROR
    43          );
    44          return false;
    45       }
    46       
    47       parent::setOwner($owner, $ownerBaseClass);
    48    }
    49    

    Why?

  • banal
    Avatar
    Community Member
    901 Posts

    Re: HasManyFiles and SS ver 2.3.2 Link to this post

    Hi
    I'm sorry, the HasManyFileManager currently doesn't play well with SS 2.3.2.
    You could either switch to the DocumentObjectManager or wait until I release a fix..

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: HasManyFiles and SS ver 2.3.2 Link to this post

    Hey is there anything I can do to help with the update to hasmanyfilemanager? I got the same error, so went to silver stripe 2.3.0, it works but not how I remember it. I remember it being nicely laid out with image info on the right and drag and drop reordering. You probably already know but I'll post a screen grab anyway.

    Attached Files
  • UncleCheese
    Avatar
    4085 Posts

    Re: HasManyFiles and SS ver 2.3.2 Link to this post

    You might also want to check out FileDataObjectManager for a module with the same functionality but more features.

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: HasManyFiles and SS ver 2.3.2 Link to this post

    Thanks UncleCheese
    I tried out DataObjectManager but I whats up with "DataObjectManager requires the SWFUpload module." when you navigate to files and images? I can't see the swfupload module. I guess this hasn't been updated with 2.3.2 yet.....?

    OPS! Sorry UncleC I found your swfupload module in the unsupported module section. I get some funcky errors when in the assets admin section of 2.3.2. Giving it a go on 2.3.0 now

  • UncleCheese
    Avatar
    4085 Posts

    Re: HasManyFiles and SS ver 2.3.2 Link to this post

    Hmm.. It's only been tested in 2.3.2. I'm not sure it works in 2.3.0. What errors were you getting?

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