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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

2.3 Branch


Go to End


19 Posts   14146 Views

Avatar
PapaBear

Community Member, 26 Posts

30 April 2010 at 2:32pm

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

James.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

30 April 2010 at 2:57pm

You guys are using the download attached to this thread?

Avatar
PapaBear

Community Member, 26 Posts

30 April 2010 at 4:31pm

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.

Avatar
PapaBear

Community Member, 26 Posts

30 April 2010 at 4:42pm

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

J

Avatar
Terminator4

Community Member, 81 Posts

30 April 2010 at 8:15pm

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.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

1 May 2010 at 1:46am

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

Avatar
jaybee

Community Member, 49 Posts

19 May 2010 at 10:27pm

Edited: 20/05/2010 12:10am

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

Avatar
UncleCheese

Forum Moderator, 4102 Posts

20 May 2010 at 1:50am

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