PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Mailchimp signups not being removed upon manual deletion

s2Member Plugin. A Membership plugin for WordPress®.

Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 7th, 2011, 4:47 pm

Hi all!

I have a little query about how the automatic removal of users from mailchimp lists works.

I am just testing out a current install of S2 before a site goes live soon.

Upon creating a new user through the front end (free subscriber) the user does indeed get signed up for a mailchimp list which has been set up in the list server options.

All works flawlessly for sign up.

However when I manually delete a user from the site, they DO NOT get removed from the mailchimp list even though the options in the backend are all ticked for S2 to handle all of the auto removal from lists.

Now I was wondering what handles this and what is the sequence of events that should take place because I wonder if it is to do with server setup.

I have just ran the S2 cURl and fopen tests on my server and BOTH FAIL!

I am asking my hosting to install cURL and turn ON fopen and also upgrade my PHP version which currently sits at 5.2.16

Would the fact that fopen is set to OFF and cURL is UNINSTALLED cause this problem with mailchimp?

Thanks for your time,
Ross :)
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 9th, 2011, 5:29 am

Any idea about this guys.

I think I have actually found a fault with the cURL tes php script.

The problem was with the actual cURL test I downloaded from here. It was not constructed to match the remote end. It was requesting by SSL the http://www.paypal.com web site and was getting it, but with a site moved permanently return code. So that it could redirect to the UK page.

When I changed this to the UK URL it was redirecting to, the test worked OK. The change is on the last line, the URL was changed from "https://www.paypal.com/" to:

"https://www.paypal.com/uk/cgi-bin/webscr?cmd=_home&country_lang.x=true"

So I presume the server is set up correctly?

If so, this doesn't explain why members are not deleted from the mailchimp list after I delete a user manually in WP?

Can anyone help?
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 9th, 2011, 5:36 am

fopen is also set to ON too.

So I'm at a bit of a loss as to why names aren't being removed from Mailchimp.
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 9th, 2011, 7:02 am

My server support have just told me that fopen is NOT turned ON on my site and yet when I change the paypal URL in the fopen test to the uk paypal address it still passes?

Is fopen required for Mailchimp to work?
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby Cristián Lávaque » May 9th, 2011, 9:07 am

Hi Ross. I notified Jason about this yesterday, but right now he's quite immersed in code and hasn't been around the forums or his mail yet. Give him a little more time and he should be commenting here as soon as he gets to your email. Thanks for your patience! :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 9th, 2011, 9:35 am

Thanks Cristian,

Yeah I mailed Jason but thought I'd put it on the forum too, just incase anyone else was having/ have had this issue too!

I've just turned fopen to on on my server and will do more testing!

Thanks again!
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 9th, 2011, 10:31 am

Unfortunately, even with fopen turned ON the removal of a user in my list still doesn't happen after manually deleting that user in WP.

I will await Jason's advice.
Thanks! :)
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby Cristián Lávaque » May 9th, 2011, 11:18 am

Thanks for the update. Yeah, let's wait. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 10th, 2011, 6:28 am

Done even more testing and I can now rule out 100% that it's NOT a plugin issue. Have tried the same process with only BuddyPress enabled and S2Member. Still have the same issue. I'll keep troubleshooting until Jason get's a spare second.

Thanks! :)
Last edited by rossagrant on May 10th, 2011, 12:50 pm, edited 1 time in total.
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby Cristián Lávaque » May 10th, 2011, 12:47 pm

Cool. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 10th, 2011, 12:51 pm

Haha, just noticed that I missed the word NOT out above. It was meant to read it is 100% NOT a plugin issue. As I say I'll wait for jason as it seems some people are having issues with Aweber too.

Looking forward to working out what the problem is here!

Ross :)
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby Cristián Lávaque » May 10th, 2011, 1:37 pm

Heh, no problem, I understood what you were saying.

Yeah, others are having trouble with the list server integration, so they may be related. I want to get it solved as much as you guys. I believe Jason will be around catching up with emails (I notify him of these things by email) tonight or tomorrow.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 10th, 2011, 1:43 pm

