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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

2.3 Branch


19 Posts   5777 Views


30 April 2010 at 2:32pm Community Member, 26 Posts

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



30 April 2010 at 2:57pm 4085 Posts

You guys are using the download attached to this thread?


30 April 2010 at 4:31pm Community Member, 26 Posts

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



30 April 2010 at 4:42pm Community Member, 26 Posts

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



30 April 2010 at 8:15pm Community Member, 81 Posts

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.


1 May 2010 at 1:46am 4085 Posts

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


19 May 2010 at 10:27pm (Last edited: 20 May 2010 12:10am), Community Member, 42 Posts

[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;
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?


20 May 2010 at 1:50am 4085 Posts

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