Statistics: Posted by trc4949 — March 7th, 2011, 3:51 pm
else if ((!isset ($_GET["tx"]) && (empty ($_POST) || $_POST["auth"] || $_POST['CONTEXT'])) || preg_match ("/ty-email/", $_GET["s2member_paypal_proxy_use"]))
else if (!isset ($_GET["tx"]))
Statistics: Posted by Jason Caldwell — March 6th, 2011, 3:08 pm
Jason,
I asked hosting support for help disabling curl to go with fopen, this is what they reply back with:
"Please be aware that the curl.dll extension listed in your accounts php.ini account is specific to a Windows hosting environment. Curl is enabled on our shared servers by default and unfortunately, it cannot be disabled. We apologize for any inconvenience this has caused. Let us know if you have further questions or concerns and we will be happy to assist you. "
Am I screwed?
No, as long as your hosting provider also supports `allow_url_fopen = on`, which most do, you can simply add this file to your WP installation.
Create the /mu-plugins/ directory here:
/wp-content/mu-plugins/disable-curl.php
Inside disable-curl.php, add this code:
<?php
add_filter ("use_curl_transport", "__return_false");
?>
Statistics: Posted by webnola — March 4th, 2011, 10:30 am
Statistics: Posted by webnola — March 1st, 2011, 4:13 pm
Statistics: Posted by aaboukaram — February 25th, 2011, 7:44 am
Statistics: Posted by benchefe — February 22nd, 2011, 4:09 am
Statistics: Posted by benchefe — February 14th, 2011, 6:01 am
Statistics: Posted by benchefe — February 14th, 2011, 4:55 am
Statistics: Posted by benchefe — February 14th, 2011, 3:46 am
mweichert wrote:
One thing I've learnt is that PayPal does not send back PDT vars (such as txn_id) when the user makes a purchase by credit card (if the PayPal Account Optional route is taken) rather than by paying by credit card.
As s2member doesn't account for this, the error message "Unable to verify POST vars" is displayed, which shouldn't be in this case. PayPal still sends IPN notifications, so it's not so much an issue that PDT is unavailable at this point, but it's a significant problem that users are being warned about POST vars being unverified.
mweichert wrote:
Btw, this can be fixed by changing line 384 in includes/separates/paypal-return.php:
From:
- Code:
else if ((!isset ($_GET["tx"]) && (empty ($_POST) || $_POST["auth"])) || preg_match ("/ty-email/", $_GET["s2member_paypal_proxy_use"]))
To:
- Code:
else if ((!isset ($_GET["tx"]) && (empty ($_POST) || $_POST["auth"] || $_POST['CONTEXT'])) || preg_match ("/ty-email/", $_GET["s2member_paypal_proxy_use"]))
Thanks,
Mike
Statistics: Posted by webnola — February 11th, 2011, 11:28 am
else if ((!isset ($_GET["tx"]) && (empty ($_POST) || $_POST["auth"])) || preg_match ("/ty-email/", $_GET["s2member_paypal_proxy_use"]))
else if ((!isset ($_GET["tx"]) && (empty ($_POST) || $_POST["auth"] || $_POST['CONTEXT'])) || preg_match ("/ty-email/", $_GET["s2member_paypal_proxy_use"]))
Statistics: Posted by mweichert — February 11th, 2011, 11:03 am
Statistics: Posted by mweichert — February 11th, 2011, 10:16 am
Statistics: Posted by benchefe — February 11th, 2011, 5:19 am
Statistics: Posted by webnola — February 7th, 2011, 4:23 pm
Statistics: Posted by nhsatomom — February 7th, 2011, 4:09 pm
Statistics: Posted by webnola — February 7th, 2011, 4:03 pm
Statistics: Posted by webnola — February 7th, 2011, 3:20 pm
Statistics: Posted by nhsatomom — February 7th, 2011, 1:15 pm
Statistics: Posted by fitch — February 6th, 2011, 12:32 am
Statistics: Posted by yolle555 — February 5th, 2011, 11:47 am