Page 2 of 2

Re: Success Attribute not working?

PostPosted: January 2nd, 2012, 9:26 pm
by Raam Dev
Have you checked your spam folder to see if they're getting caught in there?

Another thing to try is manually configuring the SMTP server that WordPress (and thereby s2Member) uses to send emails. You can use the WP Mail SMTP plugin to do that.

If you're using a Gmail account as your "From" address, you can configure the plugin with your Gmail SMTP details so that WordPress uses Google SMTP servers to send the email. You can get the SMTP details for Gmail here: http://support.google.com/mail/bin/answ ... swer=78799

Re: Success Attribute not working?

PostPosted: January 2nd, 2012, 9:40 pm
by slyhands
yeah...checked spam and junk folders to make sure it wasn't getting caught up. I also tried a test by removing the success redirect and still no emails. Very strange since it was working right before the upgrades. Not sure what changed, but obviously something that disrupts the email (I haven't touched anything on the site other than the upgrades).

I'll try that plugin and see how that goes and post back the results.

Thanks,
Steve

Re: Success Attribute not working?

PostPosted: January 2nd, 2012, 9:54 pm
by slyhands
Waiting to hear back from my client with their smtp info (not sure who is hosting their email).

However, I attempted to send an email through the php mail function (through the recommended plugin) and I see the following error is thrown:

The SMTP debugging output is shown below:

Could not instantiate mail function.



Not sure what is holding it up. The fact that it worked perfectly before makes this a mystery!

Steve

Re: Success Attribute not working?

PostPosted: January 2nd, 2012, 10:34 pm
by Eduan
Have you updated any other plugin besides s2Member?

Could you also please downgrade to an older version of s2Member and see if that works now? For more info on downgrading see this post:
viewtopic.php?f=36&t=2619

Please tell me how it goes.

Re: Success Attribute not working?

PostPosted: January 2nd, 2012, 10:36 pm
by Eduan
Could you also try making a compatibility test?

Just disable each plugin one by one (without including s2Member) until the problem goes away.
Also could you please try changing the theme to the default one (TwentyEleven)? And see if it works after that.

You should try one at a time in order to make sure you find the correct problem.

Another fast way is to deactivate all the plugins (not s2Member) and change back to the default theme (TwentyEleven), and then clear your browser's cache. See if the problem goes away, if it does, then activate each plugin one per one until the problem appears again, then the theme you were using, that should show up the criminal.

If you find the criminal, could you please tell me which plugin/theme was causing the problems? Thanks.

Please tell me how it goes and I hope this helps. :)

Re: Success Attribute not working?

PostPosted: January 3rd, 2012, 12:06 am
by slyhands
Hi Eduan -

Thank you for the suggestions. The problem with downgrading is that I had to upgrade to fix my other problem. I jumped out of the kettle to land in the fire on this one.

No other plugins have been upgraded. They remain as they were when it was working just fine. Only WP and s2member/s2memberpro were upgraded (this fixed my previous problem, see thread above).

I'm unable to revert to the default theme, as the site is on a live production server whose functionality is dependent upon the current custom theme.

Hmmmmm.

Steve

Re: Success Attribute not working?

PostPosted: January 3rd, 2012, 3:50 pm
by Raam Dev
slyhands wrote:I attempted to send an email through the php mail function (through the recommended plugin) and I see the following error is thrown:

The SMTP debugging output is shown below:

Could not instantiate mail function.



Two things: 1) How exactly did you attempt to send mail using the php mail function? (Could you post the code?)

and 2) Did you double-check the From email address in WP Admin -> s2Member -> General Options -> Email Configuration? (Is that an email address one hosted on that server, or is it an email address hosted on an external server?)

Re: Success Attribute not working?

PostPosted: January 3rd, 2012, 4:08 pm
by slyhands
Hi Raam -

Here is the manually tested code (that does send an email successfully from the server):

Code: Select all
<?

$to      = 'XXXXXXXXXXXXXXXXX';
$subject = 'Launch Successful';
$message = "
========================================================================
      PAGE CALLED SUCCESSFULLY!
========================================================================      

Details
-----------------------------------------

USER ID PASSED: " . $user_id = $_GET["user_id"] . "

";
                                    
$headers = 'From: no-reply@doingmypart.com' . "\r\n" .
   'Reply-To: no-reply@doingmypart.com' . "\r\n" .
   'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
                           
?>


I double-checked the from email address and it has not changed. (It is being sent from the same email address above).

