Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-15T21:03:03-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14388 2011-08-15T21:03:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14388&p=32029#p32029 <![CDATA[Re: Unable to verify $_POST vars - Paypal]]> Edit: Disregard that post, we suck. Boss forgot the redirect token. Doh!

Hi,

sorry for hijacking this thread, but we're having the exact same problem on a dedicated Linux server. CURL is not installed but fopen is enabled and the openssl module is loaded. The test file from the config thread reports no problems either, but after the Paypal transaction users don't get redirected properly and get the "ERROR: Unable to verify $_POST vars." error.

Statistics: Posted by kshade — August 15th, 2011, 9:03 pm


]]>
2011-08-10T10:58:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14388&p=30374#p30374 <![CDATA[Re: Unable to verify $_POST vars - Paypal]]>

Statistics: Posted by Cristián Lávaque — August 10th, 2011, 10:58 am


]]>
2011-08-09T19:56:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14388&p=30339#p30339 <![CDATA[Re: Unable to verify $_POST vars - Paypal]]>
Denis

Statistics: Posted by banta — August 9th, 2011, 7:56 pm


]]>
2011-08-09T13:40:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14388&p=30301#p30301 <![CDATA[Re: Unable to verify $_POST vars - Paypal]]>
I suggest you post in the Ideal Server Configuration thread, since it's relevant and Jason will get a notification because he's posted in it. viewtopic.php?f=36&t=2636

And I'd also consider moving to a server that doesn't have the problem this one is giving you.

Statistics: Posted by Cristián Lávaque — August 9th, 2011, 1:40 pm


]]>
2011-08-09T11:34:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14388&p=30277#p30277 <![CDATA[Unable to verify $_POST vars - Paypal]]>
I'm trying to evaluate S2Member for use in a project I am working on. I must say, it's very impressive - a credit to your hard work.

I have setup all of my PayPal options (Sandbox), including IPN, PDT & Auto-Return information - I am able to successfully submit payment in the sandbox, however on return to my test site, I get the "Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility." message.

I've checked the config details several times. I have even setup a new business user account in the Paypal sandbox and tried using it's API credentials, I also tried creating new Paypal buttons (via S2Member). The payment is processed in the sandbox, the Paypal confirmation emails are being sent within the sandbox, but I still get the "unable to verify $_POST vars" error. I have attached the logs generated below.

This lead me to believe that I may have a server configuration issue. I'm on shared linux-based hosting and tried the various steps outlined on this forum.

cURL is enabled (I have no control over this), but the cURL tests are failing for both http and https (just a white page). The fopen test over https works fine (OpenSSL is enabled).

I'm at a loss as to what could be wrong. I have searched through these forums and tried every solution I could find, but to no avail.

Can anyone point me in the right direction? S2Member looks like it can do everything I want and I'd like to be sure I can use it before I commit to buying the Pro version.

Thank you,
Denis



The following logs are generated:
paypal-ipn.log
Code:
WordPress® v3.2.1 :: s2Member® v110731
test-site.com/?s2member_paypal_notify=1
User-Agent:
array (
  's2member_log' =>
  array (
    0 => 'Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.',
    1 => '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.',
    2 => '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.',
    3 => 'Please see this thread: `http://www.primothemes.com/forums/viewtopic.php?f=36&t=2636` for details regarding the ideal server configuration for s2Member.',
    4 => 'array (
  \'s2member_paypal_notify\' => \'1\',
  \'txn_type\' => \'subscr_signup\',
  \'subscr_id\' => \'I-9D4CNP54CUVW\',
  \'last_name\' => \'User\',
  \'option_selection1\' => \'test-site.com\',
  \'option_selection2\' => \'109.76.24.55\',
  \'residence_country\' => \'GB\',
  \'mc_currency\' => \'EUR\',
  \'item_name\' => \'Associate Membership\',
  \'business\' => \'test-email-biz@test-site.com\',
  \'recurring\' => \'1\',
  \'verify_sign\' => \'AOafYYndZ3qNXtzcozbfyCRn6UfIAxi7GT03kYKKTNFcAT7QDVjKPNap\',
  \'payer_status\' => \'verified\',
  \'test_ipn\' => \'1\',
  \'payer_email\' => \'test-customer@here.com\',
  \'first_name\' => \'Test\',
  \'receiver_email\' => \'test-email-biz@test-site.com\',
  \'payer_id\' => \'P7N8TAK53HSWA\',
  \'option_name1\' => \'Originating Domain\',
  \'invoice\' => \'4e4157c7030e3~109.76.24.55\',
  \'option_name2\' => \'Customer IP Address\',
  \'reattempt\' => \'1\',
  \'item_number\' => \'1\',
  \'subscr_date\' => \'08:50:22 Aug 09, 2011 PDT\',
  \'custom\' => \'test-site.com\',
  \'charset\' => \'windows-1252\',
  \'notify_version\' => \'3.2\',
  \'period3\' => \'1 Y\',
  \'mc_amount3\' => \'100.00\',
  \'ipn_track_id\' => \'gZwwrFjDM52oeE3Eay3wAQ\',
)',
  ),
)

