I've noticed these php warnings in the Drupal log:
Notice: Undefined variable: node in _content_migrate_batch_process_migrate_data()

They're coming from this line:

$query->addExpression("'". $node['type'] ."'", 'bundle');

It doesn't seem to cause any problem with the migration, but I don't know if it will cause any problems later.

CommentFileSizeAuthor
#1 Screenshot_1.jpg40.96 KBdrm
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drm’s picture

FileSize
40.96 KB

It's causing problems for my migration. Every field is failing. The instance gets created, but no data is converted. See attachment.

drm’s picture

I was having this problem (line 358, not 370) as well and I went to an old site that I converted and migrated a year ago. I found that the following few lines were in the CCK on that site but are missing on the current one:

$node = array_shift($context['sandbox']['nodes']);
  if (!$node) {
    return;
  }

Adding that in just after the // Process 100 nodes in each batch. comment on line 347 fixed it.

Carlos Miranda Levy’s picture

In case anyone is wondering where to add that code, it goes into modules/cck/modules/content_migrate/includes/content_migrate.admin.inc