Hi all,

I'm in the middle of upgrading a Drupal 6 site to Drupal 7.
Everything has been going pretty well - but today I noticed the following issue:

Many of the users on the Drupal 7 site have the wrong user pictures/avatars.

After some digging around the databases, comparing the D6/D7 data, and going through the user.install file to get a better understanding of the update process, here is what I was able to conclude:

- The users that have the incorrect pictures assigned, instead have images that are from various node image-fields.
- The pictures that were originally assigned to those users' (In D6) are NOT anywhere in the file_managed or file_usage tables.
- The updates handling this process are "user_update_7012" and "user_update_7013" in the user.module file.

Any ideas on what went wrong with the migration?
I will keep digging around and post any more findings of interest.

Thanks

D6.38
MySQL 5.5.40-cll
PHP 5.3.29

D7.54
MySQL 5.6.35
PHP 5.6.30

Comments

gumanov created an issue. See original summary.

gumanov’s picture

Update:

After testing the D6 to D7 migration again from the beginning, I have discovered the cause of the issue..

The user.module updates work fine, and the user pictures are correct after running the update.php file initially.

Then I install the CCK Migrate module and migrate my CCK items to D7 Fields.

The CCK migration script overwrites data in the file_managed table because the newly created file ID's (fid) of the user pictures match existing file id's used by files in my CCK fields.

I'm surprised this hasn't been addressed yet. I guess this issue belongs in the CCK project. Can likely be closed due to an old duplicate (which has more info):

https://www.drupal.org/node/1558192

dcam’s picture

Status: Active » Closed (duplicate)

Closing as a duplicate per #2.