Cheers Cristian. we all really appreciate the help you guys give out. The support for this plugin is probably the best in the ENTIRE WP community!

My site isn't going live for 2 weeks so I have time to iron out the bugs, I just want it to be solid and 100% working in time for launch, so testing over the next week or so is really important.

I'm sure Jason has it under control though and as a team we'll all get there!
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby Cristián Lávaque » May 10th, 2011, 2:14 pm

Thanks for the kudos! We really appreciate your kind words. :)

We'll help as we can so you get there on time, no bugs attached. ;)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby Jason Caldwell » May 10th, 2011, 4:56 pm

Your PHP version is OK. PHP v5.2.16 is higher than PHP v5.2.3, so your server meets requirements in this regard. If the cURL and fopen tests are failing though, it sounds like that could definitely be the issue.

First, I would make sure that you're running tests using the latest information and test scripts that I posted here: viewtopic.php?f=36&t=2636

If the tests continue to fail, please check your php.ini file, and if all else fails, you might need to contact your hosting company about this.

s2Member communicates with MailChimp through their web service API, which requires remote connections. If the cURL and fopen tests are both failing, MailChimp will fail too.

If they are being subscribed, that would suggest that your server IS communicating with MailChimp. If Users are NOT being unsubscribed, that sounds more like a configuration issue to me. Can you please send me a screenshot of your settings under: s2Member -> API List Servers ->
Automate Un-Subscribe/Opt-Out Removals
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 10th, 2011, 5:04 pm

Hi jason!

Thanks so much for your reply.

I know your probably going through mountains of emails right now. You'll find some follow up emails to my mailchimp issues.

My server passes all of the cURL and fopen tests when I change the URL of the test.

The problem was with the actual cURL test I downloaded. It was not constructed to match the remote end. It was requesting by SSL the http://www.paypal.com web site and was getting it, but with a site moved permanently return code. So that it could redirect to the UK page.

When I changed this to the UK URL it was redirecting to, the test worked OK. The change is on the last line, the URL was changed from "https://www.paypal.com/" to:

"https://www.paypal.com/uk/cgi-bin/webscr?cmd=_home&country_lang.x=true"

So I presume the server is set up correctly?

My members get subscribed so I expect my server is communicating with the mailchimp server.

I've tried everything I can think of. I've tried with ALL pliugins disabled apart from S2 and Buddypress too.

I'm attaching a shot of my opt out options. I have all boxes ticked so I would have thought it would remove members in every circumstance.

Let me know if you would like login and FTP details and I'll send them over.

Thanks so much for your time, I know you must be rushed off your feet!

Ross :)
MailChimp Settings.jpg
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby Jason Caldwell » May 10th, 2011, 6:00 pm

Hey, thanks guys. Looks like I'm late to the party here, but I'm catching up now.

Ah. Thanks, I'll see if we can update the script for UK and/or redirections then. I'm investigating the larger issue that's been reported about MailChimp now. In the mean time, can you please try this version ( as-is ), and let me know if this test succeeds for you?

Code: Select all
<?php
error_reporting
(E_ALL);
@
ini_set ("display_errors", true);
/*
Curl operation for posting data and reading response.
*/
function curlpsr ($url = FALSE, $postvars = array (), $max_con_secs = 20, $max_stream_secs = 20, $headers = array ())
    {
        if (($url = trim ($url)) && ($c = curl_init ()))
            {
                if (is_array ($postvars)) /* Because cURL can't deal with complex arrays. */
                    /* Since cURL can't deal with complex arrays, we force this to a query string. */
                    $postvars = http_build_query ($postvars);
                /**/
                curl_setopt_array ($c, /* Configure options. */
                array (CURLOPT_URL => $url, CURLOPT_POST => true,/**/
                CURLOPT_FOLLOWLOCATION => true, CURLOPT_MAXREDIRS => 5,/**/
                CURLOPT_CONNECTTIMEOUT => $max_con_secs, CURLOPT_TIMEOUT => $max_stream_secs, /* Initial connection & stream seconds. */
                CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => $headers, CURLOPT_POSTFIELDS => $postvars,/**/
                CURLOPT_ENCODING => "", CURLOPT_VERBOSE => false, CURLOPT_FAILONERROR => true, CURLOPT_FORBID_REUSE => true, CURLOPT_SSL_VERIFYPEER => false));
                /**/
                $o = trim (curl_exec ($c));
                /**/
                curl_close($c);
            }
        /**/
        return (!empty ($o)) ? $o : false;
    }
