It may be helpful to others to note somewhere that PayPal WPP requires curl to be installed and enabled. I was getting a WSOD straight after the order review page and then noticed 'PHP Fatal error: Call to undefined function curl_init()' in the apache logs.

Comments

bradhawkins’s picture

I have cURL installed but keep getting this error: cURL error: Couldn't resolve host 'https'

I'm assuming that its because I don't have SSL setup? If so, is there anyway around this (temporarily)?

bradhawkins’s picture

I figured out my problem, there's an extra '/' in commerce_paypal_wpp.module on line 419:

rszrama’s picture

Title: PayPal WPP requires cURL » Add a PayPal WPP requirement for cURL
Component: Documentation » PayPal WPP
Status: Active » Fixed

I have no clue what extra slash the above comment refers to, but I just added a hook_requirements() in an install file for the WPP module to ensure cURL is installed.

Commit: http://drupalcode.org/project/commerce_paypal.git/commitdiff/3c1fa1b

bradhawkins’s picture

I think I must have been working off of an outdated dev version at that time because line 419 doesn't correspond at all to my comment.

I was reffering to this section: (line 439)

function commerce_paypal_wpp_server_url($server) {
  switch ($server) {
    case 'sandbox':
      return 'https://api-3t.sandbox.paypal.com/nvp';
    case 'live':
      return 'https://api-3t.paypal.com/nvp';
  }
}

One of those addresses was "https:///" with an extra "/".

Who knows, maybe I just imaged it all, or clumsily created the error myself. Either way, its not an issue any longer :)

rszrama’s picture

hehe Ok, I was thinking maybe we used to have an incorrect trailing slash or something on one of the URLs. Glad it's no longer an issue. : )

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.