Page 1 of 1

MailChimp Transitions Not Working

PostPosted: September 6th, 2011, 11:19 pm
by dp211
Hello,

I have S2Member Pro and am trying to take advantage of the MailChimp integration for a club website, but I'm having difficulties getting it to work. Users are added to the "free" list I have created at MailChimp, but they are not transitioned to the "level 1" list when I change their status.

Here is what I'd like to achieve:
- Users register for "free" and are added to MailChimp list A
- Admin confirms user identify and changes statues to level 1; user is transitioned to MailChimp list B

Here is what's currently happening:
- Users register for "free" and are added to MailChimp list A (i.e., this works)
- Admin changes status to level 1, but users are neither added to MailChimp list B nor removed from list A

We do not have dues, so there is no need for PayPal integration. I saw some comments indicating MailChimp requires the use of the S2 pro form, but have not seen that confirmed. Is that accurate? I am using the standard WP registration form b/c I do not have a PayPal business account and do not want to upgrade my personal account. I tried to setup the free registration form, but I get errors that my PayPal email and API are not set.

Can you please advise? Is there anything I can do to trouble shoot this?

Re: MailChimp Transitions Not Working

PostPosted: September 7th, 2011, 3:41 am
by Cristián Lávaque
You don't need the pro-forms for the MailChimp integration to work.

About the error for the free registration pro-form, just fill those fields with fake values. WP Admin -> s2Member -> PayPal Options -> Account Options

About the list transition, please look at WP Admin -> s2Member -> API / List Servers -> Automate Un-Subscribe/Opt-Outs

I hope that helps. :)

Re: MailChimp Transitions Not Working

PostPosted: September 7th, 2011, 8:24 am
by dp211
Cristian,

I have all of the boxes checked and the "Also process..." dropdown is set to yes. However, I do not see the changes reflected in MailChimp. How quickly should the change in MailChimp take place?

Is there anything else I can try?

Re: MailChimp Transitions Not Working

PostPosted: September 7th, 2011, 11:00 pm
by dp211
Here is the log info. Does it look like the right information is being sent to MailChimp?

From what I can tell it is only sending the subscribe commands. It is not sending the unsubscribe/transition commands despite the settings I've selected.


Code: Select all
WordPress® v3.2.1 :: s2Member® v110815 :: s2Member® Pro v110815
Memory 22.12 MB :: Real Memory 22.25 MB :: Peak Memory 22.21 MB :: Real Peak Memory 22.25 MB
http://www.
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.2)
array (
  'function' => 'process_list_servers',
  'func_get_args' =>
  array (
    0 => 'subscriber',
    1 => '0',
    2 => 'temp9',
    3 => '04CXWxlt1oxd',
    4 => '<removed>@gmail.com',
    5 => 'Nine',
    6 => 'Temp',
    7 => '24.98.95.19',
    8 => true,
    9 => true,
    10 => '12',
  ),
  'api_method' => 'listSubscribe',
  'list' => '<removed>',
  'list_id' => '<removed>',
  'merge_array' =>
  array (
    'MERGE1' => 'Nine',
    'MERGE2' => 'Temp',
    'OPTIN_IP' => '24.98.95.19',
    'OPTIN_TIME' => '2011-09-07 03:54:03',
  ),
  'api_merge_array' =>
  array (
    'MERGE1' => 'Nine',
    'MERGE2' => 'Temp',
    'OPTIN_IP' => '24.98.95.19',
    'OPTIN_TIME' => '2011-09-07 03:54:03',
  ),
  'api_email_type' => 'html',
  'api_double_optin' => true,
  'api_update_existing' => false,
  'api_replace_interests' => true,
  'api_send_welcome' => false,
  'api_response' => 'OK',
  'api_success' => true,
  'api_properties' =>
  NC_MCAPI::__set_state(array(
     'version' => '1.3',
     'errorMessage' => '',
     'errorCode' => '',
     'apiUrl' =>
    array (
      'scheme' => 'http',
      'host' => 'api.mailchimp.com',
      'path' => '/1.3/',
      'query' => 'output=php',
      'prefix' => 'us2',
    ),
     'timeout' => 300,
     'chunkSize' => 8192,
     'api_key' => '<removed>',
     'secure' => true,
  )),
)

