Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] MailChimp integration not adding contact to audience

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.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • March 17, 2023 at 9:37 pm #25736
    DavidV
    Participant

    Hello!

    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|V

    Thanks for your reply!
    DavidV

    March 19, 2023 at 1:11 am #25739
    The Assurer
    Moderator

    Did 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%20failure

    March 20, 2023 at 5:24 am #25741
    DavidV
    Participant

    Thank 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 #25742
    DavidV
    Participant

    Found 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 #25749
    DavidV
    Participant

    Found 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 #25752
    The Assurer
    Moderator

    The developer will be advised.

    March 22, 2023 at 4:55 am #25753
    admin
    Keymaster

    Thank 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 #25756
    DavidV
    Participant

    Yes 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 #25757
    admin
    Keymaster

    Thank you for confirming that.

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy