I posted a thread a couple weeks ago with a little confusion in regard to this error, but the thread title is incorrect/misleading (I thought it was SSL related) so I figured I would make a new one that might help some people looking into this error.
The problem is that this error just wont go away, and I feel like I have tried everything I can to fix it. I will list what I have done. We are just using regular PayPal buttons.
- Enabled logging so I can see what is happening, it happens for every transaction.
- cUrl isn't available so it falls back to fopen, which is available.
- I force www. on the domain with mod_rewrite
- I also use 'php_value allow_url_fopen On' in the .htaccess
- I have re-entered the PDT token from PayPal...
- Asked the server about the error, and they are hesitant to help because its a WP Plugin.
I really don't know what else to do, should I request to see if I can get cUrl enabled on the server? I don't want to cause anymore issues, but I think that is all I am left to try. I find it odd though that it wont work if fopen is apparently working, leads me to believe something else is the cause.
Here is an example of the log.
- Code: Select all
PHP v5.2.17-pl0-gentoo :: WordPress® v3.3 :: s2Member® v111220
Memory 22.54 MB :: Real Memory 22.75 MB :: Peak Memory 22.69 MB :: Real Peak Memory 22.75 MB
www.domain.com/?s2member_paypal_return=1&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=x-preview
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:12.0a1) Gecko/20120123 Firefox/12.0a1
array (
'subscr_gateway' => 'paypal',
's2member_log' =>
array (
0 => 'Test preview of Return Page `proxy_use`: ( `x_preview` ).',
1 => 'Redirecting Customer to the Home Page. Test preview of Return Page `proxy_use`: ( `x_preview` ).',
),
's2member_paypal_proxy' => 'paypal',
's2member_paypal_proxy_use' => 'x-preview',
)
PHP v5.2.17-pl0-gentoo :: WordPress® v3.3 :: s2Member® v111220
Memory 22.28 MB :: Real Memory 22.50 MB :: Peak Memory 22.41 MB :: Real Peak Memory 22.50 MB
www.domain.com/?s2member_paypal_return=1&s2member_paypal_return_tra=ENCODED&tx=ENCODED&st=Completed&amt=3.00&cc=AUD&cm=www%2edomain%2ecom&item_number=&sig=ENCODED%3d
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTbORJ/5.14.1.20007)
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\' => \'ENCODED\',
\'tx\' => \'ENCODED\',
\'st\' => \'Completed\',
\'amt\' => \'3.00\',
\'cc\' => \'AUD\',
\'cm\' => \'www.domain.com\',
\'item_number\' => \'\',
\'sig\' => \'ENCODED\',
)',
5 => 'Redirecting Customer to the Home Page, due to an error that occurred.',
),
's2member_paypal_return_tra' => 'ENCODED',
)