Code: Select all
WordPress® v3.2.1 :: s2Member® v110815 :: s2Member® Pro v110815
Memory 23.99 MB :: Real Memory 24.25 MB :: Peak Memory 24.08 MB :: Real Peak Memory 24.25 MB
http://www.
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.2)
array (
  'function' => 'process_list_servers',
  'func_get_args' =>
  array (
    0 => 'subscriber',
    1 => '0',
    2 => 'Test10',
    3 => '<removed>',
    4 => '<removed>',
    5 => 'Test',
    6 => 'Ten',
    7 => '24.98.95.19',
    8 => true,
    9 => true,
    10 => '13',
  ),
  'api_method' => 'listSubscribe',
  'list' => '<removed>',
  'list_id' => '<removed>',
  'merge_array' =>
  array (
    'MERGE1' => 'Test',
    'MERGE2' => 'Ten',
    'OPTIN_IP' => '24.98.95.19',
    'OPTIN_TIME' => '2011-09-07 04:24:26',
  ),
  'api_merge_array' =>
  array (
    'MERGE1' => 'Test',
    'MERGE2' => 'Ten',
    'OPTIN_IP' => '24.98.95.19',
    'OPTIN_TIME' => '2011-09-07 04:24:26',
  ),
  'api_email_type' => 'html',
  'api_double_optin' => true,
  'api_update_existing' => false,
  'api_replace_interests' => true,
  'api_send_welcome' => false,
  'api_response' => 'OK',
  'api_success' => true,
  'api_properties' =>
  NC_MCAPI::__set_state(array(
     'version' => '1.3',
     'errorMessage' => '',
     'errorCode' => '',
     'apiUrl' =>
    array (
      'scheme' => 'http',
      'host' => 'api.mailchimp.com',
      'path' => '/1.3/',
      'query' => 'output=php',
      'prefix' => 'us2',
    ),
     'timeout' => 300,
     'chunkSize' => 8192,
     'api_key' => '<removed>',
     'secure' => true,
  )),
)

Code: Select all
WordPress® v3.2.1 :: s2Member® v110815 :: s2Member® Pro v110815
Memory 23.90 MB :: Real Memory 24.00 MB :: Peak Memory 24.00 MB :: Real Peak Memory 24.25 MB
http://www.
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.2)
array (
  'function' => 'process_list_servers',
  'func_get_args' =>
  array (
    0 => 'subscriber',
    1 => '0',
    2 => 'Test 11',
    3 => '<removed>',
    4 => '<removed>@gmail.com',
    5 => 'Test',
    6 => 'Eleven',
    7 => '24.98.95.19',
    8 => true,
    9 => true,
    10 => '14',
  ),
  'api_method' => 'listSubscribe',
  'list' => '<removed>',
  'list_id' => '<removed>',
  'merge_array' =>
  array (
    'MERGE1' => 'Test',
    'MERGE2' => 'Eleven',
    'OPTIN_IP' => '24.98.95.19',
    'OPTIN_TIME' => '2011-09-07 05:01:43',
  ),
  'api_merge_array' =>
  array (
    'MERGE1' => 'Test',
    'MERGE2' => 'Eleven',
    'OPTIN_IP' => '24.98.95.19',
    'OPTIN_TIME' => '2011-09-07 05:01:43',
  ),
  'api_email_type' => 'html',
  'api_double_optin' => true,
  'api_update_existing' => false,
  'api_replace_interests' => true,
  'api_send_welcome' => false,
  'api_response' => 'OK',
  'api_success' => true,
  'api_properties' =>
  NC_MCAPI::__set_state(array(
     'version' => '1.3',
     'errorMessage' => '',
     'errorCode' => '',
     'apiUrl' =>
    array (
      'scheme' => 'http',
      'host' => 'api.mailchimp.com',
      'path' => '/1.3/',
      'query' => 'output=php',
      'prefix' => 'us2',
    ),
     'timeout' => 300,
     'chunkSize' => 8192,
     'api_key' => '<removed>',
     'secure' => true,
  )),
)

Re: MailChimp Transitions Not Working

PostPosted: September 9th, 2011, 3:40 pm
by dp211
Cristian or anyone else... is there anything I can do to troubleshoot this further? Has anyone successfully used S2Member Pro and MailChimp integration at Dreamhost?

Re: MailChimp Transitions Not Working

PostPosted: September 9th, 2011, 7:20 pm
by Jason Caldwell
Hi there. Thanks for reporting this important issue.

Based on your report and the logs that you submitted, it looks like s2Member is not firing it's transitioning routine at all. You should have unsubscribe log entries as well, if that was happening.

Here are some things I would take a look at:
list-servers-1.png

list-servers-2.png

Also, please be sure that you do have a List IDs configured for both Level #0 and Level #1. If none of this helps you, please report back and let me know. Also, please let us know what other plugins you're running in concert with s2Member.

Re: MailChimp Transitions Not Working

PostPosted: September 10th, 2011, 3:14 pm
by dp211
Jason,

Thanks for the response. I checked the settings you outlined and it looks like the settings are correct. I ran a few more tests and 1 worked (i.e., successfully transitioned), but a few didn't.

In terms of sequencing, does a user need to complete the opt-in process BEFORE I change their membership level in Wordpress? I'm wondering if the problem is that I have changed some of the user levels before they accept the email from MailChimp.

Thanks,
Dan

Re: MailChimp Transitions Not Working

PostPosted: September 12th, 2011, 6:05 pm
by Jason Caldwell
dp211 wrote:In terms of sequencing, does a user need to complete the opt-in process BEFORE I change their membership level in Wordpress? I'm wondering if the problem is that I have changed some of the user levels before they accept the email from MailChimp.

Yea, that's the problem. s2Member will only transition a User that is currently subscribed to at least one other list. That is, s2Member won't transition a User who is not already subscribed to your list, because that could cause someone to become subscribed to a list without email confirmation having taken place.

Of course, you could also check the box telling s2Member to send the User a confirmation email via MailChimp in those cases ( i.e. if they're NOT already on your list, they'll get a confirmation email ).

mailchimp-sub.png
mailchimp-sub.png (18.92 KiB) Viewed 82 times