There is some weird bug here, where on the manage file display settings for an audio media field (media module version 1.0-rc2) throws this error:

Notice: Undefined variable: link_types in mediaelement_field_formatter_settings_form() 
(line 201 of /Users/.../sites/all/modules/contrib/mediaelement/mediaelement.module).

And the formatter setting's vertical tabs are all duplicated and just generally munted.

Let me know if there's anything I can explain further or help with.

Cheers

Comments

gollyg’s picture

Status: Active » Needs review
StatusFileSize
new1.3 KB

There are two issues here:

* The undefined link type
* The munged settings form

Both issues appear to have been fixed in 7.x-2.x. I don't know if they will be backported.

Both issues were created in the settings form function:

mediaelement_field_formatter_settings_form

The first was simply and undefined variable on a textfield and is dealt with here http://drupal.org/node/1170536

The second was that the form was returning the original form plus modifications. This has been dealt with by changing the name of the form array to 'element'.

Have attached a patch against 7.x-1.1.

jptaranto’s picture

Thanks heaps!

nikosnikos’s picture

Patch #2 fixes the issue for me. Thanks.

dave reid’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Needs review » Fixed

This has now been fixed in the 7.x-1.x branch and a new release is coming soon.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Added line break in error message.