This is a cross-post to two other related issues:
#1001060: Undefined index _field_info_prepare_instance_widget
#1292090: Notice: Undefined index: module in _field_info_prepare_instance_widget() (line 382) <- Incompatibility with Entity Reference
The issue is that on Drupal 7.8 & 7.9 with sites that have Field Collections and Entity References enabled, have two warning messages per instance generated on a number of the Field UI pages.
These are:
Notice: Undefined index: module in _field_info_prepare_instance_widget() (line 382 of /home/htsa/public_html/modules/field/field.info.inc).
Notice: Undefined index: module in _field_info_prepare_instance_display() (line 350 of /home/htsa/public_html/modules/field/field.info.inc).
Disabling either module will stop these messages, so there is a conflict generated somewhere.
Comment | File | Size | Author |
---|---|---|---|
#7 | default-node-entity-type-1329354-7-ref-issue-1292090.patch | 735 bytes | Alan D. |
#5 | default-node-entity-type-1329354-3-ref-issue-1292090.patch | 640 bytes | Alan D. |
#3 | default-node-entity-1329354-3-ref-issue-1292090.patch | 0 bytes | Alan D. |
Comments
Comment #1
Alan D. CreditAttribution: Alan D. commentedThe call to entity_get_info() in hook_entity_info() appears to be the conflicting condition here. If you are happy to default this to 'node' or 'user', we could close #1292090: Notice: Undefined index: module in _field_info_prepare_instance_widget() (line 382) <- Incompatibility with Entity Reference at least for the meantime.
Comment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedYep, we can default to 'node', no problem. Do you have a patch for me?
Comment #3
Alan D. CreditAttribution: Alan D. commentedK. Edited in text editor, double check no errors :)
Comment #4
Alan D. CreditAttribution: Alan D. commentedPS: Credit to EvanDonovan
Comment #5
Alan D. CreditAttribution: Alan D. commentedPermission error, this time with content.
Comment #6
Alan D. CreditAttribution: Alan D. commentedChanging status
Comment #7
Alan D. CreditAttribution: Alan D. commentedI've updated the comment about using entity_get_info().
Comment #8
Damien Tournoud CreditAttribution: Damien Tournoud commentedMerged into 7.x-1.x.