Post by chilliboom » Thu Jul 18, 2013 6:58 pm

Hi all,

I've been having an ongoing problem using Paypal Payments Pro hosted solution. Payment details are entered on the site but when the button is pressed to submit the payment the little spinner appears briefly and then nothing appears to happen.

There is an error in the error.txt file that reads as follows:

Code: Select all

2013-07-17 8:47:00 - PHP Warning:  curl_error(): 130 is not a valid cURL handle resource in /home/revotrans/www/revolutiontransfers.co.uk/catalog/controller/payment/pp_pro_uk.php on line 144
2013-07-17 8:47:00 - PHP Warning:  curl_errno(): 130 is not a valid cURL handle resource in /home/revotrans/www/revolutiontransfers.co.uk/catalog/controller/payment/pp_pro_uk.php on line 144
2013-07-17 8:47:00 - DoDirectPayment failed: ()
2013-07-17 8:47:00 - PHP Notice:  Undefined index:  RESULT in /home/revotrans/www/revolutiontransfers.co.uk/catalog/controller/payment/pp_pro_uk.php on line 153
2013-07-17 8:47:00 - PHP Notice:  Undefined index:  RESULT in /home/revotrans/www/revolutiontransfers.co.uk/catalog/controller/payment/pp_pro_uk.php on line 174
Does anyone know what the problem is here? I've seen people post with similar issues but no solutions that have been of any help.

cURL is installed and working fine and all my Paypal details have been entered correctly. Currently not had a reply from Paypal customer support...

Any ideas?
Last edited by chilliboom on Sat Aug 10, 2013 12:06 am, edited 1 time in total.

Newbie

Posts

Joined
Fri Jan 06, 2012 8:08 pm

Post by Qphoria » Thu Jul 18, 2013 11:29 pm

curl issues are solely on your web hosts server side... not with paypal or any software.
In this case it looks like the curl init returned 130 as the handle, but then that handle was no longer persisted by the time the exec was called. That seems like the server isn't persisting the curl connection for whatever reason

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by ssmaynv » Sat Jul 20, 2013 9:04 am

Have you made any changes to the payment files or are you using stock?

Newbie

Posts

Joined
Wed Jan 02, 2013 4:02 am

Post by chilliboom » Tue Jul 23, 2013 4:17 pm

ssmaynv wrote:Have you made any changes to the payment files or are you using stock?
Hi ssmaynv,

I'm just using the standard files with version 1.5.4

I am using vqmod but it is not changing any of the payment files.

In addition, my web host has informed me that cURL is working fine so there should be no problems there.

Paypal are remaining silent on the matter...

Newbie

Posts

Joined
Fri Jan 06, 2012 8:08 pm

Post by chilliboom » Tue Jul 23, 2013 6:30 pm

In addition, I have a more recent shop set up which is version 1.5.5.1

I've tried putting PayPal Payments Pro on that one too and get pretty much exactly the same problem and error:

Code: Select all

2013-07-23 10:22:51 - PHP Warning:  curl_error(): 128 is not a valid cURL handle resource in /home/labelsondemand/www/labelsondemand.co.uk/catalog/controller/payment/pp_pro_uk.php on line 144
2013-07-23 10:22:52 - PHP Warning:  curl_errno(): 128 is not a valid cURL handle resource in /home/labelsondemand/www/labelsondemand.co.uk/catalog/controller/payment/pp_pro_uk.php on line 144
2013-07-23 10:22:52 - DoDirectPayment failed: ()
2013-07-23 10:22:52 - PHP Notice:  Undefined index:  RESULT in /home/labelsondemand/www/labelsondemand.co.uk/catalog/controller/payment/pp_pro_uk.php on line 153
2013-07-23 10:22:52 - PHP Notice:  Undefined index:  RESULT in /home/labelsondemand/www/labelsondemand.co.uk/catalog/controller/payment/pp_pro_uk.php on line 174

Newbie

Posts

Joined
Fri Jan 06, 2012 8:08 pm

Post by chilliboom » Thu Jul 25, 2013 10:59 pm

Hi guys,

The administrators of the server hosting my web site have assured me that there is nothing wrong with cURL on the server. They've also said they can't help further as is it not their job to investigate any faulty scripts I might be running - which is fair enough I suppose.

Problem is still there tho' I tried it again and this time got the developer tools in Safari to record the network requests.

Below is what it said were the response headers:

Response Headers

Code: Select all

Name : Value

Date	:	Mon, 22 Jul 2013 15:36:43 GMT
Content-Encoding	:	gzip
X-Powered-By	:	PHP/5.2.17
Connection	:	Keep-Alive
Content-Length	:	279
Pragma	:	no-cache
Server	:	Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSS…
Vary	:	Accept-Encoding
Content-Type	:	text/html; charset=utf-8
Cache-Control	:	no-store, no-cache, must-revalidate, post-ch…
Keep-Alive	:	timeout=5, max=100
Expires	:	Thu, 19 Nov 1981 08:52:00 GMT
Does this help at all?

J

Newbie

Posts

Joined
Fri Jan 06, 2012 8:08 pm

Post by chilliboom » Sat Aug 10, 2013 12:05 am

Hi guys,

We've managed to solve this one with a lot of help from an excellent Paypal support technician.

Seems to be that the problem was not with cURL or Paypal or Opencart as such, rather an error related to the 'handshake' between the SSL and PayPal server.

The trick was (in this case) to set another cURL parameter as follows:

Code: Select all

curl_setopt($curl, CURLOPT_SSLVERSION, 3);
If using vqmod it goes just before the line

Code: Select all

$response = curl_exec($curl);
With that line added, everything works fine.

It appears that the original cURL error that I quoted from the error.txt file was a symptom of the problem rather than shedding light on the cause.
The thing is though, when we tried to send a payment from out server using a different script, Paypal returned an error that clearly showed that the issue was with the SSL handshake. It doesn't appear though, (or I just haven't found it) that this error is picked up and logged by OpenCart hence giving the impression that the problem was with cURL.

Which it was, kind of, but not really...

Anyway, hope this solution might be of some use to someone who might be having similar issues...

Newbie

Posts

Joined
Fri Jan 06, 2012 8:08 pm

Post by sruzin » Wed Aug 21, 2013 7:03 am

My site is showing the same errors.

2013-08-20 22:59:25 - PHP Warning: curl_errno(): 63 is not a valid cURL handle resource in /home/sruzin/public_html/st/catalog/controller/payment/pp_pro.php on line 168
2013-08-20 22:59:25 - DoDirectPayment failed: ()
2013-08-20 22:59:25 - PHP Notice: Undefined index: ACK in /home/sruzin/public_html/st/catalog/controller/payment/pp_pro.php on line 177
2013-08-20 22:59:25 - PHP Notice: Undefined index: ACK in /home/sruzin/public_html/st/catalog/controller/payment/pp_pro.php on line 177
2013-08-20 22:59:25 - PHP Notice: Undefined index: L_LONGMESSAGE0 in /home/sruzin/public_html/st/catalog/controller/payment/pp_pro.php on line 198

And your fix did not solve the problem. If you have any other suggestions I would appreciate it. I am running OC 1.5.6.

Newbie

Posts

Joined
Wed Aug 21, 2013 6:59 am

Post by Cue4cheap » Fri Sep 20, 2013 11:10 am

Sorry for being a bit dense but in what file and around what line do you add that code?

Thank you,
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am
Who is online

Users browsing this forum: No registered users and 6 guests