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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Alan D.’s picture

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

Damien Tournoud’s picture

Yep, we can default to 'node', no problem. Do you have a patch for me?

Alan D.’s picture

K. Edited in text editor, double check no errors :)

Alan D.’s picture

PS: Credit to EvanDonovan

Alan D.’s picture

Permission error, this time with content.

Alan D.’s picture

Status: Active » Needs review

Changing status

Alan D.’s picture

I've updated the comment about using entity_get_info().

Damien Tournoud’s picture

Status: Needs review » Fixed

Merged into 7.x-1.x.

Status: Fixed » Closed (fixed)

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