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.

About: Robert Amey

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing topic 1 (of 1 total)
Topic Count Last Reply
ERROR: Unable to verify $_POST vars.

By:  Robert Amey in: Community Forum

voices: 5
replies: 20

4 years, 3 months ago  Kerry Carron

Viewing topic 1 (of 1 total)

Topics I've Started

Viewing topic 1 (of 1 total)
Topic Count Last Reply
ERROR: Unable to verify $_POST vars.

By:  Robert Amey in: Community Forum

voices: 5
replies: 20

4 years, 3 months ago  Kerry Carron

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Tuesday Sep 18th, 2012 at 4:43 pm #25728

Hello Cristian,

I don’t actually have a host, I’m hosting this myself at the moment.
Can you not at least point my in the right direction?
Which file do I need to edit?

Please help.

Posted: Monday Sep 17th, 2012 at 3:57 pm #25610

Thank you for your reply Cristian,

When running the PHP file I receive the following warning:

[WARNING] Missing $_SERVER[‘SERVER_ADDR’]
Although NOT required, s2Member® recommends that your installation of PHP be configured with a $_SERVER[‘SERVER_ADDR’] environment variable. This is the IP address of the server, under which the current script is executing. It should be defined by your server dynamically. Please contact your hosting provider about this message.

Do how and where I configure $_SERVER[‘SERVER_ADDR’] ?

Kind Regards

Rob

Posted: Sunday Sep 16th, 2012 at 6:08 am #25464

Hello Eduan,

Thank you for your assistance today. The URL for my site is http://www.makeandcraft.com, it’s running on IIS 7.5.
My shortcode is: [s2Member-PayPal-Button level="2" ccaps="" desc="Digital - 3 month Special" ps="paypal" lc="" cc="GBP" dg="0" ns="1" custom="www.makeandcraft.com" ta="1" tp="3" tt="M" ra="15" rp="1" rt="Y" rr="1" rrt="" rra="1" image="default" output="button" /]

I have also tried and failed to modify the htaccess file to include RewriteCond %{HTTP_HOST} !^www.makeandcraft.com$ and RewriteRule ^(.*)$ http://www.makeandcraft.com/$1 [R=301]

My htaccess file is currently

# BEGIN s2Member GZIP exclusions

RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+
RewriteRule .* – [E=no-gzip:1]
RewriteCond %{HTTP_HOST} !^www.makeandcraft.com$
RewriteRule ^(.*)$ http://www.makeandcraft.com/$1 [R=301]

# END s2Member GZIP exclusions

Thanks in advance,
Rob

Posted: Saturday Sep 15th, 2012 at 8:02 pm #25449

Below is an entry from my paypal-ipn.log after an error occurs.

“PHP v5.3.10 :: WordPress® v3.4.1 :: s2Member® v120703 :: s2Member® Pro v120703
Memory 7.35 MB :: Real Memory 7.50 MB :: Peak Memory 7.38 MB :: Real Peak Memory 7.50 MB
http://www.makeandcraft.com/?s2member_paypal_notify=1
User-Agent:
array (
‘txn_type’ => ‘subscr_signup’,
‘subscr_id’ => ‘I-W1H6XU0W15WY’,
‘last_name’ => ‘Amey’,
‘option_selection1’ => ‘www.makeandcraft.com’,
‘option_selection2’ => ‘92.234.104.222’,
‘residence_country’ => ‘GB’,
‘mc_currency’ => ‘GBP’,
‘item_name’ => ‘Digital – 3 month Special’,
‘business’ => ‘info@skillkick.com’,
‘recurring’ => ‘15.00’,
‘verify_sign’ => ‘AxIx1Koz7.sQHacUU2A9OXQJoh5tAykJ8RiXjrrhYbIax.08zhZMKrUt’,
‘payer_status’ => ‘verified’,
‘payer_email’ => ‘elution@hotmail.com’,
‘first_name’ => ‘Robert’,
‘receiver_email’ => ‘info@skillkick.com’,
‘option_name1’ => ‘Originating Domain’,
‘payer_id’ => ‘PHS4XLSLMXLNG’,
‘invoice’ => ‘5055161532a23~92.234.104.222’,
‘option_name2’ => ‘Customer IP Address’,
‘reattempt’ => ‘1’,
‘item_number’ => ‘2’,
‘payer_business_name’ => ‘Hobby Craft Supplies’,
‘subscr_date’ => ’16:58:54 Sep 15, 2012 PDT’,
‘custom’ => ‘www.makeandcraft.com’,
‘charset’ => ‘windows-1252’,
‘notify_version’ => ‘3.6’,
‘period1’ => ‘3 M’,
‘mc_amount1’ => ‘1.00’,
‘period3’ => ‘1 Y’,
‘mc_amount3’ => ‘15.00’,
‘ipn_track_id’ => ‘4ceab781c34f’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Sat Sep 15, 2012 11:59:14 pm UTC’,
1 => ‘s2Member POST vars verified through a POST back to PayPal®.’,
2 => ‘s2Member originating domain ( `$_SERVER[“HTTP_HOST”]` ) validated.’,
3 => ‘s2Member `txn_type` identified as ( `web_accept|subscr_signup` ).’,
4 => ‘s2Member `txn_type` identified as ( `web_accept|subscr_signup` ) w/o update vars.’,
5 => ‘Signup Confirmation Email sent to: “Robert Amey” .’,
6 => ‘Storing IPN signup vars into a Transient Queue. These will be processed on registration.’,
),
‘subscr_gateway’ => ‘paypal’,
‘eotper’ => NULL,
‘ccaps’ => NULL,
‘level’ => ‘2’,
‘ip’ => ‘92.234.104.222’,
‘initial_term’ => ‘3 M’,
‘initial’ => ‘1.00’,
‘regular’ => ‘15.00’,
‘regular_term’ => ‘1 Y’,
)

