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.
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
Comment #1
samgreco CreditAttribution: samgreco commentedEDIT: Realized I've bumped my own post. Sorry.
Comment #2
boran CreditAttribution: boran commentedI'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?
Comment #3
Helmut Neubauer CreditAttribution: Helmut Neubauer commentedI 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).