Needs review
Project:
Mailchimp
Version:
2.x-dev
Component:
API
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Sep 2019 at 04:10 UTC
Updated:
4 Feb 2026 at 14:02 UTC
Jump to comment: Most recent, Most recent file
Continuation of patch#2903853 to write subscribed to DB.
When using the unsubscribed or cleaned addresses webhook, the subscribed status isnt updated in the DB.
For example, an email bounces from Mailchimp, its added to the cleaned Addresses list on Mailchimp. The webhook sends the info back to Drupal which 'unticks' the subscribed box on the user profile. When viewing their profile you can see its unticked, however the DB is not updated to reflect it is not subscribed (value from 1 to 0).
If the user account is re-saved it is updated, but with thousands of users and subscribers the site managers cannot be resaving all accounts to have accurate data from the database.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 3080278-12.patch | 4.67 KB | siemen_hermans |
| #10 | 3080278-10.patch | 4.67 KB | sagar ramgade |
| #8 | 3080278-8.patch | 4.52 KB | dmitriy.trt |
| #6 | 3080278-6.patch | 4.53 KB | casey |
| #4 | 3080278-3-with-2981877.patch | 4.5 KB | arnaudvz |
Comments
Comment #2
samuel.mortensonComment #3
arnaudvz commentedI've made a patch for handling the subscription, unsubscription and cleaned webhooks.
However the profile webhook still is a TODO.
Comment #4
arnaudvz commentedPatch for the latest stable release including the patch from #2981877: Do mailchimp list subscription processing in postSave. Please ignore.
Comment #5
gcbComment #6
casey commentedReroll of #4
Comment #7
gcbComment #8
dmitriy.trt commentedJust a reroll of #6 on 2.x. It's applicable to 2.2.0 as well.
Comment #9
en-cc-org commentedHello, thanks for the patch (using #8), it had been working fine with mailchimp 2.2.2 (core 10.2.2)
But, patch failed to re-apply when upgrading to 2.2.3 (and core to 10.2.7 if that makes any difference).
Other, unrelated patches re-applied OK. Wondering if it needs a re-roll?
Thanks
Comment #10
sagar ramgade commentedHere's a patch that is re-roll of #8 on 2.24.
Comment #11
en-cc-org commentedThank you! Patch#10 is working well with v2.2.4
Will this patch be included in an upcoming v3 (Drupal 11 compatible) version?
Comment #12
siemen_hermans commentedPatch for version 3.1.3