Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using file_entity 7.x-2.0-beta1 and Media 7.x-2.x-dev (2014-Oct-14)
Attempting to save settings for a new Multimedia asset field, I get these 2 errors:
Notice: Undefined index: settings in media_field_instance_validate() (line 382 of [...]\sites\all\modules\media\media.module).
The upload destination must be one of the allowed schemes.
No matter Allowed URI schemes are checked or not, it has no effect.
Comment | File | Size | Author |
---|---|---|---|
#11 | 2361113-media-impossible_to_save_field_settings-11.patch | 760 bytes | andypost |
Comments
Comment #1
anrikun CreditAttribution: anrikun commentedComment #2
anrikun CreditAttribution: anrikun commentedComment #3
troybthompson CreditAttribution: troybthompson commentedAlso with Media 7.x-2.0-alpha4 and File Entity 7.x-2.0-beta1 when saving existing field.
Comment #4
samueljon CreditAttribution: samueljon commentedI can also confirm this error with Media module 7.x-2.0-alpha4 and file entity 7.x-2.0-beta1
Comment #5
baronmunchowsen CreditAttribution: baronmunchowsen commentedI have this issue after upgrading to:
Comment #6
jackhutton CreditAttribution: jackhutton commentedgetting this error message as well.
file entity 7.x-2.0-beta1, media 7.x-2.0-alpha4+7-dev
Comment #7
anrikun CreditAttribution: anrikun commentedComment #8
AndreyMaximov CreditAttribution: AndreyMaximov commentedI have the same issue and made small investigation.
This issue was introduced by the commit http://cgit.drupalcode.org/media/commit/media.module?id=e4c529a28990c1da... related to the issue #1289680: Widget does not respect Allowed URI Schemes
I've made patch that simply excludes multimedia asset fields from proposed validation.
Not sure this is correct handling of the issue but it should help you to continue using multimedia asset fields since it completely broken now.
Comment #9
rv0 CreditAttribution: rv0 commentedIf I understand correctly, above patch just bypasses the validation, so not really a fix.
Attached patch falls back to file_default_scheme().
I guess it's also not a valid fix though.
Comment #10
stephesk8s CreditAttribution: stephesk8s commented#8 worked for me. Thank you for posting.
Comment #11
andypostThis validation should be limited by file and image types so #9 is wrong.
But there could be any field type with this settings defined.
Comment #12
podarok+1 RTBC #11
Comment #14
aaron CreditAttribution: aaron commentedCommitted to http://drupalcode.org/project/media.git/commit/b192a0e.
A simple patch: my favorite kind!
Comment #16
fazni CreditAttribution: fazni commentedwork for me tks
Comment #18
Dave ReidComment #20
Dave Reid