when I select edit to change values of Title, Caption etc. one of the fields is "License settings for this image" with a widget with no possible values to assign.

As a result I get the error message "License settings for this image field is required." and cannot make any changes.

The field "field_license" is Locked

I can't remember if I added the field or not but I don't want it to be a required field.


davidsanger’s picture


If you do not activate the Media Gallery module then you get an "uneditable" state for Media

The Media Gallery modeul contains the definition for the function :


Dave Reid’s picture

I don't actually see this being a bug in Media itself? There's noting about a license setting field in the code. Should this issue move to Media Gallery?

davidsanger’s picture

Version:7.x-1.0-beta6» 7.x-1.0-beta5

I am very new to Drupal, but it sounds like Media Gallery added the license field and then when I disabled Media Gallery the nodes became unupdatable.

moved from Media to Media Gallery

davidsanger’s picture

Project:Media» Media Gallery
Version:7.x-1.0-beta5» 7.x-1.0-beta6
dimitriseng’s picture

Version:7.x-1.0-beta5» 7.x-1.0-beta6

Hi, I agree that it should be possible to make some fields optional, for example the license field. Why does this have to be a required field in media gallery? See also #1165804: How to remove certain fields from being displayed

lsolesen’s picture

Status:Active» Postponed (maintainer needs more info)

Is this issue still valid in beta7?

Moloc’s picture

Version:7.x-1.0-beta6» 7.x-1.0-beta7
Status:Postponed (maintainer needs more info)» Active

This is still an issue with beta7.
Here is a duplicate: #1345734: Selecte for "License settings for this audio" is empty and file can not be saved
This issue is older, the other has a better explanation. I think one of these could be closed as duplicate.

lsolesen’s picture

Priority:Normal» Major

This is a rather big issue. A temporary workaround is to delete the field from the file types after disabling media gallery.

But I think the best temporary solution is probably to make it "not required".

lsolesen’s picture

Issue tags:+Beta8-blockers


lsolesen’s picture

Issue tags:-Beta8-blockers+Beta9-blocker


lsolesen’s picture

Issue tags:-Beta9-blocker+Beta10-blockers


leschekfm’s picture

to #8: I couldn't delete the field even after disabling the module, because the field was set to be locked.
I had to manually unlock the field in the 'field_config' table, before I was able to remove it.

DrupalUser78’s picture

Issue summary:View changes

I don't know how to write a proper fix for Drupal.
This workaround helps to save images with the entry "None (all rights reserved)":
a) Open your drupal database
b) Select the table "field_revision_field_license"
c) Modify the field "field_license_value": (Descriptions from phpMyAdmin)
1. Change 'Default' from the media gallery default value "NULL" to "None"
2. Deselect 'Null'
3. Save this modifications

shortspoken’s picture

I vote for either not locking the license field
or leave it out completely.