Hi
- Upgraded a D6 site to D7 and installed the latest CCK to get the fields migrated.
- Enabled CCK and CCK content_migrate.
- Enter /admin/structure/content_migrate and I get hundreds of:

Notice: Undefined index: format in _content_migrate_get_instance_values() (line 191 of /drupal-7.2/sites/all/modules/cck/modules/content_migrate/includes/content_migrate.values.inc).

Debugging at line 191 content_migrate.values.inc:
dvm($instance_value['display'][$context];

array(
  'label' => 'hidden',
)

is the content of all arrays, so this is prob. why I got all the warnings above. Any suggestions what the next step should be?

Cheers
Stein

Comments

samgreco’s picture

EDIT: Realized I've bumped my own post. Sorry.

boran’s picture

I'm getting lots of these.
Did you find a solution?

The problem seems to be the use of the format index in these lines:
foreach ($instance_value['display_settings'] as $context => $settings) {
.....
$instance_value['display'][$context]['type'] = $settings['format'];
$instance_value['display'][$context]['settings'] = field_info_formatter_settings($settings['format']);

Now it is only a notice.. these also popup during the actual migration.
Is it because of field formatter differences between d6cck and d7 fields?

Helmut Neubauer’s picture

Issue summary: View changes

I had the same problem and did some debugging. There were no 'format' for the contexts 'ds_weight', 'region' and some other. So I assume, for me, it's a problem of an old node display installation which did not clean up completely.

I propose to change the code for the content migrate module to check for the missing 'format' and ignore them (perhaps with a better warning message).