WordPress® v3.2.1 :: s2Member® v110731
test-site.com/?s2member_paypal_notify=1
User-Agent:
array (
  's2member_log' =>
  array (
    0 => 'Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.',
    1 => '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.',
    2 => '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.',
    3 => 'Please see this thread: `http://www.primothemes.com/forums/viewtopic.php?f=36&t=2636` for details regarding the ideal server configuration for s2Member.',
    4 => 'array (
  \'s2member_paypal_notify\' => \'1\',
  \'mc_gross\' => \'100.00\',
  \'invoice\' => \'4e4157c7030e3~109.76.24.55\',
  \'settle_amount\' => \'63.86\',
  \'protection_eligibility\' => \'Ineligible\',
  \'payer_id\' => \'P7N8TAK53HSWA\',
  \'payment_date\' => \'08:50:27 Aug 09, 2011 PDT\',
  \'payment_status\' => \'Completed\',
  \'charset\' => \'windows-1252\',
  \'first_name\' => \'Test\',
  \'option_selection1\' => \'test-site.com\',
  \'option_selection2\' => \'109.76.24.55\',
  \'mc_fee\' => \'3.75\',
  \'exchange_rate\' => \'0.663574\',
  \'notify_version\' => \'3.2\',
  \'subscr_id\' => \'I-9D4CNP54CUVW\',
  \'settle_currency\' => \'GBP\',
  \'custom\' => \'test-site.com\',
  \'payer_status\' => \'verified\',
  \'business\' => \'test-email-biz@test-site.com\',
  \'verify_sign\' => \'ASNbM6fp2fsRY4f1xVxXa-ca6RyHAqwfuPlIWRtJgxqq.WkUzcbl2pRr\',
  \'payer_email\' => \'test-customer@here.com\',
  \'option_name1\' => \'Originating Domain\',
  \'option_name2\' => \'Customer IP Address\',
  \'txn_id\' => \'25L75027BX209745P\',
  \'payment_type\' => \'instant\',
  \'last_name\' => \'User\',
  \'receiver_email\' => \'test-email-biz@test-site.com\',
  \'payment_fee\' => \'\',
  \'receiver_id\' => \'VQXPEY5QCHTBC\',
  \'txn_type\' => \'subscr_payment\',
  \'item_name\' => \'Associate Membership\',
  \'mc_currency\' => \'EUR\',
  \'item_number\' => \'1\',
  \'residence_country\' => \'GB\',
  \'test_ipn\' => \'1\',
  \'transaction_subject\' => \'\',
  \'payment_gross\' => \'\',
  \'ipn_track_id\' => \'u7CC23dvb5g6GewEWdz1QQ\',
)',
  ),
)



