Hey Lev,

I just noticed a bug that only occurs when a required list is set to "Sync List During Cron". Basically, if you delete a user, the module correctly unsubscribes that user from the required Mailchimp list. But if you then add a new user with the same e-mail address (as if the user is re-registering) then the user will not be re-subscribed to the list if the update is being done via cron. Instead, you'll see an error message in your site's log.

On the other hand, if the "Sync List During Cron" option is unchecked (and updates are happening upon new account creation), then things work properly: A deleted user who re-registers is correctly added to the subscription list (and is removed from the unsubscribed list).

Thoughts?

--Ben

Comments

BenK’s picture

The error message that shows up in my Drupal logs is:

MCAPI Error: %errmsg

--Ben

levelos’s picture

Component: Code » Lists
Assigned: Unassigned » levelos

Hey Ben - The main difference in the 2 approaches is that cron is using the MC API's batch methods rather than individual, so the issue may be tied up in there. I just made a commit to correctly report the error message. If/when you get a chance, try to rerun your test and report the actual error message. I'll try to recreate on my end as well. Thanks.

levelos’s picture

Status: Active » Fixed

Alright, found a solution and included in commit 82f51c8ddf10dceac73e07224dc6ff49c6c1827c. Users are now deleted rather than unsubscribed when a user account is deleted in Drupal.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.