Simple Membership Plugin › Forums › Simple Membership Plugin › MailChimp integration not adding contact to audience
- This topic has 8 replies, 3 voices, and was last updated 3 years, 2 months ago by
admin.
-
AuthorPosts
-
March 17, 2023 at 9:37 pm #25736
DavidV
ParticipantHello!
I’ve got Simple Membership set up and everything seems to be working except the MailChimp integration.
It’s not creating a contact within the audience.
I’ve followed the MailChimp setup documentation.
I’ve set up debugging (log below) I’ve disable and re-enabled double opt in.
No luck! Everything else works fine upon registration, Just no contact showing in the audience. (And yes, quadruple checked the spelling). I’ve tried with segments and without.
I’m suspecting the audience should be before the first pipe in the debug data? But it is in the Membership Level settings…..
[2023/03/17 17:03:57] – SUCCESS: Member registration complete email sent to: test1@domain.com. From email address value used: Lessons <hello@domain.com>
[2023/03/17 17:03:57] – SUCCESS: [MailChimp] Mailchimp integration addon. After registration hook
[2023/03/17 17:03:57] – SUCCESS: [MailChimp] Debug data: |test1@domain.com|DAVID|VThanks for your reply!
DavidVMarch 19, 2023 at 1:11 am #25739The Assurer
ModeratorDid you check for an email address already on the list, or the opt-in email being in the recipient’s spam folder?
https://simple-membership-plugin.com/signup-members-mailchimp-list/#:~:text=The%20following%20are%20the%20common%20causes%20of%20failureMarch 20, 2023 at 5:24 am #25741DavidV
ParticipantThank you for the reply!
I checked both those (again – just in case 🙂 ). I even set up a new email account in case MailChimp was blocking a previously unsubscribed address. I haven’t dug too far into the code, but it looks like it’s not completing and not logging after a certain point.
March 20, 2023 at 6:41 am #25742DavidV
ParticipantFound the start of the problem… Likes like my first guess was right. It’s not pulling the list name from the admin settings. From line 185+ of smtp-mailchimp-action.php:
SwpmLog::log_simple_debug( “[MailChimp] Debug data: ” . $mc_list_name . “|” . $email . “|” . $first_name . “|” . $last_name, true );
if ( empty( $mc_list_name ) ) {//This level has no mailchimp list name specified for it
return;
}It’s logging a blank $mc_list_name and then quietly returning.
I’ll dig in and report further findings.
March 20, 2023 at 8:53 am #25749DavidV
ParticipantFound it! Mostly…
line 110 of swpm-mailchimp-action.php: (note the “swpm_”)
$membership_level = sanitize_text_field( $_POST[ ‘swpm_membership_level’ ] );
I’m now getting a 400 response from MailChimp – but that’s a different issue.
How does one go about getting this into the code base?
March 20, 2023 at 10:38 pm #25752The Assurer
ModeratorThe developer will be advised.
March 22, 2023 at 4:55 am #25753admin
KeymasterThank you for pointing this out. We made some changes to the main plugin in the new version which caused this addon to be outdated and have this bug.
I have just updated the code of the add-on that should resolve this. Please download an updated copy of the add-on from the following link and let me know if it works better for you.
https://simple-membership-plugin.com/wp-content/uploads/addons/swpm-mailchimp-signup.zip
March 23, 2023 at 4:32 am #25756DavidV
ParticipantYes that works great!
I didn’t try all the options but It works for a straight registration.
Thank you!
March 23, 2023 at 6:58 am #25757admin
KeymasterThank you for confirming that.
-
AuthorPosts
- You must be logged in to reply to this topic.