Closed (duplicate)
Project:
D7 Media
Version:
7.x-2.0-alpha2
Component:
File entity
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2013 at 14:18 UTC
Updated:
26 Aug 2013 at 13:07 UTC
Because media_file_default_displays_alter() gets fired when features compares the export to the DB, the export always shows as overridden.
Additionally, PHP warnings are thrown because of this:
Warning: Creating default object from empty value in media_file_default_displays_alter() (line 1080 of /home/christopher/c4tech/admiral/sites/all/modules/media/media.module).
Warning: Creating default object from empty value in media_file_default_displays_alter() (line 1091 of /home/christopher/c4tech/admiral/sites/all/modules/media/media.module).
Warning: Creating default object from empty value in media_file_default_displays_alter() (line 1102 of /home/christopher/c4tech/admiral/sites/all/modules/media/media.module).
Comments
Comment #1
das-peter commentedFound duplicate: #2071073: php warnings are thrown because media_file_default_displays_alter() checks for configs that may not exist
Consolidated all information into that ticket. Please follow / contribute to the other issue, thanks.