Hi,
I don't know what I have done and out of sudden the warning message came out.
In drupal 7.10 we still have a foreach at that line:
$entity_info = entity_get_info($entity_type); foreach ($entity_info['view modes'] as $view_mode => $view_mode_info) { if (!isset($settings[$view_mode]['custom_settings']) && $view_mode_info['custom settings']) { $settings[$view_mode]['custom_settings'] = TRUE; } }
The error message typically means that the argument to foreach was not an array or NULL.
Are you using the Display suite module? Then this could be the same issue as #1262706: Invalid argument supplied for foreach in field_view_mode_settings() caused by ds.module.
This is probably an issue which should be closed at this point.
Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.
Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.
Comments
Comment #1
bdu commentedIn drupal 7.10 we still have a foreach at that line:
The error message typically means that the argument to foreach was not an array or NULL.
Are you using the Display suite module? Then this could be the same issue as #1262706: Invalid argument supplied for foreach in field_view_mode_settings() caused by ds.module.
Comment #2
mgiffordThis is probably an issue which should be closed at this point.