Running this drush command:

drush content-migrate-fields --yes

And it goes through all of my fields, migrating structures just fine, but once it starts trying to migrate the actual data, I get a huge stack of errors like these (one for each field):

Migrating data for field_company [status]
The command could not be executed successfully (returned: Could not startup., code: 1) [error]

PHP 5.2.17
drush 4.5

Any thoughts would be greatly appreciated.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrded’s picture

I have same problem, but drush process was fine:

$ drush content-migrate-fields field_link
The following fields will be migrated: field_link [status]
Do you really want to continue? (y/n): y
Migrating structure for field_link  [status]
Migrating data for field_link  [status]
Invalid argument supplied for foreach() content_migrate.module:150  [warning]
Migration complete  [status]

it seems what all fine, but if you check admin/structure/content_migrate page then you will see what drupal thinks what these fields have not been migrated.
admin/structure/types/manage/*/fields as well.

iamEAP’s picture

FYI, the solution to my problem was to migrate each field one-by-one, first the structure, then the data, rather than attempting to migrate all fields at once in one command e.g.

#
# migrate field_image field
#
drush content-migrate-field-structure field_image
drush content-migrate-field-data field_image

#
# migrate field_files field
#
drush content-migrate-field-structure field_files
drush content-migrate-field-data field_files

With nearly a hundred fields, this was an incredible pain, but it worked.

The content-migrate-fields function needs looking at though, it would appear.

mrded’s picture

Please check my patch

iamEAP’s picture

Actually, when I download the latest Content Migrate dev release, without applying your patch, my original problem doesn't exist.

Your problem is probably unrelated. Feel free to hijack this thread though, since I can't reproduce my problem.

attheshow’s picture

Tried the patch in #3. Didn't work for me.

The method suggested in comment #2 did work for me. Painful, but it works.

It would be nice if the content-migrate-fields function did actually migrate the data and not just the structure.