That email doesn't actually exist, but worked before. As a precaution, I changed it to an email that does exist: contact@doingmypart.com....but same result.

Both email and site are hosted with GoDaddy.

Steve

Re: Success Attribute not working?

PostPosted: January 3rd, 2012, 4:14 pm
by Raam Dev
Thanks for the extra info Steve.

If that code sends the email successfully, then where did you get that "Could not instantiate mail function." error?

Re: Success Attribute not working?

PostPosted: January 3rd, 2012, 4:17 pm
by slyhands
I am getting that error when I attempt to send a test message through WP email plugin you recommended I try: WP Mail SMTP plugin

Steve

Re: Success Attribute not working?

PostPosted: January 4th, 2012, 1:39 am
by slyhands
Well...the plot thickens.

I have setup the WP Mail SMTP plugin with the external GoDaddy email account and sent a test email through the system successfully.

Jumping for joy, I went to test another order...and...nothing. Account is correctly setup, but no welcome email or new user notification email.

Then...I decided to try to "Get Lost Password" on the s2member login page (figured I'd see if that email comes in) http://doingmypart.com/dmp/wp-login.php ... stpassword. Clicking on the link results in a 500 server error! (Clarification: clicking on the link is fine...it is once I submit my email address in the form that the 500 error is thrown.)

GoDaddy handles the error with a default error screen, so I am unable to see what the actual error is.

OKAY.....lol....just tried it again while typing this...AND...this time the form submitted okay (forgot password form)....and....the forgot email password came through just fine.

So...it looks like it is only s2member that is not sending the emails out.

I'm stumped!

Steve

Re: Success Attribute not working?

PostPosted: January 4th, 2012, 2:47 am
by Cristián Lávaque
Did you check the s2Member log entries? I guess they won't show something wrong, since the emails are being sent per the email log, but still worth checking. WP Admin -> s2Member -> PayPal Options -> Account Details -> Enable Logging

And could you set up an email notification to check if those emails do arrive? WP Admin -> s2Member -> Notifications -> Registration -> Send An Email

Re: Success Attribute not working?

PostPosted: January 4th, 2012, 2:03 pm
by slyhands
Heya Cristian -

I've had logging enabled (since troubleshooting the original no-redirect problem).

I just entered my email address into the Registration Notification section and saved settings. After running a test, still no emails (including the registration notification from the box I just entered).

Any ideas? This would be less strange if everything wasn't working before the upgrade of WP and s2member/s2member pro.

I've attached the logs of the last transaction.

Thanks,
Steve

Re: Success Attribute not working?

PostPosted: January 4th, 2012, 6:12 pm
by Raam Dev
Steve,

The paypal-ipn.log file you attached shows the user already exists, which means no new user was created for that transaction. That would explain why no New User Notification message is being sent:

Code: Select all
    7 => 'User exists. Handling `payment` for Subscription via ( `subscr-signup-as-subscr-payment` ).',

Re: Success Attribute not working?

PostPosted: January 4th, 2012, 9:19 pm
by slyhands
Raam -

What can be causing this? I saw that in a previous transaction, so...though I was canceling subscriptions and deleting user before each successive test. So the user/email address used in the last example was never setup with an account (I did that on purpose).

So...it appears that regardless of who is signing up, s2member is not treating them as a new member. In fact, to support this, I checked back at the archive logs. Another new member signed up today (never been to the site before)....low and behold, this is also in their log:

7 => 'User exists. Handling `payment` for Subscription via ( `subscr-signup-as-subscr-payment` ).',

Any ideas?

Steve

Re: Success Attribute not working?

PostPosted: January 5th, 2012, 4:54 am
by Cristián Lávaque
Hmm... I wonder if another plugin is causing this. I know the problem wasn't there before the upgrade, but maybe that other plugin started conflicting with s2Member's new release.

Could you try deactivating other plugins checking after each to see if the problem goes away with it?

Re: Success Attribute not working?

PostPosted: January 18th, 2012, 5:50 pm
by slyhands
Well...it looks as if (finally) my problem has been resolved.

I am unsure what caused it, but I re-uploaded ALL s2member and s2memberpro files again to the server, then updated to the latest version of WP (3.3.1) and BAM....the welcome emails seem to send out...redirect worked....all is good in the world! :)

Steve

Re: Success Attribute not working?

PostPosted: January 18th, 2012, 11:07 pm
by Raam Dev
Good to hear, Steve! Thank you for the update! :)