latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

ERROR: Unable to verify $_POST vars.

Home Forums Community Forum ERROR: Unable to verify $_POST vars.

This topic contains 20 replies, has 3 voices. Last updated by  Cristián Lávaque 3 years, 10 months ago.

Topic Author Topic
Posted: Wednesday Feb 20th, 2013 at 6:01 pm #42616
Robin F.
Username: goaim

Hello to the great S2member team !

Today I need your help x_x
I used to use your docs and forums to solve my problems but now, after having trying many things, I don’t find the solution (the common solutions to this issue)…

PROBLEM : I don’t succeed into coming back to my website when using your Paypal Subscr Modification Buttons, I have the classical grey page with ERROR: Unable to verify $_POST vars…
(I precise that I used your Button Code Generator For Subscription Modifications…)

WHAT WORK : – Even there is that “return” issue, the paypal process works ! -> The subscriber successfully upgrade or downgrade its membership level.
– When using the signup ProForm buttons there are no problems, all is running quite well

WHAT DOESN’T WORK : Using the Subscr. Modific. buttons the “return” / come back to my website, without having the grey screen error

LET’S TALK ABOUT TECHNICAL STUFF
– I passed successfully all the points with your s2-server-scanner.php tool
– I tried generating the Subscriptions Modifications Buttons with the 2 ways : the shortcode ( < ?php echo do_shortcode(…etc…) ), and with the HTML FORM… Same issue…
– I changed many vars in the FORM but no way…

My plugins installed are :
AdRotate
Custom Welcome Messages
Display Last Post(s)
Email Users
Facebook Inviter
FV Top Level Categories
Login With Ajax
Really Simple Breadcrumb
SB Welcome Email Editor
Secure HTML5 Video Player
UberMenu 2
WordPress Importer
WP-FB-AutoConnect

I’m posting below the debug code.
I’m ready to send you (private contact form) the access and the way to get to the error.

PHP v5.3.21 :: WordPress® v3.5 :: s2Member® v130214 :: s2Member® Pro v130214
Memory 31.88 MB :: Real Memory 32.25 MB :: Peak Memory 32.02 MB :: Real Peak Memory 32.25 MB
www.smartecards.fr/mise-a-jour-compte?s2member_paypal_return=1&amp;tx=23X608967F6640746&amp;st=Completed&amp;amt=0.01&amp;cc=EUR&amp;cm=www%2esmartecards%2efr&amp;item_number=&amp;sig=fmKSwCRSiy4xKZ6Q%2bFGLczCUf5244O6ZqRvkVeqtp1t0W03I8%2f7dC0kqTkeMzOYmyIupnFEaI1UYff0t3Wk68o3usnMp%2bFQ1HzaNB1CCm1VegnrlDC0WjzsL2t%2bzkc%2bOqgoBo2yBXCeqNfXN8ZayE8GjU%2fq79M15f%2fiAMnPgsG0%3d
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0
array (
  's2member_log' =&gt; 
  array (
    0 =&gt; 'Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.',
    1 =&gt; 'Please make sure that you configure a PayPal® PDT Identity Token for your installation of s2Member®. See: `s2Member -› PayPal® Options -› PayPal® PDT/Auto-Return Integration`.',
    2 =&gt; 'If you're absolutely SURE that your configuration is valid, you may want to run some tests on your server, just to be sure $_POST variables are populated, and that your server is able to connect/communicate with your Payment Gateway over an HTTPS connection.',
    3 =&gt; 's2Member uses the `WP_Http` class for remote connections; which will try to use `cURL` first, and then fall back on the `FOPEN` method when `cURL` is not available. On a Windows® server, you may have to disable your `cURL` extension; and instead, set `allow_url_fopen = yes` in your php.ini file. The `cURL` extension (usually) does NOT support SSL connections on a Windows® server.',
    4 =&gt; 'Please see this thread: `http://www.s2member.com/forums/topic/ideal-server-configuration-for-s2member/` for details regarding the ideal server configuration for s2Member.',
    5 =&gt; 'array (
  's2member_paypal_return' =&gt; '1',
  'tx' =&gt; '23X608967F6640746',
  'st' =&gt; 'Completed',
  'amt' =&gt; '0.01',
  'cc' =&gt; 'EUR',
  'cm' =&gt; 'www.smartecards.fr',
  'item_number' =&gt; '',
  'sig' =&gt; 'fmKSwCRSiy4xKZ6Q+FGLczCUf5244O6ZqRvkVeqtp1t0W03I8/7dC0kqTkeMzOYmyIupnFEaI1UYff0t3Wk68o3usnMp+FQ1HzaNB1CCm1VegnrlDC0WjzsL2t+zkc+OqgoBo2yBXCeqNfXN8ZayE8GjU/q79M15f/iAMnPgsG0=',
)',
    6 =&gt; 'Redirecting Customer to the Home Page (after displaying an error message).',
  ),
)

