Zen Cart Logo
Forums / PayPal Express Checkout support / PayPal Error After 2 Years, PHP Warning: curl_exec() has been disabled for security r

PayPal Error After 2 Years, PHP Warning: curl_exec() has been disabled for security r

Views: 1,538

Results 1 to 5 of 5
3 Aug 2013, 5:52 PM
#1
pinksparklegirl avatar

pinksparklegirl

New Zenner

Join Date:
Aug 2011
Location:
UK
Posts:
41
Plugin Contributions:
0

PayPal Error After 2 Years, PHP Warning: curl_exec() has been disabled for security r

I've successfully used PayPal Express Checkout for nearly two years with no problems at all (ZC 1.3.9h). Today, however, it has stopped working. I'm getting error emails, but no code is provided. The email simply says "ALERT: PayPal Express Checkout Error () -"

I set the payment mod to email me the log files, but I can't pinpoint where the issue is (there were also 17 different emails, so won't paste them here unless the relevant one is requested).

My hosting company hasn't made any changes since my last order 7 days ago (as far as I'm aware, but I have emailed them with this issue, and PayPal too).

Why aren't I receiving an error code, and what is the issue here? Any help would be most appreciated!

My website is https://www.powdermonki.co.uk

4 Aug 2013, 10:09 AM
#2
pinksparklegirl avatar

pinksparklegirl

New Zenner

Join Date:
Aug 2011
Location:
UK
Posts:
41
Plugin Contributions:
0

Re: PayPal Error After 2 Years, PHP Warning: curl_exec() has been disabled for security r

I've done a little more digging in the forum for this issue and have found this error message in my shop's cache folder several times:

[04-Aug-2013 09:22:18 Europe/London] PHP Warning: curl_exec() has been disabled for security reasons in [...]/includes/modules/payment/paypal/paypal_curl.php on line 446

So, I've pinpointed the error, but how do I fix it? I'll contact my hosting providers again, but hope someone on this forum can help too!

4 Aug 2013, 10:32 AM
#3
pinksparklegirl avatar

pinksparklegirl

New Zenner

Join Date:
Aug 2011
Location:
UK
Posts:
41
Plugin Contributions:
0

Re: PayPal Error After 2 Years, PHP Warning: curl_exec() has been disabled for security r

My site is failing to Curl! Is this a hosting issue?

curltester.php Results

Array
(
[url] => "http://www.zen-cart.com/testcurl.php"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => 0
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0
[namelookup_time] => 0
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[certinfo] => Array
(
)

[redirect_url] => 

)

curltester.php?paypal=1 Results

Array
(
[url] => "https://api-3t.paypal.com/nvp"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => 0
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0
[namelookup_time] => 0
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[certinfo] => Array
(
)

[redirect_url] => 

)

EOF

4 Aug 2013, 1:45 PM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: PayPal Error After 2 Years, PHP Warning: curl_exec() has been disabled for security r

pinksparklegirl:

My site is failing to Curl! Is this a hosting issue?

Yes. specifically, a result of.....

** curl_exec() has been disabled for security reasons **

Only your host can re-enable these functions.
The 'security reasons' can be taken with a pinch of salt. More often than not it means the host doesn't have a full grasp of what they are trying to achieve.

Cheers
Rod

4 Aug 2013, 1:50 PM
#5
pinksparklegirl avatar

pinksparklegirl

New Zenner

Join Date:
Aug 2011
Location:
UK
Posts:
41
Plugin Contributions:
0

Re: PayPal Error After 2 Years, PHP Warning: curl_exec() has been disabled for security r

I'm now waiting for my hosting company to sort this out, having been "passed onto their engineers"...

Thanks for your reply, RodG.