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.
Scenario: Editable field in a view. Warning appears when Field -> Number of Values is not 1.
Warning: Invalid argument supplied for foreach() in media_field_widget_form() (line 168 of /opt/lampp/htdocs/website/sites/all/modules/media/includes/media.fields.inc).
Comments
Comment #2
Donit CreditAttribution: Donit commentedComment #3
Donit CreditAttribution: Donit commentedComment #4
Donit CreditAttribution: Donit commentedThe following
lets the error warning disappear, but the problem remains: it doesn't work with a quantity Javascript field beside it. When attaching Media files, quantity field goes from [- 0 +] to [------- 0 +++++].
Comment #5
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedRecent versions of media have resolved most of peoples concerns and is compatible with entity translation, multilingual and various advanced configurations. Due to the high volume of inactive and most often irrelevant issues we are Closing this as (outdated). If for whatever reason this issue is important to you AND you still have issues after checking the media recipe documentation, then let us know and we will review your concerns.
Otherwise, see the recipe documentation for how to configure media and for troubleshooting tips OR refer to the media_dev distribution if you want to see a working media setup.
As mentioned, feel free to make some noise in this issue if you still feel it is important to you or someone else.
Thanks,
Media team
Comment #6
Donit CreditAttribution: Donit commented@Chris Matthews It's outdated if a new version makes the issue obsolete. Is this the case? Your "warm words" that you've posted 1:1 on different issues say nothing. Development doesn't work like that. Test it or leave it.
Comment #7
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commented@Donit, understood. In an effort to clean up the overwhelming media issue queue so that it could be more easily and properly maintained, the Drupal Media Team decided to close as "outdated" issues that met a certain criteria so I was helping accomplish that task. The media team knew there would be issues that would need to be re-opened so thank you for doing so for this issue!
Comment #8
joseph.olstadHi Donit, could you please describe steps to reproduce "Editable field in a view."
What do you mean by editable field in a view? Is this functionality provided by a module other than 'views' or 'media' or 'file_entity' ? I'm not sure what you mean or how to reproduce this scenario.
Comment #9
Donit CreditAttribution: Donit commentedHi joseph, I think I mean https://www.drupal.org/project/editablefields.
Comment #10
joseph.olstadIs this the right project?
Comment #11
joelpittetCould someone provide minimal steps to reproduce this issue?
It sounds like an integration issue between a few modules and it’s hard to tell what the problem could be without steps.
Hoping steps aren’t super involved, the bare minimum would be appreciated: which modules, what field config and which views display settings.