Mailchimp integration - opt-in emails not arriving

As of some time in January, we stopped getting new signups on our Mailchimp list.

I tested just now, using a Gmail account, and did not receive the opt-in email.

Does this email come from Mailchimp or from WordPress/S2 Member?

Do you have a recommended process for troubleshooting this? Should we disable double opt-in?

Thanks!

What version of s2Member are you using? Did you try the latest release? it has a fix for the Mailchimp integration that may be just what you need.

If you haven’t yet, please enable logging to help troubleshoot. After reproducing the behavior, please loook for the entries in the mailchimp log. WP Admin > s2Member > Log Files

:slight_smile:

Thanks for the quick response. Both s2 and Pro are the latest version as of yesterday, and unfortunately that wasn’t it.

I have looked everywhere and can’t find where/how I enable logging for Mailchimp. Can you point me in the right direction?

1 Like

Thanks for the update.

You’d enable s2’s logging, and it’ll create a file for the Mailchimp integration. WP Admin > s2Member > Log Files

Then please reproduce the behavior, look for the log entries, and post here (editing any sensitive information).

:slight_smile:

Great. Here is the log:

LOG ENTRY: Wed Feb 28th, 2024 @ precisely 12:48 am UTC
PHP v7.4.33 :: WordPress v6.4.3 :: s2Member v240218 :: s2Member Pro v240218
Memory 17.73 MB :: Real Memory 22.00 MB :: Peak Memory 21.22 MB :: Real Peak Memory 26.74 MB
company.com/membership-details/free/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
Array
(
    [list_id] => [list id]
    [email] => Array
        (
            [email] => Firstname@company.com
        )

    [merge_fields] => Array
        (
            [MERGE1] => Firstname
            [MERGE2] => Lastname
            [OPTIN_IP] => 207.32.168.227
            [OPTIN_TIME] => 2024-02-28 00:48:55
            [FNAME] => Firstname
            [LNAME] => Lastname
        )

    [email_type] => html
    [double_optin] => 1
    [update_existing] => 1
    [replace_interests] => 1
    [send_welcome] => 
    [subscriber_hash] => [hash[
    [url] => https://us6.api.mailchimp.com/3.0/lists/[etc]
    [interests] => Array
        (
        )

    [data] => Array
        (
            [email_address] => Firstname@company.com
            [status] => subscribed
            [status_if_new] => pending
            [email_type] => html
            [merge_fields] => stdClass Object
                (
                    [MERGE1] => Firstname
                    [MERGE2] => Lastname
                    [OPTIN_IP] => 207.32.168.227
                    [OPTIN_TIME] => 2024-02-28 00:48:55
                    [FNAME] => Firstname
                    [LNAME] => Lastname
                )

        )

    [options] => Array
        (
            [http] => Array
                (
                    [header] => Content-type: application/json
Authorization: Basic dXNlcjo4MDMzMDU3ODdlMjE5ZmI5ZjEwNThmOWZhZThjZGYxMi11czY=
                    [method] => PUT
                    [content] => {"email_address":"Firstname@company.com","status":"subscribed","status_if_new":"pending","email_type":"html","merge_fields":{"MERGE1":"Firstname","MERGE2":"Lastname","OPTIN_IP":"207.32.168.227","OPTIN_TIME":"2024-02-28 00:48:55","FNAME":"Firstname","LNAME":"Lastname"}}
                    [timeout] => Array
                        (
                            [timeout] => 30
                        )

                )

        )

    [context] => Resource id #1161
    [result] => 
)
LOG ENTRY: Wed Feb 28th, 2024 @ precisely 12:48 am UTC
PHP v7.4.33 :: WordPress v6.4.3 :: s2Member v240218 :: s2Member Pro v240218
Memory 17.72 MB :: Real Memory 22.00 MB :: Peak Memory 21.22 MB :: Real Peak Memory 26.74 MB
www.jazzeveryone.com/membership-details/free/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
Array
(
    [args] => stdClass Object
        (
            [role] => subscriber
            [level] => 0
            [ccaps] => 
            [login] => Firstname
            [pass] => [pass]
            [email] => Firstname@company.com
            [fname] => Firstname
            [lname] => Lastname
            [ip] => 207.32.168.227
            [opt_out] => 
            [opt_in] => 1
            [double_opt_in] => 1
            [user] => WP_User Object
                (
                    [data] => stdClass Object
                        (
                            [ID] => 14870
                            [user_login] => Firstname
                            [user_pass] => [user pass]
                            [user_nicename] => Firstname
                            [user_email] => Firstname@company.com
                            [user_url] => 
                            [user_registered] => 2024-02-28 00:48:55
                            [user_activation_key] => 
                            [user_status] => 0
                            [display_name] => Firstname Lastname
                        )

                    [ID] => 14870
                    [caps] => Array
                        (
                            [subscriber] => 1
                        )

                    [cap_key] => wp_capabilities
                    [roles] => Array
                        (
                            [0] => subscriber
                        )

                    [allcaps] => Array
                        (
                            [read] => 1
                            [level_0] => 1
                            [access_s2member_level0] => 1
                            [subscriber] => 1
                        )

                    [filter] => 
                    [site_id:WP_User:private] => 1
                )

            [user_id] => 14870
            [name] => Firstname Lastname
        )

    [function] => subscribe
    [list] => [list id]
    [list_id] => [list id]
    [api_method] => listSubscribe
    [api_properties] => Mailchimp Object
        (
            [lists] => MailchimpV3 Object
                (
                    [api_key:MailchimpV3:private] => [our api key]
                    [server:MailchimpV3:private] => us6
                    [timeout:MailchimpV3:private] => Array
                        (
                            [timeout] => 30
                        )

                )

        )

    [merge_array] => Array
        (
            [MERGE1] => Firstname
            [MERGE2] => Lastname
            [OPTIN_IP] => 207.32.168.227
            [OPTIN_TIME] => 2024-02-28 00:48:55
        )

    [api_merge_array] => Array
        (
            [MERGE1] => Firstname
            [MERGE2] => Lastname
            [OPTIN_IP] => 207.32.168.227
            [OPTIN_TIME] => 2024-02-28 00:48:55
        )

    [api_email_type] => html
    [api_double_optin] => 1
    [api_update_existing] => 1
    [api_replace_interests] => 1
    [api_send_welcome] => 
    [api_response] => 
)

Could this be because we’re using an old Mailchimp API key that is prior to version 3.0?

I recall this being an unresolved issue last year re. S2 - maybe it’s resolved now?

Odd that it just stopped working about a month ago. Anyway should we try swapping API keys? if we do, do we need to change any of our list IDs?

I tried creating a new API key and as far as I can tell there’s no difference in the logged data, so that doesn’t seem to be it.

As far as we can tell we haven’t had any new subscribers from the website since early June of 2023.

We’d appreciate any help you can provide.

Thanks for the log entries and additional info.

Could I take a closer look at your installation? You can email me login details to support@wpsharks.com. If you could also send me screenshots of the mailchimp configuration for the list and insterest groups, it may help.

:slight_smile: