Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » 2.3 Branch

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3
Go to End
Author Topic: 5676 Views
  • PapaBear
    Avatar
    Community Member
    26 Posts

    Re: 2.3 Branch Link to this post

    I am getting these same symptoms also from a clean 2.7 install. Any update?

    James.

  • UncleCheese
    Avatar
    4085 Posts

    Re: 2.3 Branch Link to this post

    You guys are using the download attached to this thread?

  • PapaBear
    Avatar
    Community Member
    26 Posts

    Re: 2.3 Branch Link to this post

    Confirm. I've reinstalled the two modules as attached to the thread and all now is serene.

    Just having trouble with UserForms module now. About to reinstall that module again from the latest build. *sigh* Site was due for delivery an hour ago.

    Never mind. "Murphy" is a hard taskmaster

    James.

  • PapaBear
    Avatar
    Community Member
    26 Posts

    Re: 2.3 Branch Link to this post

    And the Userforms reinstall fixed that issue! Woohoo! Now only the bespoke stuff to finalise and the draft goes to the client!

    J

  • Terminator4
    Avatar
    Community Member
    81 Posts

    Re: 2.3 Branch Link to this post

    Perfect, got the updates. I still have the following issues:

    - View button does not show next to the edit button
    - The save button still needs to be scrolled to
    - There is now a white gap on the right in the lightbox

    New issue
    _________
    When I use the ManyManyData I get the following error:
    [Notice] Undefined index: DataObjectManagerAction

    Never had this before so I have now reverted to an older version of your module.

  • UncleCheese
    Avatar
    4085 Posts

    Re: 2.3 Branch Link to this post

    Note that there was never a "view" button in DOM. A view mode is generated if the user doesn't have edit perms.

  • netnerd85
    Avatar
    Community Member
    42 Posts

    Re: 2.3 Branch Link to this post

    [UPDATE] I just copied over HTMLDropdownField.php from the new version of dataobject manager

    Hi, I've installed SS v2.3.7 and everything works until I install the attached version of dataobject manager (2.3), When I go to Files & Images I get this error, how can I get it to work?

    [Warning] Unknown class passed as parameter
    GET /silverstripe/website/index.php/admin/assets/

    Line 445 in D:\silverstripe\website\sapphire\core\Object.php

    436     * Prepare static variables before processing a {@link get_static} or {@link set_static}
    437     * call.
    438     */
    439    private static function prepare_statics($class) {
    440       // _cache_statics_prepared setting must come first to prevent infinite loops when we call
    441       // get_static below
    442       self::$_cache_statics_prepared[$class] = true;
    443
    444       // load statics now for DataObject classes
    445       if(is_subclass_of($class, 'DataObject')) {
    446          $extensions = Object::uninherited_static($class, 'extensions');
    447          if($extensions) foreach($extensions as $extension) {
    448             if(preg_match('/^([^(]*)/', $extension, $matches)) {
    449                $extensionClass = $matches[1];
    450                DataObjectDecorator::load_extra_statics($class, $extensionClass);
    451             }

    And here's a bit of the trace:

    * is_subclass_of(HTMLDropdownField,DataObject)
    Line 447 of Object.php
    * Object::prepare_statics(HTMLDropdownField)
    Line 269 of Object.php
    * Object::uninherited_static(HTMLDropdownField,extensions)
    Line 515 of Object.php
    * Object->__construct()
    Line 74 of RequestHandler.php
    * RequestHandler->__construct()
    Line 81 of FormField.php
    * FormField->__construct(ParentID,Folder,,)
    Line 59 of DropdownField.php

    It's looking for HTMLDropdownField, where does that even exist?

  • UncleCheese
    Avatar
    4085 Posts

    Re: 2.3 Branch Link to this post

    That was added in the 2.4 version. Should be in /code/dropdown_fields/

    5676 Views
Page: 1 2 3
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.