I'm trying to migrate a site in Drupal 6 to Drupal 7. I have installed Migrate, Migrate Extras and Drupal to Drupal Migrate modules. I use the UI wizard to mapping the fields. All is ok, but the multivalue fields (text fields with mutlivalue, link fields with multivalue, nodereference fields with multivalue and image fields with multivalue) don't work. Never. When try to migrate the nodes, the multivalue fields don's pass. I search in the Migrate Issues the solution but without luck, i try to install a lot of patchs, but nothing…
I've tried everything and no way ...

Does anyone know how to migrate multivalue fields?
What I have to do to make it work?

Barry Collins

CommentFileSizeAuthor
#6 single-image-migrate.png40.7 KBdcine
#4 multivalue-images.png45.35 KBdcine
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dcine’s picture

Version: 7.x-2.8-beta1 » 7.x-2.x-dev
dcine’s picture

Ok, the error is solved by installing the latest version of the module (Migrate 2.8 beta 1) but only partially. Let me explain:
The "Multi-valued text fields" now migrate smoothly, but the "image multivalued fields" does not, are still not working. I get only migrate the image fields that contain a single value.

Can someone help me out?

mikeryan’s picture

Title: Migrate multivalue fields don't work » Migrating multivalue images doesn't work
Status: Active » Postponed (maintainer needs more info)
Issue tags: -Migrate 2.8, -multivaule

How did you set up the image field mappings in the UI? Maybe a screenshot of those mappings would help...

dcine’s picture

FileSize
45.35 KB

Ok, thanks for your help. This is a screenshot of my mappings.
In the picture you can see what I have set. Basically I'm using "MigrateFileFid" to migrate images:

Multivalue image field configuration

I can migrate the image fields when the field is single image field, when is a multivalued field, not.

Could you help me (Please!)?

mikeryan’s picture

I'm not sure why it would have this effect, but you shouldn't set the source migration on the file_class mapping.

This may seem obvious, but just to double-check - the image field on the destination side is configured to have multiple values, right?

dcine’s picture

FileSize
40.7 KB

Yes It is an exact copy of the field, it is a multivalue field.
This is an example of how I set up another field image of a single image that works:

Single image migrate set

Do you know why it might be failing?
Could you help me (Please!)?

mikeryan’s picture

Status: Postponed (maintainer needs more info) » Active

When replying to an issue marked "Postponed (maintainer needs more info)" be sure to reset the status to Active for more visibility.

dcine’s picture

Ok, sorry I did not know very well the functioning of issues.

mikeryan’s picture

Project: Migrate » Drupal-to-Drupal data migration
Component: migrate_ui » Code

Well, this used to work for me but doesn't now - wondering if #2466405: Illegal string offset 'alt' broke it. @dcine, what version of migrate_d2d are you using - the last supported release, or the -dev?

  • mikeryan committed 59a9482 on 7.x-2.x
    Issue #2485895 by mikeryan: Fix broken multi-value images
    
mikeryan’s picture

Status: Active » Fixed

OK, committed a fix. @dcine, once the -dev is updated you can try it out (or if you can't wait, downgrade to migrate_d2d 2.1).

dcine’s picture

Status: Fixed » Active

Sorry, I installed the new version of the module (7.x-2.1 + 6-dev) and it does not work (for my setup). Still the same.
I only need migrate this field to finish the migration.
Could you help me (please!)?

mikeryan’s picture

Sorry, I have no other ideas (other than downgrading to the 2.1 release?).

dcine’s picture

I downgraded to 2.1 and…nothing, it fails again…
Does anyone know how to fix this (Please!)?

dcine’s picture

Status: Active » Fixed

Ok, After trying again and again, at the end I reinstalled all modules of "Migrate" in its latest version, and now it works. I can migrate smoothly and all images. The problem now is different, but I've already made the question in another message ...

Thanks! for the help and I hope that my issue can help others to find solutions.

Status: Fixed » Closed (fixed)

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