Many thanks.
Regards,
Robin

List Of Topic Replies

Viewing 20 replies - 1 through 20 (of 20 total)
Author Replies
Author Replies
Posted: Thursday Feb 21st, 2013 at 7:39 am #42702

Hi Robin.

Could you please submit the site’s info then? Please include the URL of the page where you have the button, too. s2Member® » Private Contact Form

Thanks!

Posted: Thursday Feb 21st, 2013 at 8:22 am #42708
Robin F.
Username: goaim

Hi Cristián,

Ok I send you the infos in 5 minutes.
Meanwhile I write here the steps to use the buttons and reproduce the issue :

1/ http://www.smartecards.fr/inscription
click the Facebook button (or the EMAIL adress) in order to create your account

2/ http://www.smartecards.fr/identification
Connect yourself to your account on this webpage

3/ Once logged, at the top of the screen, click “Abonnement VIP” (= VIP Membership)

4/ Choose your pay membership (the first month is free, you’ll don’t be charged for the test !!!)
The green or blue button mean monthly or yearly subscription.

5/ On next screen, click PAYPAL as payement gateway.
Use your paypal account to pay (but you’ll don’t be charged, 1st month free)

6/ When finished, you’ll be back on the website, successfully : no problem till there

=====

Now the issue, when you want to change your subscription to yearly membership (if you choose monthly perviously) :

1/ Once logged, at the top of the screen, click “Mon compte” (= My account)

2/ click the blue button “Changer en abonnement annuel” (= Change to year membership )
===> As charges I put 0.01€, the minimum

3/ The Paypal process… You validate and on the return to the website : the grey screen with the error :/

Hope it helps.
See you, many thanks

Posted: Thursday Feb 21st, 2013 at 9:58 am #42728
Staff Member

Thanks for the heads up on this thread :-)

While Crisitan investigates this, you might also take a look at this section of your Dashboard.
Dashboard -› s2Member® -› PayPal® Options -› PayPal® PDT Integration

Posted: Friday Feb 22nd, 2013 at 5:06 am #42788
Robin F.
Username: goaim

Hi Jason !

Nice to talk to the lead developper of this fantastic product :-)

You did it !! You are right Jason, it was under my eyes but invisible… I had a bad token identity !!!! (Certainly due to a recent website migration)

I just made one test and it worked, I’ll try more in 1 hour and I’ll come back here to give you the results (So Cristian don’t waste your time for me now, thank you)

See you !

Posted: Friday Feb 22nd, 2013 at 10:59 pm #42894

Glad you solved it! Thanks for the update. :)

Posted: Saturday Feb 23rd, 2013 at 8:53 am #43036
Robin F.
Username: goaim

Confirmed !

Nice to be able to propose the upgrade to my future clients.

Just a question remains on this topic of S2Member upgrade functionality :

I’ve 2 levels of membership :
– level 01 (monthly)
– level 02 (yearly)
…Both are recurring.

So I make the upgrade from the LEVEL 01 to the LEVEL 02 and then when I go in the panel of recurring payments of Paypal it seems the first (previous one) recurring payment remains ACTIVE…
I see well the new recurring payment corresponding to my yearly level 02.
So is the previous LEVEL 01 really still ACTIVE or not ?

Thank you very much !
Regards
Robin

Posted: Tuesday Feb 26th, 2013 at 4:21 am #43204
Robin F.
Username: goaim

Hello team S2Member,

