Hi,

I don't know what I have done and out of sudden the warning message came out.

Comments

bdu’s picture

Status: Active » Postponed

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.

mgifford’s picture

Issue summary: View changes
Status: Postponed » Postponed (maintainer needs more info)

This is probably an issue which should be closed at this point.

Version: 7.9 » 7.x-dev

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.

Status: Postponed (maintainer needs more info) » Closed (outdated)

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.