Content migrate worked great for me. Exept for a field related to image_fupload.

The message a got was: Missing field type: filefield.
and Missing widget: The 'image_fupload_imagefield_widget' widget is not available for the field_afbeelding field, it will be set to the default widget.

I added "
if (substr($instance_value['widget']['type'], 0, 6) == 'image_') {
// Module names and types changed.
$field_value['messages'][] = t("Changed field type: The '@field' field type will be changed from '@type' to 'image'.", array('@type' => $field_value['type'], '@field' => $field_value['field_name'], '@widget' => $instance_value['widget']['type']));
$field_value['module'] = 'image';
$field_value['type'] = 'image';
// default_image is now a field setting.
$field_value['settings']['default_image'] = $instance_value['widget']['settings']['default_image'];
}
"
in content_migrate.filefield.inc at line 27
and now the migration worked perfectly.

Comments

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Mark Theunissen’s picture

Status: Closed (fixed) » Active

This shouldn't be closed, I think grootte opened the issue with the status 'fixed' without realising what would happen. The issue should be open until a fix is committed to CCK.

ipwa’s picture

I had the same problem, I couldn't migrate some imagefields that use fupload from Drupal 6 to fields in Drupal 7. The fields appeared in a fieldset at the bottom labelled unavailable fields, because you couldn't migrate them. After adding the snippet above, the fields where now available for migration. When I tried to migrate them, I got the following error:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /dragond7/batch?id=52&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'public://sur (6).jpg' for key 2: INSERT INTO {file_managed} (fid, uid, filename, uri, filemime, filesize, status, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => 3699 [:db_insert_placeholder_1] => 6 [:db_insert_placeholder_2] => sur (6).jpg [:db_insert_placeholder_3] => public://sur (6).jpg [:db_insert_placeholder_4] => image/jpeg [:db_insert_placeholder_5] => 51414 [:db_insert_placeholder_6] => 1 [:db_insert_placeholder_7] => 1286920201 ) in content_migrate_filefield_data_record_alter() (line 237 of /var/www/dragond7/sites/all/modules/contrib/cck/modules/content_migrate/modules/content_migrate.filefield.inc).

Dadaisme’s picture

Title: Migrating an image_fupload_imagefield not posible without patch » Content Migrate - Migrating an image_fupload_imagefield not posible without patch

I had the same message for a field related to image_fupload :

Missing widget: The 'image_fupload_imagefield_widget' widget is not available for the field...

The field was unavailable. The code in the issue summary worked.

Thx.