I’m back too, I re-up the topic for my last demand.
Perhaps the answer will be easy, I hope so : )

Thank you !

Posted: Tuesday Feb 26th, 2013 at 6:59 am #43213

So I make the upgrade from the LEVEL 01 to the LEVEL 02 and then when I go in the panel of recurring payments of Paypal it seems the first (previous one) recurring payment remains ACTIVE…
I see well the new recurring payment corresponding to my yearly level 02.
So is the previous LEVEL 01 really still ACTIVE or not ?

When you do the upgrade, you must be logged into the account you’re upgrading, or the payment will go towards a new account and two separate subscriptions would exist. What does the log say about the upgrade payment? Does it mention registration? [hilite path]Dashboard -› s2Member® -› Log Files (Debug) -› s2Member® Log Viewer[/hilite]

Also, are you using the modification button/pro-form for the upgrade?
[hilite path]Dashboard -› s2Member® -› PayPal® Buttons -› Subscr. Modification Buttons[/hilite]
[hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Billing Modification Forms[/hilite]

Posted: Tuesday Feb 26th, 2013 at 6:43 pm #43266
Robin F.
Username: goaim

Thanks Christian,

You mean I must be logged to my WordPress account, not Paypal account, isn’t it ?

To answer you, yes I use :

Dashboard -› s2Member® -› PayPal® Buttons -› Subscr. Modification Buttons

I watched the logs and here is what I found as error (I just hid USER and PWD below ) :

LOG ENTRY: Tue Feb 26th, 2013 @ precisely 11:26 pm UTC
PHP v5.3.21 :: WordPress® v3.5 :: s2Member® v130221 :: s2Member® Pro v130221
Memory 34.09 MB :: Real Memory 35.00 MB :: Peak Memory 34.34 MB :: Real Peak Memory 35.00 MB
www.smartecards.fr/compte/profile
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0
-------- Input vars: ( Tue Feb 26, 2013 11:26:35 pm UTC ) --------
array (
  'PROFILEID' => 'I-N4D8L9BMND0U',
  'METHOD' => 'GetRecurringPaymentsProfileDetails',
  'VERSION' => '71.0',
  'USER' => 'xxxxxxxxxxxxxxxxxxxxxxxxx',
  'PWD' => 'xxxxxxxxxxxxxxxxxxxxxx',
  'SIGNATURE' => 'AFcWxV21C7fd0v3bYYYRCpSSRl31ABVDgXrNf.QsE6KcbKKKvS24zhP3',
)
-------- Output string/vars: ( Tue Feb 26, 2013 11:26:36 pm UTC ) --------
PROFILEID=I%2dN4D8L9BMND0U&TIMESTAMP=2013%2d02%2d26T23%3a26%3a36Z&CORRELATIONID=f4d8ce3219ed2&ACK=Failure&VERSION=71%2e0&BUILD=5294323&L_ERRORCODE0=11592&L_SHORTMESSAGE0=Subscription%20Profiles%20not%20supported%2e&L_LONGMESSAGE0=Subscription%20Profiles%20not%20supported%20by%20Recurring%20Payment%20APIs%2e&L_SEVERITYCODE0=Error
array (
  'PROFILEID' => 'I-N4D8L9BMND0U',
  'TIMESTAMP' => '2013-02-26T23:26:36Z',
  'CORRELATIONID' => 'f4d8ce3219ed2',
  'ACK' => 'Failure',
  'VERSION' => '71.0',
  'BUILD' => '5294323',
  'L_ERRORCODE0' => '11592',
  'L_SHORTMESSAGE0' => 'Subscription Profiles not supported.',
  'L_LONGMESSAGE0' => 'Subscription Profiles not supported by Recurring Payment APIs.',
  'L_SEVERITYCODE0' => 'Error',
  '__error' => 'Error #11592. Subscription Profiles not supported. Subscription Profiles not supported by Recurring Payment APIs.',
)

I think it must indicates something but I don’t what ^_^;
Help help help
Thanks …

Posted: Tuesday Feb 26th, 2013 at 10:47 pm #43273

Right, I meant the WP account. :)