paypal-rtn.log
Code:
WordPress® v3.2.1 :: s2Member® v110731
test-site.com/?s2member_paypal_return=1&s2member_paypal_return_tra=fnIyOnQ4aUpCRWtuZGpBYldFZnl3UDdjN3M0S051OE8zT2l2fHqsKYtzQsiMnXv7MEPrZ-mcee2L7BJHSepam1aAqHj80X23DLaGHk-FOfvewXY9pkqQsDaxkjg3ieOip5BOlvtljsONxkW1mDZAP2uAhKl3GYWahd4H9CWe55CVJKA97_pFwr2F9akNCwE5JDZdmD-0poZzhH1yPiYL5gTmznj3VKWiMsmlHlgODb7R-fSszkZwJx-jWtTD7l8BlMHB9jggvniqH5Q-lRq0YOKEV2y3HHnpvuemTbs8o_-BuTFBFSs9mgW9E6YovLdWFJXBCE3YzwcOVuFT9MtL-ja6ivP24h6wuTB5sEWOqgDvoGo6UMp3gsVgPtAzZbXbTZoLnDle90d_TZWjnqKSL6eWSMcsbyFdUvNtuqeqJu6M4cwRxA%7E%7E&tx=25L75027BX209745P&st=Completed&amt=100.00&cc=EUR&cm=etpi%2edenishogan%2eie&item_number=&sig=Tqd%2f%2fX%2bRw%2bx7gLDaraZLjcCUTM2Gj2tpYzCqsW58M6F6XtDrG%2fAZNOQdIVQ54CYmdCpQ4kasdPKJ6i2uZzQwWKxpoeOGZ8n%2fXLN%2fbRsw6Dys%2b0WGFVoaKiQN1OgyuOr0tz57Jf%2bSb7K7g5BEi%2f2KrdmmWWoRmpA2qxoua87avOQ%3d
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
array (
  's2member_log' =>
  array (
    0 => 'Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.',
    1 => '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.',
    2 => '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.',
    3 => 'Please see this thread: `http://www.primothemes.com/forums/viewtopic.php?f=36&t=2636` for details regarding the ideal server configuration for s2Member.',
    4 => 'array (
  \'s2member_paypal_return\' => \'1\',
  \'s2member_paypal_return_tra\' => \'fnIyOnQ4aUpCRWtuZGpBYldFZnl3UDdjN3M0S051OE8zT2l2fHqsKYtzQsiMnXv7MEPrZ-mcee2L7BJHSepam1aAqHj80X23DLaGHk-FOfvewXY9pkqQsDaxkjg3ieOip5BOlvtljsONxkW1mDZAP2uAhKl3GYWahd4H9CWe55CVJKA97_pFwr2F9akNCwE5JDZdmD-0poZzhH1yPiYL5gTmznj3VKWiMsmlHlgODb7R-fSszkZwJx-jWtTD7l8BlMHB9jggvniqH5Q-lRq0YOKEV2y3HHnpvuemTbs8o_-BuTFBFSs9mgW9E6YovLdWFJXBCE3YzwcOVuFT9MtL-ja6ivP24h6wuTB5sEWOqgDvoGo6UMp3gsVgPtAzZbXbTZoLnDle90d_TZWjnqKSL6eWSMcsbyFdUvNtuqeqJu6M4cwRxA~~\',
  \'tx\' => \'25L75027BX209745P\',
  \'st\' => \'Completed\',
  \'amt\' => \'100.00\',
  \'cc\' => \'EUR\',
  \'cm\' => \'test-site.com\',
  \'item_number\' => \'\',
  \'sig\' => \'Tqd//X+Rw+x7gLDaraZLjcCUTM2Gj2tpYzCqsW58M6F6XtDrG/AZNOQdIVQ54CYmdCpQ4kasdPKJ6i2uZzQwWKxpoeOGZ8n/XLN/bRsw6Dys+0WGFVoaKiQN1OgyuOr0tz57Jf+Sb7K7g5BEi/2KrdmmWWoRmpA2qxoua87avOQ=\',
)',
    5 => 'Redirecting Customer to the Home Page, due to an error that occurred.',
  ),
  's2member_paypal_return_tra' => 'fnIyOnQ4aUpCRWtuZGpBYldFZnl3UDdjN3M0S051OE8zT2l2fHqsKYtzQsiMnXv7MEPrZ-mcee2L7BJHSepam1aAqHj80X23DLaGHk-FOfvewXY9pkqQsDaxkjg3ieOip5BOlvtljsONxkW1mDZAP2uAhKl3GYWahd4H9CWe55CVJKA97_pFwr2F9akNCwE5JDZdmD-0poZzhH1yPiYL5gTmznj3VKWiMsmlHlgODb7R-fSszkZwJx-jWtTD7l8BlMHB9jggvniqH5Q-lRq0YOKEV2y3HHnpvuemTbs8o_-BuTFBFSs9mgW9E6YovLdWFJXBCE3YzwcOVuFT9MtL-ja6ivP24h6wuTB5sEWOqgDvoGo6UMp3gsVgPtAzZbXbTZoLnDle90d_TZWjnqKSL6eWSMcsbyFdUvNtuqeqJu6M4cwRxA~~',
)

Statistics: Posted by banta — August 9th, 2011, 11:34 am


]]>