Looks like $format['settings'] can be NULL in media_get_file_without_label() in which case, the array_merge() will result in NULL instead of array() and then the subsequent call to field_field_view() ends up with a WSOD in _field_info_prepare_instance_display() where the += array operator is being used on a NULL derived from this settings array.

This patch certainly fixes the issue, ensuring arrays are used for array_merge(). Maybe it can be tracked down to a field_info_instance() bug, not sure its settings value is intended to be used right away this way.

CommentFileSizeAuthor
media-settings.patch782 bytesgábor hojtsy

Comments

effulgentsia’s picture

Status: Needs review » Closed (duplicate)

With #970328-40: Fatal Error during Media Browser upload, this shouldn't be needed. Please re-open if I'm wrong about that.