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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anrikun’s picture

Issue summary: View changes
anrikun’s picture

Title: Impossible to save settings for a new Media field » Impossible to save settings for a new Multimedia asset field
Issue summary: View changes
troybthompson’s picture

Also with Media 7.x-2.0-alpha4 and File Entity 7.x-2.0-beta1 when saving existing field.

samueljon’s picture

I can also confirm this error with Media module 7.x-2.0-alpha4 and file entity 7.x-2.0-beta1

baronmunchowsen’s picture

I have this issue after upgrading to:

  • File Entity 7.x-2.0-beta1+1-dev
  • Media 7.x-2.0-alpha4+7-dev
jackhutton’s picture

getting this error message as well.

Notice: Undefined index: settings in media_field_instance_validate() (line 382 of /srv/bindings/4ff3da15687b43feb291615c28308d9e/code/sites/all/modules/media/media.module).
The upload destination must be one of the allowed schemes.

file entity 7.x-2.0-beta1, media 7.x-2.0-alpha4+7-dev

anrikun’s picture

Priority: Normal » Major
AndreyMaximov’s picture

Status: Active » Needs review
FileSize
685 bytes

I 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.

rv0’s picture

If 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.

stephesk8s’s picture

#8 worked for me. Thank you for posting.

andypost’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
760 bytes

This validation should be limited by file and image types so #9 is wrong.
But there could be any field type with this settings defined.

podarok’s picture

+1 RTBC #11

  • aaron committed b192a0e on 7.x-2.x
    Issue #2361113 by andypost, rv0, AndreyMaximov: fixed Impossible to save...
aaron’s picture

Status: Reviewed & tested by the community » Fixed

Committed to http://drupalcode.org/project/media.git/commit/b192a0e.

A simple patch: my favorite kind!

Status: Fixed » Closed (fixed)

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

fazni’s picture

work for me tks

Status: Closed (fixed) » Needs review
Dave Reid’s picture

Status: Needs review » Closed (fixed)

Status: Closed (fixed) » Needs work

The last submitted patch, 11: 2361113-media-impossible_to_save_field_settings-11.patch, failed testing.

Dave Reid’s picture

Status: Needs work » Closed (fixed)