Symptom: Users are automatically unsubscribed from required newsletters when they login if both Remember Me and MailChimp are enabled.
Cause: When you log in, Remember Me module calls the user_save function in the remember_me_user hook ($op="login"). user_save then invokes all modules' hook_user with the "update" op, even though the op was actually "login". MailChimp will see the "update" op and think it's an update, rather than a "login", and do its thing, which ends up being, unsubscribing the user.
I don't know what the right way to fix this is. Not sure if it's Remember Me or MailChimp that should be fixed, so I don't know if I should put this issue in MailChimp or in RememberMe. I don't think I'm allowed to post in both places? Or should I?
Comments
Comment #1
nickl commentedKindly review and test this patch as a solution to this problem.
Edit:
Patch fixes session issues not user_save, my mistake.
Since user needs to be saved after login to store the remember_me checkbox setting, I can't see a way for this module to change its behaviour.
Maybe MailChimp has a fix for this.
Comment #2
nickl commentedChanged project to MailChimp.
Comment #3
Bèr Kessels commentedComment #4
levelos commented