Migration, using drush migrate-upgrade, of CCK file fields fails silently for me. The entry is created in file_managed but nothing in file_usage for those files.

File uploads are working.

I should add that I've always had this problem while others didn't. I even sent my test db to phenapromixa who said it migrated perfectly for him. Because of that I reviewed my setup, checking versions of php, mysql etc. I think I updated php from that but still no change to the file problem.

Comments

quietone created an issue. See original summary.

mikeryan’s picture

Just tried myself with my D6 site using the very latest git pull of core, my image field was properly created and populated (file_usage and node__field_new_images rows were present). On the D6 side, the field type is filefield, set for multiple values, using the imagefield widget - how does that compare to yours? Is the field itself, along with its instance on the node type, being properly created? Did you check the field table as well as file_usage?

mikeryan’s picture

Also, since phenaproxima had success, what about environment factors - PHP version, MySQL version, ...

quietone’s picture

Wow! It works today, the file_usage table is populated. The only things I did was pull the latest commits, as usual, and I added a content type to the D6 database, added a field to it and then deleted the content type. I didn't restart any services like apache or mysql since testing yesterday.

I have a suspicion that it started working last night, as the file_usage was populated this morning. But I started an install before I could check that out properly.

To answer your questions:
*) the field type is filefield, set for one value, using the File Upload widget.
*) yes, I checked the version of php/mysql etc and from that I did update php many weeks ago
*) yes, the field table was correct and the field appeared on the edit page of the node

For me, this is fixed, though how is a mystery.

quietone’s picture

Status: Active » Closed (cannot reproduce)
quietone’s picture

Ha, woke up this morning and realized it was user error. I've been using Ctl-R to grab the drush migrate-upgrade command from history and press enter. Turns out I should have reviewed that command, it was incomplete.