Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-18T23:07:07-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16279 2012-01-18T23:07:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=60947#p60947 <![CDATA[Re: Success Attribute not working?]]>

Statistics: Posted by Raam Dev — January 18th, 2012, 11:07 pm


]]>
2012-01-18T17:50:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=60920#p60920 <![CDATA[Re: Success Attribute not working?]]>
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

Statistics: Posted by slyhands — January 18th, 2012, 5:50 pm


]]>
2012-01-05T04:54:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59758#p59758 <![CDATA[Re: Success Attribute not working?]]>
Could you try deactivating other plugins checking after each to see if the problem goes away with it?

Statistics: Posted by Cristián Lávaque — January 5th, 2012, 4:54 am


]]>
2012-01-04T21:19:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59716#p59716 <![CDATA[Re: Success Attribute not working?]]>
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

Statistics: Posted by slyhands — January 4th, 2012, 9:19 pm


]]>
2012-01-04T18:12:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59680#p59680 <![CDATA[Re: Success Attribute not working?]]>
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:
    7 => 'User exists. Handling `payment` for Subscription via ( `subscr-signup-as-subscr-payment` ).',

Statistics: Posted by Raam Dev — January 4th, 2012, 6:12 pm


]]>
2012-01-04T14:03:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59646#p59646 <![CDATA[Re: Success Attribute not working?]]>
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

Statistics: Posted by slyhands — January 4th, 2012, 2:03 pm


]]>
2012-01-04T02:47:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59625#p59625 <![CDATA[Re: Success Attribute not working?]]> 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

Statistics: Posted by Cristián Lávaque — January 4th, 2012, 2:47 am


]]>
2012-01-04T01:39:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59623#p59623 <![CDATA[Re: Success Attribute not working?]]>
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

Statistics: Posted by slyhands — January 4th, 2012, 1:39 am


]]>
2012-01-03T16:17:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59563#p59563 <![CDATA[Re: Success Attribute not working?]]>
Steve

Statistics: Posted by slyhands — January 3rd, 2012, 4:17 pm


]]>
2012-01-03T16:14:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59562#p59562 <![CDATA[Re: Success Attribute not working?]]>
If that code sends the email successfully, then where did you get that "Could not instantiate mail function." error?

Statistics: Posted by Raam Dev — January 3rd, 2012, 4:14 pm


]]>
2012-01-03T16:08:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59558#p59558 <![CDATA[Re: Success Attribute not working?]]>
Here is the manually tested code (that does send an email successfully from the server):

Code:
<?

$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

Statistics: Posted by slyhands — January 3rd, 2012, 4:08 pm


]]>
2012-01-03T15:50:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59555#p59555 <![CDATA[Re: Success Attribute not working?]]>
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?)

Statistics: Posted by Raam Dev — January 3rd, 2012, 3:50 pm


]]>
2012-01-03T00:06:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59495#p59495 <![CDATA[Re: Success Attribute not working?]]>
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

Statistics: Posted by slyhands — January 3rd, 2012, 12:06 am


]]>
2012-01-02T22:36:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59489#p59489 <![CDATA[Re: Success Attribute not working?]]>
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. :)

Statistics: Posted by Eduan — January 2nd, 2012, 10:36 pm


]]>
2012-01-02T22:34:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59486#p59486 <![CDATA[Re: Success Attribute not working?]]>
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.

Statistics: Posted by Eduan — January 2nd, 2012, 10:34 pm


]]>
2012-01-02T21:54:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59476#p59476 <![CDATA[Re: Success Attribute not working?]]>
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

Statistics: Posted by slyhands — January 2nd, 2012, 9:54 pm


]]>
2012-01-02T21:40:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59473#p59473 <![CDATA[Re: Success Attribute not working?]]>
I'll try that plugin and see how that goes and post back the results.

Thanks,
Steve

Statistics: Posted by slyhands — January 2nd, 2012, 9:40 pm


]]>
2012-01-02T21:26:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59471#p59471 <![CDATA[Re: Success Attribute not working?]]>
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

Statistics: Posted by Raam Dev — January 2nd, 2012, 9:26 pm


]]>
2012-01-02T18:12:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59459#p59459 <![CDATA[Re: Success Attribute not working?]]>
The first is the "New User Email Message" that is supposed to be sent to me (as the customer).

The second is the "New User Signup" that is supposed to be sent to me (as the admin).

