Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In commerce_paypal.module the function commerce_paypal_process_ipn() uses the incorrect signature
// Process the HTTP request to validate the IPN.
$response = drupal_http_request($host, array(), 'POST', implode('&', $variables));
The signature being used is for D6 however in D7 the correct signature is
drupal_http_request($url, array $options = array())
The arguments 'POST' and $variables are to be passed into the $options array instead.
Thank You.
Comment | File | Size | Author |
---|---|---|---|
#1 | commerce_paypal-change_drupal_http_request_args-1738476.patch | 631 bytes | andyg5000 |
Comments
Comment #1
andyg5000Thanks for finding this. Here's a patch to fix.
Comment #2
rszrama CreditAttribution: rszrama commentedHonestly, I have no clue why this wasn't generating error messages before. Many thanks for the fix.