Zen Cart Logo
Forums / PayPal Express Checkout support / V154 Still Getting Handshake Error After Upgrade

V154 Still Getting Handshake Error After Upgrade

Locked

Views: 3,729

Results 1 to 20 of 32
This thread is locked. New replies are disabled.
5 Feb 2015, 12:59 PM
#1
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

V154 Still Getting Handshake Error After Upgrade

I was told this was because I was running version 1.5.1 and the server was running php5.2

In order to upgrade my Zencart to 1.5.4 I changed the php version on the server and had to upgrade the phpBB site. I just spent the last 3 days updating everything and getting the bugs out the best I could.

I finally got the ZenCart fresh install update to work with the new database, and then reinstalled the template and added my images and made all the changes.

When I tried the PayPal EZ checkout, it shows a white page and goes here:

https://www.mysite.com/ecommerce3/ipn_main_handler.php?type=ec

This is exactly where I was days ago after all the frustration and updating. I have customers waiting to place orders and they cannot use PayPal.

Please help!

2015-01-19 06:21:51
-------------------
(live transaction) --> https://api-3t.paypal.com/nvp
Request Headers: 
Array
(
    [0] => Content-Type: text/namevalue
    [1] => X-VPS-Timeout: 90
    [2] => X-VPS-VIT-Client-Type: PHP/cURL
    [3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(R) - PayPal/NVP
    [4] => X-VPS-VIT-Integration-Version: 1.5.1
)


Request Parameters: {GetTransactionDetails} 
Array
(
    [TRANSACTIONID] => 2LF514470X045521M
    [METHOD] => GetTransactionDetails
    [USER] => payments_api1.mysite.com
    [PWD] => ****************
    [VERSION] => 61.0
    [SIGNATURE] => ****************************************************s-BB
)


Response: 
Array
(
    [] => 
    [CURL_ERRORS] => (35) error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
)

(35) error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
Array
(
    [url] => https://api-3t.paypal.com/nvp
    [content_type] => 
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.399268
    [namelookup_time] => 0.309588
    [connect_time] => 0.399312
    [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
)


GetTransactionDetails, Elapsed: 507ms -- Failed
(35) error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
Array
(
    [url] => https://api-3t.paypal.com/nvp
    [content_type] => 
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.399268
    [namelookup_time] => 0.309588
    [connect_time] => 0.399312
    [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
)
5 Feb 2015, 1:34 PM
#2
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: V154 Still Getting Handshake Error After Upgrade

[4] => X-VPS-VIT-Integration-Version: 1.5.1
your paypal module is from a 1.5.1 ZC, which means your upgrade was not done correctly

5 Feb 2015, 1:34 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: V154 Still Getting Handshake Error After Upgrade

The error you're receiving implies that you've got some carry-over files from your v1.5.1 install, specifically /includes/modules/payment/paypal/paypal_curl.php. That module was updated in ZC v1.5.4 to correct the POODLE (SSL v3) issue and the error you're receiving is because your PayPal interface is still setting CURL to use SSL v3.

This (http://www.zen-cart.com/showthread.php?216116-Still-getting-checkout-error-for-PayPal-even-after-update) thread contains information you'll to correct ***that ***issue, but I suggest that you review each-and-every file that's in your Zen Cart's v1.5.4 installation.

5 Feb 2015, 2:14 PM
#4
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: V154 Still Getting Handshake Error After Upgrade

The incorrect version was because I tried copying the original 1.5.1 files back after the updated ones gave me the same message. I only copied over the 4-5 files in the PayPal directory. I saw the post that you are referring to before posting, but I did not have the CURLOPT_SSLVERSION => 3 code anywhere in the files referenced.

5 Feb 2015, 2:35 PM
#5
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: V154 Still Getting Handshake Error After Upgrade

I'm having a similar issue as is Rick5150. It just started yesterday. In November, I commented out all CURLOPT_SSLVERSION => 3 code as directed by zencart notice about the POODLE issue. Everything has been working fine until yesterday. I rechecked all files and the CURLOPT_SSLVERSION => 3 code is still commented out. I ran a search for any CURLOPT_SSLVERSION => 3 code that I might have missed and none appears.

Short of upgrading to 1.5.4 (which I can do in a few weeks but do not have time to do so right now) is there any other fix to get the site back up and able to accept Paypal payments? That's the only form of payment used on the site.

Lunarpages Host using PHP: 5.3.27, MySQL 5.5.30-cll
PHP Safe Mode: Off

5 Feb 2015, 2:50 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: V154 Still Getting Handshake Error After Upgrade

bluelion and Rick5150, to keep all the information about this issue "together", would you please post your configurations on the existing thread (http://www.zen-cart.com/showthread.php?216116-Still-getting-checkout-error-for-PayPal-even-after-update) on this issue?

Pertinent information, per the Posting Tips. Additionally, post your webhost (just to see if there are any similarities).

5 Feb 2015, 2:57 PM
#7
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: V154 Still Getting Handshake Error After Upgrade

I am using Bluehost. I started with a brand new ZenCart installation and only imported my template and the configure.php files and I still have the same exact problem.

5 Feb 2015, 3:19 PM
#8
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: V154 Still Getting Handshake Error After Upgrade

Summarized:

It just appeared for two orders being placed on Feb. 4th. Prior to that, Paypal has been accepting payments with no issue. I have not made any changes to the site since I dealt with the POODLE issue last November.

Last November, I commented out all CURLOPT_SSLVERSION => 3 code as directed by zencart notice about the POODLE issue. Everything has been working fine until yesterday. I rechecked all files the morning and the CURLOPT_SSLVERSION => 3 code is still commented out. I ran a search for any CURLOPT_SSLVERSION => 3 code that I might have missed and none appears.

Short of upgrading to 1.5.4 (which I can do in a few weeks but do not have time to do so right now) is there any other fix to get the site back up and able to accept Paypal payments? That's the only form of payment used on the site.

I have two customers with orders who can't pay due to this error.

The error they get is:
COLOR=#333333 error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake[/COLOR]
failure

Zen Cart message: An error occurred when we tried to contact the payment
processor. Please try again, select an alternate payment method, or contact
the store owner for assistance.

I'm running v. 1.5.1, having upgraded from 1.3.x last year.
I'm using the "classic" template. No plug ins or add ons that I know of other than PayPal payment module.
Lunarpages Host using PHP: 5.3.27
MySQL 5.5.30-cll
PHP Safe Mode: Off

5 Feb 2015, 5:39 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: V154 Still Getting Handshake Error After Upgrade

lat9:

bluelion and Rick5150, to keep all the information about this issue "together", would you please post your configurations on the existing thread (http://www.zen-cart.com/showthread.php?216116-Still-getting-checkout-error-for-PayPal-even-after-update) on this issue?
I'm going to disagree with moving the discussion over there, because the issue in that other thread was that they did NOT actually correctly fix the CURLOPT_SSLVERSION setting.

5 Feb 2015, 5:43 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: V154 Still Getting Handshake Error After Upgrade

For both of you, please post the URL to your site ... I'm specifically interested in visiting the your_site.com/extras/curltester.php?paypal=1 page to see what results it gives there.
And then make the same CURLOPT_SSLVERSION change there (comment it out), and look at the output again.

I've seen reports of 1 hosting company whose server configuration is bad and it can't autonegotiate a compatible SSL version, and in that case one must be specifically set ... in which case uncommenting the CURLOPT_SSLVERSION line is necessary, and instead of setting it to 3, set it to 4 or 5 or 6, testing each choice using curltester.php ... then once a working option is found for your server, make the same change to paypal_curl.php ... and then make note that your hosting company does things weird ;)

5 Feb 2015, 5:53 PM
#11
rodg avatar

rodg

Deceased

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

Re: V154 Still Getting Handshake Error After Upgrade

Although not related, and I'm not submitting this as a bug report to be diagnosed, but merely because the timing seems relevant, but one of my sites recieved a very strange error from PayPal yesterday.

Response: 
Array
(
    [<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>500 Internal Server Error</title></head><body><h1>Internal Server Error</h1><p>The server encountered an internal error ormisconfiguration and was unable to completeyour request.</p><p>Please contact the server administrator, [email protected] and inform them of the time the error occurred,and anything you might have done that may havecaused the error.</p><p>More information about this error may be availablein the server error log.</p><p>Additionally, a 404 Not Founderror was encountered while trying to use an ErrorDocument to handle the request.</p><hr><address>Apache Server at <a href] => "mailto:[email protected]">api-3t.paypal.com</a> Port 443</address></body></html>
    [CURL_ERRORS] => 
)




GetTransactionDetails, Elapsed: 487ms -- Failed

My point being is that there appears that there have been problems with PayPal's server configurations over the last 24 hours or so, and as such, any 'recent' PayPal issues may simply be a transient nature and just bad timing.

Just something to keep in mind before anyone start trying to look for a problem that may no longer exist.

Cheers
RodG

5 Feb 2015, 6:32 PM
#12
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: V154 Still Getting Handshake Error After Upgrade

DrByte:

For both of you, please post the URL to your site ... I'm specifically interested in visiting the your_site.com/extras/curltester.php?paypal=1 page to see what results it gives there.

Sorry, I did not post on a few of the other threads with the same issue because I did not want to hijack someone else's issues in case they are not the same.

My site is https://www.filmjackets.com and the store is https://www.filmjackets.com/ecommerce3/

Don't mind the appearance of the site, because I have not bothered to fix the template until I can accept orders.

EDIT: Not sure if it is relevant, but I just received a membership payment through the Wordpress portion of the site via PayPal. It probably means nothing but I thought I would mention it just in case...

Rick

5 Feb 2015, 6:55 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: V154 Still Getting Handshake Error After Upgrade

Okay, as I hinted at in an earlier post, try this:

paypal_curl.php ... you had commented out CURLOPT_SSLVERSION => 3

Instead, uncomment it and change the 3 to either 4 or 6, and then try getting to Express Checkout. Do you still get the handshake error?

This is not an ideal approach, but it can get around some misconfigured server problems.

5 Feb 2015, 8:08 PM
#14
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: V154 Still Getting Handshake Error After Upgrade

I do not have CURLOPT_SSLVERSION => 3 in the current version of the file since I installed new.

I am looking under includes/modules/payments/paypal/paypal_curl.php

Am I in the wrong file?

5 Feb 2015, 8:14 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: V154 Still Getting Handshake Error After Upgrade

You are correct: in v1.5.4 that won't be present.

But since your server is apparently not able to auto-negotiate, I'm suggesting that you force it to a value that's current "today" (no guarantees about tomorrow).

So, you'll have to manually add it to v1.5.4

Find this line (around line 55):

CURLOPT_TIMEOUT => 45,

Add a new line below it, saying this:```
CURLOPT_SSLVERSION => 4,

5 Feb 2015, 9:16 PM
#16
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: V154 Still Getting Handshake Error After Upgrade

I still get a blank page.

6 Feb 2015, 12:37 AM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: V154 Still Getting Handshake Error After Upgrade

Rick5150:

I still get a blank page.
A blank page is typically caused by a PHP error occurring, and normally those are logged to /logs/myDebug-xxxxxxxx.log
What's the content of the latest myDebug-xxxxx.log file in that folder when you trigger that blank page?

6 Feb 2015, 2:38 AM
#18
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
284
Plugin Contributions:
1

Re: V154 Still Getting Handshake Error After Upgrade

Hi

I am also having the same paypal issues.

Am using 1.5.1 and recently commented out the "CURLOPT_SSLVERSION => 3," line.

Everything has been fine with paypal until last night.

At your advice I put the above line back in and changed it to -

CURLOPT_SSLVERSION => 4,

but it still comes back with

An error occurred when we tried to contact the payment processor. Please try again, select an alternate payment method, or contact the store owner for assistance. () - (7) couldn't connect to host

I suspect this is a paypal site issue - but can anyone confirm ?

6 Feb 2015, 3:45 AM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: V154 Still Getting Handshake Error After Upgrade

royaldave:

() - (7) couldn't connect to host
Um, no, that's NOT the same issue. Let's discuss that in the other discussion thread you've already started.

6 Feb 2015, 10:25 AM
#20
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Re: V154 Still Getting Handshake Error After Upgrade

DrByte:

A blank page is typically caused by a PHP error occurring, and normally those are logged to /logs/myDebug-xxxxxxxx.log
What's the content of the latest myDebug-xxxxx.log file in that folder when you trigger that blank page?

Ah, it is looking for flatone.php...

[06-Feb-2015 03:17:52 America/Denver] PHP Warning:  include_once(includes/modules/shipping/flatone.php): failed to open stream: No such file or directory in /home3/filmjack/public_html/ecommerce3/includes/classes/shipping.php on line 58
[06-Feb-2015 03:17:52 America/Denver] PHP Warning:  include_once(): Failed opening 'includes/modules/shipping/flatone.php' for inclusion (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home3/filmjack/public_html/ecommerce3/includes/classes/shipping.php on line 58
[06-Feb-2015 03:17:52 America/Denver] PHP Fatal error:  Class 'flatone' not found in /home3/filmjack/public_html/ecommerce3/includes/classes/shipping.php on line 59