I previously received BOTH emails BEFORE upgrading both Wordpress and s2member/pro.

For the heck of it, I just ran another email test off a webpage script (outside of WP directory) and I immediately received the email. (I am consistently getting emails from both email accounts I am testing out)....so I don't know where the problem is.

Any ideas?

Steve

Statistics: Posted by slyhands — January 2nd, 2012, 6:12 pm


]]>
2012-01-02T18:01:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59456#p59456 <![CDATA[Re: Success Attribute not working?]]>
That is correct, the "New User Email Message". It WAS working before. I am guessing that now that the page is redirecting upon successful sign-up, something is not getting hit that fires the email off. (That, or the upgrade bumped something!)

I'll install it and see what happens. Back in a few!

Thanks,
Steve

Statistics: Posted by slyhands — January 2nd, 2012, 6:01 pm


]]>
2012-01-02T17:23:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59451#p59451 <![CDATA[Re: Success Attribute not working?]]> EMail Log plugin and then doing a test and checking if WordPress sent the email?

Also, could you tell me exactly what email you're referring to? Is this the "New User Email Message" that contains their username/password, or are you referring to something else?

Statistics: Posted by Raam Dev — January 2nd, 2012, 5:23 pm


]]>
2012-01-02T16:30:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59443#p59443 <![CDATA[Re: Success Attribute not working?]]>
The redirect is functioning fantastically (finally!). However, NOW...upon successful account sign-up, the new member is no longer receiving the welcome email that goes out. This WAS functioning before the upgrade. I checked to make sure that the s2member email setting was not reset after the upgrade (it was not). I also made sure that email is successfully leaving the server (it is...I ran a quick mail script sent via php code and got it instantly).

Any ideas why this would stop functioning all of a sudden?

Just when you thought it was safe to send the client a final invoice.....doh!

Thanks,
Steve

Statistics: Posted by slyhands — January 2nd, 2012, 4:30 pm


]]>
2011-12-30T16:13:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59259#p59259 <![CDATA[Re: Success Attribute not working?]]>

Statistics: Posted by Raam Dev — December 30th, 2011, 4:13 pm


]]>
2011-12-30T15:06:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=59245#p59245 <![CDATA[Re: Success Attribute not working?]]>
I updated both s2member and WP and it WORKS! yeeeeha! :)

Not sure what was hanging it up, but it is working now!

Thanks!
Steve

Statistics: Posted by slyhands — December 30th, 2011, 3:06 pm


]]>
2011-12-26T17:19:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16279&p=58856#p58856 <![CDATA[Re: Success Attribute not working?]]> Thanks for the heads up on this thread.
~ I'm sorry for the delayed response.

Going back to your original post for a moment...

I've attempted to insert the success="" attribute into the form, but s2member appears to completely ignore this


Code:
[s2Member-Pro-PayPal-Form level="1" ccaps="wall_of_heroes" desc="100% Goes To Projects!  See you at the bottom!" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="doingmypart.com" ta="0" tp="0" tt="D" ra="3.00" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" success="https://doingmypart.com/dmp/welcome-to-doing-my-part/?user_id=%%user_id%%" /]



I can confirm that this functionality does work as expected. Tested in WordPress v3.3 and s2Member v111220. I'm not aware of any bug related to this in your version (i.e. v110815), but you might upgrade to the latest/greatest anyway, and try your tests again.

Short of that... I've seen this happen before whenever you accidentally leave a double quote out of your Shortcode? The Shortcode you posted here looks good, but if you miss a double quote, your Custom Return URL would be ignored completely, as the syntax is incorrect.

Not sure that's what's happening here, but thought I would mention it.
Code:
success="https://doingmypart.com/dmp/welcome-to-doing-my-part/?user_id=%%user_id%%
( bad, missing a double quote at the end )

Your log files look good. In fact, they tell me that your Custom Return URL is being processed properly. However, you're saying that no redirection occurs at all. That leads me to believe that something is intercepting the return response data that comes from s2Member's IPN handler.

After upgrading to the latest version of s2Member, I would also update to WordPress v3.3, because this release of WordPress fixes some issues in the WP_Http class that could bring about weird problems like the one you're reporting here. If the problem continues, please write me back. I have some additional debugging tools I can provide you with against the latest version.

Statistics: Posted by Jason Caldwell — December 26th, 2011, 5:19 pm


]]>