Thanks for the log entry. Did you purchase the recurring payments service from PayPal? You have to upgrade your PayPal account to sell subscriptions. Contact PayPal and tell them about it, please.

Posted: Wednesday Feb 27th, 2013 at 6:47 am #43283
Robin F.
Username: goaim

It sounds strange because the recurring payments are already working on my website (And it works without having never subscribed a specific recurring service, I’m owning an old Business account without limit :) Perhaps it’s a specifical situation for my problem ? )

It’s just the upgrading function with S2member which doesn’t work ( = upgrading button works in Paypal and S2member, but the old recurring subscription remains ACTIVE instead being canceled…).

I’ll contact Paypal but meanwhile… waiting their answer… what do you think : if I found that it’s better for me to not change anything with my Paypal situation could it be possible by any S2member functions to cancel the old Paypal subscription which is still active (in the background or not…) ?

I’m back soon.
Thk you

Posted: Wednesday Feb 27th, 2013 at 7:00 am #43287

It sounds strange because the recurring payments are already working on my website (And it works without having never subscribed a specific recurring service, I’m owning an old Business account without limit :) Perhaps it’s a specifical situation for my problem ? )

Hmm… Well, with PayPal Standard or Express Checkout, you don’t need to pay extra to sell subscriptions, but with PayPal Pro you do need to upgrade. I’m not sure what PayPal service you’re having the problem with, but it’s likely it’s PayPal Pro if you’re using the PayFlow API, although you could still be having the user paying via Express Checkout when using the pro-form.

It’s just the upgrading function with S2member which doesn’t work ( = upgrading button works in Paypal and S2member, but the old recurring subscription remains ACTIVE instead being canceled…).

Are these old subscriptions from a different PayPal service? I mean, were they, for example, created with PayPal Standard and are you now trying to upgrade them with PayPal Pro? Did you change your PayPal account between the user’s first subscription and the upgrade? This would cause a problem.

Posted: Friday Mar 1st, 2013 at 5:04 am #43453
Robin F.
Username: goaim

Hi,

I have some answers from the Paypal Dev. team.

Here is what he told me :

For your 1st paypal payment subscription you use the s2member module a way it is using the ECRP API (ExpressCheckout RecurringPayment).

However, in order to upgrade your subscription previously created with the API, you are using a subscription button (cmd=_xclick-subscriptions) : That is not possible.

I don’t know how to well correct the things if I did something wrong.
What I did was :
For the 1st signup and paypal subscription I’m using the S2MEMBER Paypal(c) ProForm engine (=>Pro Form Generator For Level #1 Access).
– After that, for the Upgrade, I’m using the Paypal(c) Buttons engine (=>Button Code Generator For Subscription Modifications)

The things are more clearly now ?
Perhaps I’m not using S2Member as I would…

Are these old subscriptions from a different PayPal service? I mean, were they, for example, created with PayPal Standard and are you now trying to upgrade them with PayPal Pro? Did you change your PayPal account between the user’s first subscription and the upgrade? This would cause a problem

To answer you Christian, no, I didn’t change anything between the 2 processes…

Thank you

Posted: Saturday Mar 2nd, 2013 at 8:09 am #43591

For your 1st paypal payment subscription you use the s2member module a way it is using the ECRP API (ExpressCheckout RecurringPayment).

However, in order to upgrade your subscription previously created with the API, you are using a subscription button (cmd=_xclick-subscriptions) : That is not possible.

He’s saying there that you created a subscription with Express Checkout and then were trying to upgrade it using a PayPal Standard button.

– For the 1st signup and paypal subscription I’m using the S2MEMBER Paypal(c) ProForm engine (=>Pro Form Generator For Level #1 Access).
– After that, for the Upgrade, I’m using the Paypal(c) Buttons engine (=>Button Code Generator For Subscription Modifications)

What you are saying here is what the PayPal rep said too. Created the subscription with Express Checkout and then tried upgrading with PayPal Standard.

If you create a subscription with Express Checkout you have to modify it with Express Checkout. If you create one with PayPal Standard, you modify it with PayPal Standard.

Since you created the subscriptions with Express Checkout, please try a modification pro-form. [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Billing Modification Forms[/hilite]

I hope that helps. :)

Posted: Monday Mar 4th, 2013 at 9:01 am #43695
Robin F.
Username: goaim

Hi Cristián

Since you created the subscriptions with Express Checkout, please try a modification pro-form. Dashboard -› s2Member® -› PayPal® Pro Forms -› Billing Modification Forms

Ok I understand better the logic.
So for my upgrade I tried to put the “good version” of Paypal according to my first signup, a.k.a the ProForm method ! :)
I put this link into my PHP code (code was made by Pro Form Generator For Billing Modifications) :

do_shortcode('[s2Member-Pro-PayPal-Form modify="1" level="2" ccaps="" desc="0.01 EUR / Yearly (recurring charge, for ongoing access)" ps="paypal" lc="" cc="EUR" dg="0" ns="1" custom="www.smartecards.fr" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="Y" 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" /]')

=> It results I see a new form as if my member where not logged and yet registered !
I see the “Create Profile” and “Billing choice” etc… form fields !
And when I click the submit button below => it reloads the webpage, nothing run to Paypal…

But I just want my members have a link or a short form in order to upgrade ^^

What do you think please ?
Thank you, I’m sure the solution is close
Robin

Posted: Wednesday Mar 6th, 2013 at 4:08 am #43838
Robin F.
Username: goaim

Hello,

I re-up for my last post. If anything was not clear I can try to explain it better :)

