If this module is installed on a Drupal 7 site and I use the migrate module to import from a Drupal 6 site (which does not have this module installed), I get a lot of error messages like this:

Undefined index: image_field_caption File /path/to/public_html/sites/all/modules/contrib/image_field_caption/image_field_caption.module, line 221 (file: /path/to/public_html/sites/all/modules/contrib/image_field_caption/image_field_caption.module, line 221)

I don't know if the attached patch is the best approach, but it solved the problem for me. It checks whether $item['image_field_caption'] is set on the incoming node before trying to do the insert. It also fixes a misspelling in a comment.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thebruce’s picture

I also found that if a field was not being migrated that the tests for $entity->field_name would create migration warnings and cause problems, this further check should handle that. Works in tandem with original patch for migration improvements.

iStryker’s picture

Status: Active » Closed (outdated)

Marking all 7.x as out of date. If the problem persists, then only a new issue.