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

nickl’s picture

Status: Active » Needs review

Kindly 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.

nickl’s picture

Project: Remember me » Mailchimp
Status: Needs review » Active

Changed project to MailChimp.

Bèr Kessels’s picture

Title: Doesn't work with "MailChimp" module » Remember Me module doesn't work with "MailChimp" module (and vice versa)
levelos’s picture

Status: Active » Closed (won't fix)