Active
Project:
Remember me
Version:
7.x-1.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2017 at 18:59 UTC
Updated:
7 Jun 2017 at 19:02 UTC
Jump to comment: Most recent
When the user logs in, $user->picture is set to an object. When remember_me_user_login() sends $account to drupal_write_record(), the latter tries to cast the picture column to an int, as it's expecting $user->picture to be an int, the picture fid, not the full object. THIS CAUSES THE VALUE OF picture to loose the fid and therefor leads to loss of data: the users's picture fid is lost.
One solution would be to replace $user->picture as an object with $user->picture->fid inside of remember_me_user_login().
This is essentially a duplicate of https://www.drupal.org/node/1071330#comment-12082176
Comments
Comment #2
aklump commented