Thanks

Posted: Wednesday Mar 6th, 2013 at 4:28 am #43843

=> It results I see a new form as if my member where not logged and yet registered !
I see the “Create Profile” and “Billing choice” etc… form fields !
And when I click the submit button below => it reloads the webpage, nothing run to Paypal…

That’s weird. Could you show me a screenshot?

You may be having a JavaScript conflict… Could you try the plugin/theme conflict tests again? Knowledge Base » Common Troubleshooting Tips

Are you trying to use more than one pro-form in the same page? If so, that’d be causing trouble, you shouldn’t have more than one in the same page.

Posted: Wednesday Mar 6th, 2013 at 6:56 am #43862
Robin F.
Username: goaim

You solved it one more time ! :)

On my profile member webpage I have 2 options :
– the upgrade form
– the cancel button

When I disabled the cancel button the upgrade form worked perfectly (both on the s2member and Paypal sides).
So… There is no way to have an upgrade and cancel button/form on the same page ?

Moreover I’m a bit astounished by what I saw in the recurring payment page of Paypal after that operation :
– the last subscription is well canceled, OK.
– BUT the new subscription is under the status “En attente” (= “In waiting”)… Is it normal ? There is always a delay in this kind of upgrade process ?

Thanks again Cristián,
Regards
Robin

Posted: Thursday Mar 7th, 2013 at 4:23 pm #43989
Robin F.
Username: goaim

Hello,

** Update of my previous post **

The Paypal status of the payment is now ok (not in “waiting” mode anymore), cool !!

1/ Is there always a delay in a Paypal subscription to see the transaction granted by Paypal using the upgrade process ?

2/ Is there any standard way to have both an upgrade ProForm form, and a cancel (button or ProForm) on the same page ? If not, I’ll have to imagine something magic :-)

Thks
Robin

Posted: Friday Mar 8th, 2013 at 8:00 am #44070

The Paypal status of the payment is now ok (not in “waiting” mode anymore), cool !!

Great! I’m glad I could help and that you sorted it out. :)

1/ Is there always a delay in a Paypal subscription to see the transaction granted by Paypal using the upgrade process ?

I don’t know if it’s always or only sometimes… I’d ask PayPal support, who’d be more familiar with that behavior.

2/ Is there any standard way to have both an upgrade ProForm form, and a cancel (button or ProForm) on the same page ? If not, I’ll have to imagine something magic :-)

Well, I wasn’t aware that a button would conflict with a pro-form… Maybe it was a problem with where the shortcodes where placed? But if you can’t make them work together in your site, you’ll need to have them in separate pages… Or you could output the button as a link instead. [hilite path]Dashboard -› s2Member® -› PayPal® Buttons -› Shortcode Attributes -> output[/hilite]

Viewing 20 replies - 1 through 20 (of 20 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.