/*
Here we perform the PHP test routine.
*/
echo (curlpsr ("https://www.paypal.com/", array ("x_test" => 1))) ? '<div>Test succeeded :-) Lookin\' good here.</div>' : '<div>Sorry, this test failed!</div>';
?>
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 10th, 2011, 6:02 pm

Hi Jason

Here's the link to the new test file:

http://www.actonthis.tv/curl-test-https-paypal.php

I pasted the code as is from your email.

I think it passes, although there is a fault on line 20.

Let me know what you think, do I need to change any configuration on the server?
Ross :)
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 12th, 2011, 10:39 am

Hi guys!

I know you're busy, just wanted to check in and see if any progress has been made on this or if there is any testing I can do for you?

Cheers
:)
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby Jason Caldwell » May 13th, 2011, 12:16 am

Hi Ross. Yes, the issue has been identified and is being corrected for the next release.
~ thanks for your assistance in tracking this down buddy.

Until the next version becomes available, you can apply this quick patch if you like.
Please unzip and upload the attached file. Please let it overwrite your existing copy.
/s2member/includes/classes/utils-arrays.inc.php
utils-arrays.inc.php.zip
(1000 Bytes) Downloaded 19 times

100% Resolved. Permanent solution in next release.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 13th, 2011, 10:53 am

Hi Jasonn!

Just going to tat this now and will report back! Thanks SO much for such a quick fix! My email list is the most important part of my business so to get this working was vital!

Thanks again!

Will report back soon!
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby Cristián Lávaque » May 13th, 2011, 11:44 am

Looking forward to your report, Ross! :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 13th, 2011, 12:33 pm

WOW!

WORKS A TREAT!

THANK YOU SO MUCH!

Just tried it now, registered a new user, subscribed to list, then manually deleted the user in the backend and hey presto, the user was unsubscribed automatically!

That's absolutely awesome.

Just out of curiosity what was causing the issue and could it affect anything else? Do you want me for example to test it changing members from one list to another upon upgrading/ downgrading accounts or are you happy that it's all covered with the new fix?

Ross :)
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby Cristián Lávaque » May 13th, 2011, 1:00 pm

Awesome! Thanks for letting us know! :)

I'll let Jason answer what the problem was.

In the meantime, feel free to test all you want to report back. 8-)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Mailchimp signups not being removed upon manual deletion

Postby rossagrant » May 13th, 2011, 3:22 pm

Hey Cristian,

Right I'm just testing a few things and I think i may have come up against another little issue.

The new fix is working great for unsubscribing members but I don't think it is working for transferring members from one list to another.

Here's what I have just done:

1.) Created a new user inside the backend of WP with S2 MEMBER LEVEL 1 (Premium member on my site).

2.) Ticked the box to send them a list subscription.

3.) Received the subscription email and subscribed to the PREMIUM LIST. (all worked great and correct list sent out)

4.) Manually entered an EOT time in the back end.

5.) Allowed s2 to run it's cron job and successfully demote the Level 1 member to a SUBSCRIBER.

6.) Checked in Mailchimp to find the subscription to the PREMIUM list was GONE (deleted from list which is great).

7.) HOWEVER the user (now a subscriber) was not set to the FREE members list in mailchimp.

So it's 90% there. It's deleting people from lists no problem but i need it to resubscribe them to the appropriate list on promotion/ demotion.

Anything you want me to do or will Jason need another look?

Ross :)
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Next

Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron