Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I save the module admin page I get this:
Notice: Undefined index: view modes in field_view_mode_settings() (line 627 of /home/www2/drupal-7.16/modules/field/field.module).
Warning: Invalid argument supplied for foreach() in field_view_mode_settings() (line 627 of /home/www2/drupal-7.16/modules/field/field.module).
Comments
Comment #1
katannshaw CreditAttribution: katannshaw commentedHi NancyDru,
I'm having the same issue when creating a new node that uses fields connected to the Field Collection module, and found another issue report titled Notice: Undefined index: view modes in field_view_mode_settings() (line 649.
Are you using that module with this node type?
(Side note: I love what you do for the community.)
Comment #2
NancyDruYes.
Comment #3
a.milkovskyI have the same issue!
Comment #4
a.milkovskyIf you have field_collection_table enabled this can help: field_view_mode_settings
Comment #5
katannshaw CreditAttribution: katannshaw commentedThanks a.milkovsky! That patch seems to have worked for me. I'll make note of it on that issue report as well.
Comment #6
NancyDruI have that patch installed, but am still seeing the error.
Comment #7
NancyDruSeeing this when Cron runs