Log CURL errors

Project: 
Ubercart
Category: 
feature request
Priority: 
normal
Status: 
fixed

It took me several hours to figure out a vague PayPal error, which I traced backed to curl support for SSH not being enabled on my server. It would be nice if all curl errors were captured and logged. This patch captures the error where it was affected me, but there are a few other uses of curl throughout ubercart that I think should be considered as well.

AttachmentSize
logcurl.diff745 bytes

Re: Log CURL errors

Thanks a lot, ben. This wasn't even on my radar. I'll get it patched in and keep an eye out for other modules that could use it (other payment/shipping modules, I presume).

i just posted a re: curl post..

re:

AFTER ADJUSTING CART SETTINGS FOR PANES.

AFTER ENABLEING PAYPAL EXPRESS CHECKOUT:

The configuration options have been saved.
PayPal Express Checkout requires curl for PHP. Please talk to your system administrator to get this.

is their a "suggested patch" for this? use the above patch? what steps should i take to make do?

thanks.
kj

Re: i just posted a re: curl post..

I'm really not sure... it depends on your webhost and them configuring PHP to use curl. If it doesn't, there's not much you can do at the user level to make it happen.