PayPalFix for v3


First off, this article is about aMember Pro version 3. aMember Pro version 4 is not affected by this issue and may not be affected.

What is happening?

Starting from Feb 01, 2013 PayPal is going to change their servers configuration. They require IPN validation scripts to use HTTP/1.1 instead of HTTP/1.0 as they advised many years ago. This problem may cause problems with the following version of aMember Pro v3:

  • All aMember installations with version 3.0.6 and below are affected
  • Most aMember installations with version 3.0.6 and above are NOT affected. There will be a problem only if your webhosting has no curl PHP extension enabled, which is rare nowadays. To be sure, just follow the same instructions below.

To fix the issue, please follow simple instructions below.

How to fix

  1. Ftp into your web-hosting server and open /amember/plugins/payment/paypal_r/ folder.
  2. Download to your computer and make a backup copy of this file.
  3. Open with your favorite text editor (notepad, not MS Word!) and find this string:
    function paypal_validate_ipn($vars){
    below find this code block:

    $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
    $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
    $header .= "Content-Length: " . strlen ($req) . "\r\n\r\n";

    change it to (changes is outlined in blue):

    $header .= "POST /cgi-bin/webscr HTTP/1.1\r\n";
    $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
    $header .= "Host:\r\n";
    $header .= "Content-Length: " . strlen ($req) . "\r\n\r\n";
  4. Upload modified to your server to replace existing file
  5. Watch carefully for new payments and rebills

Still have questions?

If there are still any questions regarding this, please post to the special forum thread. If there is a really urgent question, you may contact us via helpdesk.

Time to upgrade

Are you still using aMember Pro v3? You may know we have released aMember Pro v4 year ago, but it is hard to belive how much it is different! Read more about aMember Pro v4. v4 is now absolutely stable, we have ported all popular plugins, and yes, we can help with upgrade.