Closed (duplicate)
Project:
D7 Media
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2010 at 09:24 UTC
Updated:
22 Dec 2010 at 21:55 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| media-settings.patch | 782 bytes | gábor hojtsy |
Comments
Comment #1
effulgentsia commentedWith #970328-40: Fatal Error during Media Browser upload, this shouldn't be needed. Please re-open if I'm wrong about that.