Its probably fairly edge case, but line 341 in multifield.module expects the '_add_existing_field' key to exist on the form - In my case Im working on a new site with only two fields defined so far. When I add both of them to the multifield, the field ui barfs with:

Fatal error: Function name must be a string in ..../public/modules/field_ui/field_ui.admin.inc on line 154

because all existing fields have already been added to the multifield, _add_existing_field gets set, and because multifield_type_get_fields() returns NULL (as this is the very first multifield I've created) we end up with a weird existing field situation that causes the Fatal Error.

Comments

Mixologic’s picture

StatusFileSize
new1013 bytes

And here's a patch that checks for _add_existing_field

(oh, and multifield_type_get_fields() returns an empty array, not NULL - that way overzealous reporting)

Mixologic’s picture

Status: Active » Needs review

I can never seem to remember to mark things needs review.

dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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