Page 1 of 1

PDT Auto-Return Problem

PostPosted: August 29th, 2011, 2:42 am
by maurizio
Hello, during signup, after confirming on PayPal, I get the following message:

"Page Expired. Duplicate Return-Data"

It seems there are problems with PDT/Auto-Return integration.

Any help?

(s2Member 110815 version, WordPress 3.2.1)

Thanks.

Re: PDT Auto-Return Problem

PostPosted: August 29th, 2011, 3:43 pm
by Cristián Lávaque
Hi Maurizio.

Did you double-check your s2Member-PayPal integration to make sure it's all correct? WP Admin -> s2Member -> PayPal Options

What do your logs say? (x'ing out any private info) WP Admin -> s2Member -> PayPal Options -> Account Details -> Enable Logging Routines

Re: PDT Auto-Return Problem

PostPosted: August 30th, 2011, 2:50 am
by maurizio
Hi Cristian, all settings are right. I have solved anyway.
The problem was: I was registering again an account that was already registered. So I deleted all cookies, I deleted that account and registration succeeded. BTW: I'm italian and I see there is no way to translate the thank you page. I translated inside of the code, but it is not ok, because that translation will be ovewritten with future updates. So would be nice if things were parameterizable (by means of variables changeable via s2member control panel).
Thanks for your reply.
Maurizio

Re: PDT Auto-Return Problem

PostPosted: August 30th, 2011, 4:46 pm
by Cristián Lávaque
Ah, thanks for the update, Maurizio. I'm very glad you sorted it out.

About the translations, they're in the to-do for the next or so release! Jason is working on that now. :)

Re: PDT Auto-Return Problem

PostPosted: September 13th, 2011, 11:27 pm
by man-O-media
Cristián Lávaque wrote:Did you double-check your s2Member-PayPal integration to make sure it's all correct? WP Admin -> s2Member -> PayPal Options

What do your logs say? (x'ing out any private info) WP Admin -> s2Member -> PayPal Options -> Account Details -> Enable Logging Routines


Hey Cristián,

I am having the same error... Page Expired: Duplicate Return Data
As far as I know my settings are correct and I have the logs but of course don't have a clue what I should be looking for nor in which of the three log files...

That said, what I did is pay a 1 year buy now membership for an already registered member going from Subscriber to S2 level 1 with a s2 generated PayPal button.
The payment was successful.

I don't believe it should make a difference but the membership name and address was different than the paying name and address used on the PayPal payment page.

Pointers?

DP

Re: PDT Auto-Return Problem

PostPosted: September 27th, 2011, 12:21 am
by Cristián Lávaque
DP, could you should me your button shortcode? Was the user logged in when he made the payment? If you could also post the related entries from all the log files (x'ing out private info), it'd be helpful. :)

Re: PDT Auto-Return Problem

PostPosted: September 27th, 2011, 9:47 pm
by man-O-media
Cristián Lávaque wrote:DP, could you should me your button shortcode? Was the user logged in when he made the payment? If you could also post the related entries from all the log files (x'ing out private info), it'd be helpful. :)

Yes the user was logged in... It was me doing a 1 cent test payment.
The way I have it setup, you must be logged in at least as a subscriber to even see the pay buttons.

That fail was the very first payment I had ever made from that specific site to that specific PayPal account. I made multiple tests after that first fail and every payment I did went fine. I also had another person do a 1 cent test payment and that also went fine.

I do have the logs and actually I think I just found the buttons that were used too. I have since put the page live and replaced the buttons with the proper ones but have an older test page I was using that has the buttons.

Let me know if you still want the logs and the button short code and if you do want the logs, you might give a hint as to what if anything can be ommitted as there is a lot of stuff to edit :shock:

Thanks, DP

Re: PDT Auto-Return Problem

PostPosted: September 30th, 2011, 12:42 am
by Cristián Lávaque
OK, after you log transactions with the right buttons, if you have one with the return problem, please post the log entries related to it only. You can x out private info like the customer's name and email address, at least. :)

Re: PDT Auto-Return Problem

PostPosted: November 21st, 2011, 12:45 pm
by solarhouse
I am having the same issue. It is happening with everyone who goes through PayPal whether existing customer or not. Here's an example:

PHP v5.3.8 :: WordPress® v3.2.1 :: s2Member® v111029 :: s2Member® Pro v111029
Memory 41.54 MB :: Real Memory 42.00 MB :: Peak Memory 41.67 MB :: Real Peak Memory 42.00 MB
medicalfitness.org/?s2member_paypal_return=1&

User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
array (
'transaction_subject' => 'New Professional Membership at $225',
'payment_date' => '04:16:04 Nov 18, 2011 PST',
'txn_type' => 'subscr_payment',
'subscr_id' => 'I-PUGMCW38BY2H',
'last_name' => '*******',
'option_selection1' => 'medicalfitness.org',
'option_selection2' => '108.74.16.37',
'residence_country' => 'US',
'item_name' => 'New Professional Membership at $225',
'payment_gross' => '225.00',
'mc_currency' => 'USD',
'business' => '********@medicalfitness.org',
'payment_type' => 'instant',
'protection_eligibility' => 'Ineligible',
'payer_status' => 'verified',
'payer_email' => '***********',
'txn_id' => '6MD03007GC6412438',
'receiver_email' => '*********@medicalfitness.org',
'first_name' => 'Bruce',
'option_name1' => 'Originating Domain',
'invoice' => '4ec64b91919a2~108.74.16.37',
'payer_id' => '2GRFM48VBRKB4',
'option_name2' => 'Customer IP Address',
'receiver_id' => 'F6ZLV2H5WSSR8',
'item_number' => '1:professional',
'payment_status' => 'Completed',
'payment_fee' => '5.93',
'mc_fee' => '5.93',
'mc_gross' => '225.00',
'custom' => 'medicalfitness.org',
'charset' => 'windows-1252',
's2member_log' =>
array (
0 => 'Return-Data received on: Fri Nov 18, 2011 7:17:20 am EST',
1 => 's2Member POST vars verified through a POST back to PayPal®.',
2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
3 => 'Page Expired. Duplicate Return-Data.',
4 => 's2Member `txn_type` identified as ( `web_accept|subscr_signup|subscr_payment` ).',
5 => 'Page Expired. Redirecting Customer to the Home Page.',
),
'subscr_gateway' => 'paypal',
's2member_paypal_return_tra' => 'fnIyOjlna1pZVk1wZUZJSHFzVmlHelVvbXJXY3FKRld6M2F2fNAduDjEM6aNFR39d6qFwz4Pk1Aqkx9WWUXSyupfEaNbiHJ6VRV91vPnNKWsHXymkd5K66KsiAyXVNPHcGHR7o9HaeGZJiKGxr5fimv6Enhq_SikUsunN6XWiJ2U72chm7AzBtQkjVFxqLpQTT6KPuYvYmlk_me9p8EYiCae9oEIJ8Ui0pVjOLIY8HFDpOdCEiPOE4gkxD9UWoXvPsC52hjnVsARXGQfkGCIwgXWyWZKlLZ4oe_SbRU7Lki9sFCsTtXAgoU9srL0Z9E7wvn0GKZeiT5WD08G1bCJiw6WD87nphJZ-Bh3VEBwJcwSZPBbWWyJ3SvAuc-agsHSaVM4HRIP1zkEJbTPBEOq2roD1tyLOgTDErVHh-i6heg-HzBvmA',
)

Button Code: [s2Member-PayPal-Button level="1" ccaps="professional" desc="New Professional Membership at $225" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="medicalfitness.org" ta="0" tp="0" tt="D" ra="225.00" rp="1" rt="Y" rr="0" rrt="" rra="1" image="default" output="button" /]

Thanks!

Re: PDT Auto-Return Problem

PostPosted: November 25th, 2011, 3:12 am
by Cristián Lávaque
Could you update your s2Member to the latest release first and see if that solves your problem? If not, please post all the entries related to the problem, from all your log files, x'ing out all private info, please. Thanks! :)

Re: PDT Auto-Return Problem

PostPosted: November 28th, 2011, 1:37 pm
by solarhouse
I updated but it is still occurring. Here are the relevant logs:

! ** log file removed.. contained personally identifiable information.

Probably way more than you need. Let me know if there's anything else you need from me.

Re: PDT Auto-Return Problem

PostPosted: December 1st, 2011, 12:58 am
by Cristián Lávaque
Thanks. I emailed Jason asking him about it.

In the meantime, could you please edit your post to remove the customer info like names and email addresses, please? Thanks. :)

Re: PDT Auto-Return Problem

PostPosted: December 2nd, 2011, 3:19 am
by Jason Caldwell
Thanks for the heads up on this thread.

This message in your log entries:
'Page Expired. Duplicate Return-Data.',

Indicates that the Return Page was loaded more than once ( perhaps the Customer clicked the back button, or saved the URL as a bookmark ). s2Member prevents duplicate processing in those cases, by expiring the content and redirecting to the Home Page.

I'm not aware of any bugs in this regard. If this error is occurring in scenarios where you're absolutely sure there is no duplicate processing occurring, I would start looking at your other plugins for potential conflicts. For instance, do you have any plugins running that might be caching object data in WordPress, or otherwise altering internal calls to the WordPress functions set_transient() and/or get_transient()?

See also: http://codex.wordpress.org/Transients_API