Below is an entry from the paypal-rtn.log after an error occurs:

PHP v5.3.10 :: WordPress® v3.4.1 :: s2Member® v120703 :: s2Member® Pro v120703
Memory 5.94 MB :: Real Memory 6.25 MB :: Peak Memory 6.06 MB :: Real Peak Memory 6.25 MB
http://www.makeandcraft.com/?s2member_paypal_return=1&s2member_paypal_return_tra=fnIyOmQ1ZnNWbmVsUXdQd1c2RkJRY2ZKVVhtZjVYTEhaSWFZOmRkMzU5NzIyY2JlNDUxNjdlOGZkNGFkZDJiMjk3NDQ2fByei8YJ8hvs8YD-JtPNhpqsswdXFinc0Es-Y-1ZH3DQ0T664S_jktIbNSpHiPyWnBLnQ_JuXrDBOpfwn8_bK5EQ0navrCuzXqANPfMXSZRPrQq8MWhvepT2mfXibYVsrpJWd09xrt3slzgcSMM4e5hVGXZatwzV1B_mltFgp7luz-oW1xo9Pi_rFWLCog8GOc96NN8eqnr7tObwXhBV8JWJ_cPDI-Z2lMXaI97mlu_SJr5bCz5egOv8kn8H_UXgsOZVPjDgMI8zC3CwnbsghMstGB6a-Ks4xY0SMJ7clMv5Abg3wcRxuQlLpNzqihUohbxQ-k3a9_4Hp2dJuicRvDiCRb53xHrdHihDhu8zU0Kh9Nvo-timb6FdK7HjS0xjUw&tx=0WY010953D429084E&st=Completed&amt=1.00&cc=GBP&cm=www%2emakeandcraft%2ecom&item_number=&sig=XzVBEUPaT5lDETkY9vYroXxseEaw1W0Ww%2bpSEMTVnGH1wvBQ4HiJbBinQWSovvzlolzuuHZ9VQXsrS3%2fJd2tYxLXf6mTfHak8ZayA2ntWsaQ%2bDB%2fyj8uxhVOzdZzI9NCYcXzdMVwbljjwkp2KIT2hAYUjqKCmkGJ4xnJqxOME0U%3d
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
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.s2member.com/forums/topic/ideal-server-configuration-for-s2member/` for details regarding the ideal server configuration for s2Member.’,
4 => ‘array (
\’s2member_paypal_return\’ => \’1\’,
\’s2member_paypal_return_tra\’ => \’fnIyOmQ1ZnNWbmVsUXdQd1c2RkJRY2ZKVVhtZjVYTEhaSWFZOmRkMzU5NzIyY2JlNDUxNjdlOGZkNGFkZDJiMjk3NDQ2fByei8YJ8hvs8YD-JtPNhpqsswdXFinc0Es-Y-1ZH3DQ0T664S_jktIbNSpHiPyWnBLnQ_JuXrDBOpfwn8_bK5EQ0navrCuzXqANPfMXSZRPrQq8MWhvepT2mfXibYVsrpJWd09xrt3slzgcSMM4e5hVGXZatwzV1B_mltFgp7luz-oW1xo9Pi_rFWLCog8GOc96NN8eqnr7tObwXhBV8JWJ_cPDI-Z2lMXaI97mlu_SJr5bCz5egOv8kn8H_UXgsOZVPjDgMI8zC3CwnbsghMstGB6a-Ks4xY0SMJ7clMv5Abg3wcRxuQlLpNzqihUohbxQ-k3a9_4Hp2dJuicRvDiCRb53xHrdHihDhu8zU0Kh9Nvo-timb6FdK7HjS0xjUw\’,
\’tx\’ => \’0WY010953D429084E\’,
\’st\’ => \’Completed\’,
\’amt\’ => \’1.00\’,
\’cc\’ => \’GBP\’,
\’cm\’ => \’www.makeandcraft.com\’,
\’item_number\’ => \’\’,
\’sig\’ => \’XzVBEUPaT5lDETkY9vYroXxseEaw1W0Ww+pSEMTVnGH1wvBQ4HiJbBinQWSovvzlolzuuHZ9VQXsrS3/Jd2tYxLXf6mTfHak8ZayA2ntWsaQ+DB/yj8uxhVOzdZzI9NCYcXzdMVwbljjwkp2KIT2hAYUjqKCmkGJ4xnJqxOME0U=\’,
)’,
5 => ‘Redirecting Customer to the Home Page, due to an error that occurred.’,
),
‘s2member_paypal_return_tra’ => ‘fnIyOmQ1ZnNWbmVsUXdQd1c2RkJRY2ZKVVhtZjVYTEhaSWFZOmRkMzU5NzIyY2JlNDUxNjdlOGZkNGFkZDJiMjk3NDQ2fByei8YJ8hvs8YD-JtPNhpqsswdXFinc0Es-Y-1ZH3DQ0T664S_jktIbNSpHiPyWnBLnQ_JuXrDBOpfwn8_bK5EQ0navrCuzXqANPfMXSZRPrQq8MWhvepT2mfXibYVsrpJWd09xrt3slzgcSMM4e5hVGXZatwzV1B_mltFgp7luz-oW1xo9Pi_rFWLCog8GOc96NN8eqnr7tObwXhBV8JWJ_cPDI-Z2lMXaI97mlu_SJr5bCz5egOv8kn8H_UXgsOZVPjDgMI8zC3CwnbsghMstGB6a-Ks4xY0SMJ7clMv5Abg3wcRxuQlLpNzqihUohbxQ-k3a9_4Hp2dJuicRvDiCRb53xHrdHihDhu8zU0Kh9Nvo-timb6FdK7HjS0xjUw’,
)

On another post with a similar issue you advised some to try the following test:

$w = stream_get_wrappers();
echo ‘openssl: ‘, extension_loaded (‘openssl’) ? ‘yes’:’no’, “\n”;
echo ‘http wrapper: ‘, in_array(‘http’, $w) ? ‘yes’:’no’, “\n”;
echo ‘https wrapper: ‘, in_array(‘https’, $w) ? ‘yes’:’no’, “\n”;
echo ‘wrappers: ‘, var_dump($w);

My result for this is: openssl: yes http wrapper: yes https wrapper: yes wrappers: array(12) { [0]=> string(3) “php” [1]=> string(4) “file” [2]=> string(4) “glob” [3]=> string(4) “data” [4]=> string(4) “http” [5]=> string(3) “ftp” [6]=> string(3) “zip” [7]=> string(13) “compress.zlib” [8]=> string(5) “https” [9]=> string(4) “ftps” [10]=> string(4) “phar” [11]=> string(6) “sqlsrv” }

  • This reply was modified 4 years, 3 months ago by  Robert Amey.
  • This reply was modified 4 years, 3 months ago by  Robert Amey.
Posted: Saturday Sep 15th, 2012 at 7:46 pm #25448

Hello Raam

I have now resolved the Temporary Files Directory error, but I still receive the following error after a user pays via paypal.

“ERROR: Unable to verify $_POST vars.
Please contact Support for assistance.

This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility. If you are the site owner, and 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.

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.”

What can I check/try next?

Thanks in advance.
Rob

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

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.