Zen Cart Logo
Forums / PayPal Express Checkout support / Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

Locked

Views: 8,937

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
15 Dec 2012, 10:20 AM
#1
cru22z avatar

cru22z

New Zenner

Join Date:
Dec 2012
Posts:
15
Plugin Contributions:
0

Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

Hi,
This is my first time in Zencart forum.
I recently experienced a problem with my site ( https://www.mmaapparel.com.au) using Paypal express checkout.
Anyone that uses the Paypal Express checkout gets this error:
'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. () - (28) connect() timed out!'
I am using v1.3.9f of Zencart.
The Paypal express module has all the correct API details.

I'm loosing a lot of potential sales because of this issue. If you could help please let me know.

Log files below.

2012-12-15 04:15:05

(live transaction) --> https://api-3t.paypal.com/nvp
Request Headers:
Array
(
[0] => Content-Type: text/namevalue
[1] => X-VPS-Timeout: 45
[2] => X-VPS-VIT-Client-Type: PHP/cURL
[3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(tm) - PayPal/NVP
[4] => X-VPS-VIT-Integration-Version: 1.3.9f
)

Request Parameters: {SetExpressCheckout}
Array
(
[AMT] => 24.00
[ITEMAMT] => 24.00
[L_NUMBER0] =>
[L_NAME0] => TapouT Magazine * MMA Worldwide
[L_AMT0] => 24.00
[L_QTY0] => 1
[LOCALECODE] => AU
[PAYMENTACTION] => Sale
[ALLOWNOTE] => 1
[LANDINGPAGE] => Billing
[RETURNURL] => http://mmaapparel.com.au/ipn_main_handler.php?type=ec
[CANCELURL] => http://mmaapparel.com.au/index.php?main_page=login&ec_cancel=1
[PAGESTYLE] => Primary
[METHOD] => SetExpressCheckout
[CURRENCYCODE] => AUD
[USER] => chris_api1.mmaapparel.com.au
[PWD] => ****************
[VERSION] => 60.0
[SIGNATURE] => ****************************************************oJMq
)

Response:
Array
(
[] =>
[CURL_ERRORS] => (28) connect() timed out!
)

(28) connect() timed out!
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] => 60.063898
[namelookup_time] => 0.006383
[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] => 

)

SetExpressCheckout, Elapsed: 60065ms -- Failed
(28) connect() timed out!
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] => 60.063898
[namelookup_time] => 0.006383
[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] => 

)

Dec-15-2012 04:15:05 (1355566505)
termEC-1
Killed the session vars as requested

Dec-15-2012 04:15:05 (1355566505)
termEC-2
BEFORE: $this->showPaymentPage = 0
Token Data:

Dec-15-2012 04:15:05 (1355566505)
termEC-3
AFTER: $this->showPaymentPage = 0

Dec-15-2012 04:15:05 (1355566505)
termEC-9
We are NOT logged in, so set snapshot to Shipping page, and redirect to login

Dec-15-2012 04:15:05 (1355566505)
termEC-10
Redirecting to login - Stack: login
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. () - (28) connect() timed out!
Session Data: Array
(
[securityToken] => 7c2ff51c887e296ebffb5f59c396ab87
[customers_host_address] => 124-171-17-91.dyn.iinet.net.au
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[111] => Array
(
[qty] => 1
)

            )

        [total] => 24
        [weight] => 0
        [cartID] => 50360
        [content_type] => physical
        [free_shipping_item] => 0
        [free_shipping_weight] => 0
        [free_shipping_price] => 0
    )

[navigation] => navigationHistory Object
    (
        [path] => Array
            (
                [0] => Array
                    (
                        [page] => index
                        [mode] => NONSSL
                        [get] => Array
                            (
                                [type] => ec
                            )

                        [post] => Array
                            (
                            )

                    )

            )

        [snapshot] => Array
            (
                [page] => index
                [mode] => NONSSL
                [get] => Array
                    (
                        [type] => ec
                    )

                [post] => Array
                    (
                    )

            )

    )

[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => AUD
[today_is] => 2012-12-15
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 124.171.17.91
[valid_to_checkout] => 1
[cart_errors] => 
[new_products_id_in_cart] => 
[payment] => paypalwpp
[cot_gv] => 0
[messageToStack] => Array
    (
        [0] => Array
            (
                [class] => login
                [text] => 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. ()    -  (28) connect() timed out!
                [type] => error
            )

    )

)

=================================

15 Dec 2012, 3:55 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

cru22z:

(28) connect() timed out!
That means when Zen Cart attempted to use PHP's CURL client to connect to PayPal's servers, it failed because the attempted connection timed out, ie: took longer than 45 seconds.

This is basically the same thing that happens in your own browser (IE/Firefox/etc) when you try to go to a website that's unresponsive.

It could be a result of the server being down, or the URL being wrong, or something blocking it in the server's internet configuration or firewall. It could also be something wrong with the server's DNS or resolv.cfg settings.
It's something your hosting company's server administrator must fix for you.

17 Dec 2012, 8:56 AM
#3
cru22z avatar

cru22z

New Zenner

Join Date:
Dec 2012
Posts:
15
Plugin Contributions:
0

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

Hi DrByte
I was told by the website creator and is also looks after the hosting that the problem has nothing to do with the host but the Paypal express module is no longer supported in zencart. I'm confused by this. They are now charging me to get them to fix and implement the Paypal module again which will take 3 days.
Can anyone shed a light on this please?
The site was working well with Paypal express for the last 3 years and all of sudden just stop.

17 Dec 2012, 12:46 PM
#4
rodg avatar

rodg

Deceased

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

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

cru22z:

I was told by the website creator and is also looks after the hosting that the problem has nothing to do with the host but the Paypal express module is no longer supported in zencart.

Before I can comment on this, I guess the 1st thing we need to know is what version of ZenCart are running?

Although I'm not familiar with all the details I am aware that the PayPal Express module has undergone numerous changes over the years. If you haven't kept up to date with things it is quite possible that something no longer works.

Having said that, I am more interested in knowing what has recently changed in your store, because it is quite unusual for this type of problem to occur 'out of the blue'

cru22z:

I'm confused by this. They are now charging me to get them to fix and implement the Paypal module again which will take 3 days.
Can anyone shed a light on this please?

Not really. It isn't for your host or site creator to 'fix' any zencart code. Installing, or re-installing something that has gotten broken somehow is a different matter. I am assuming that the 3 days will be how long until they can devote the resoursces to fixing the problem, rather than the amount of time it is actually going to take to fix.

cru22z:

The site was working well with Paypal express for the last 3 years and all of sudden just stop.

This a worry.... 3 years would imply that you are running Zencart V1.3.8a (or earlier). You may have been hacked. :(

Cheers
Rod

18 Dec 2012, 2:56 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

cru22z:

I was told by the website creator and is also looks after the hosting that the problem has nothing to do with the host but the Paypal express module is no longer supported in zencart.Bollocks. Either you're misunderstanding what they're telling you, or they're lying or they don't have a clue what they're talking about and thus should not be trusted to fix it for any fee.

19 Dec 2012, 5:02 AM
#6
cru22z avatar

cru22z

New Zenner

Join Date:
Dec 2012
Posts:
15
Plugin Contributions:
0

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

I am using v1.3.9f of Zencart.

NOw they are telling me that paypal maybe blocking my site..eitherway i tried to find contact on paypal mercharnt services but no number only email

19 Dec 2012, 5:16 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

It's highly unlikely that PayPal is blocking you.

You can contact them by logging a ticket at www.paypal.com/mts

You can also remove Zen Cart from the picture and just test PayPal connectivity directly by using the utility in your "extras" folder, as described here:
http://www.zen-cart.com/showthread.php?65680-PayPal-Communications-Response-Testing-Tools&p=434187#post434187
ie: your_site.com/extras/curltester.php?paypal=1
If your hosting company is willing to do more than pass the buck by blaming PayPal, they could look at that curltester script and use it to do deep diagnostics on their server to find out exactly why they're getting a timeout.

Chances are your hosting company has an outdated DNS cache and is pointing the PayPal server URL to an obsolete IP address.
Again, if they're not passing the buck then you should be able to get them to give you the IP address that their server is pointing to when it attempts to connect to the PayPal servers (the URL is in the curltester.php script), and see whether it matches the IP addresses PayPal has said it should resolve to: https://ppmts.custhelp.com/app/answers/detail/a_id/92 If the server isn't resolving the name to the correct IP address, then the server is misconfigured. This is basic server stuff and the hosting company's server administrator should already be an expert in those things.

19 Dec 2012, 6:02 AM
#8
cru22z avatar

cru22z

New Zenner

Join Date:
Dec 2012
Posts:
15
Plugin Contributions:
0

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

Hi
I ran curltester and got this within my site.
PAGE NOT FOUND
Custom 404 Error Page with Site Map Sample Text ...

Put your custom "page not found" message here. You can change this text in the Define Pages Editor located under Tools in the Admin.

For ipncheck.php I got
IPNCHECK.PHP - Version 1.0

IPN TESTING - POSTING to PayPal via: ssl://www.paypal.com:443

IPN TESTING - Confirmation/Validation response: RESPONSE RECEIVED - Communications OKAY

Script finished.

19 Dec 2012, 9:10 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

cru22z:

I ran curltester and got this within my site.
PAGE NOT FOUND
Custom 404 Error Page with Site Map Sample Text ...

Put your custom "page not found" message here. You can change this text in the Define Pages Editor located under Tools in the Admin.Sounds like your curltester.php script file is missing, or you mistyped the name.
cru22z:

For ipncheck.php I got
IPNCHECK.PHP - Version 1.0
Looks like you have an old version. It should say Version 1.3.9 since you said you're using v1.3.9f of Zen Cart.

19 Dec 2012, 9:52 AM
#10
cru22z avatar

cru22z

New Zenner

Join Date:
Dec 2012
Posts:
15
Plugin Contributions:
0

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

Where can I find the latest IPN and curl tester file?

19 Dec 2012, 10:25 AM
#11
drbyte avatar

drbyte

Sensei

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

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

cru22z:

Where can I find the latest IPN and curl tester file?
In the latest Zen Cart release. https://www.zen-cart.com/getit

19 Dec 2012, 10:43 AM
#12
cru22z avatar

cru22z

New Zenner

Join Date:
Dec 2012
Posts:
15
Plugin Contributions:
0

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

Heres the Curl result

CURL Test Page

This page is intended for testing CURL behaviour. You should be accessing this page via CURLTESTER.PHP running on YOUR server.

You submitted the following fields and data:

Array
(
[field1] => This is a test
[statuskey] => ready
)
Data validation

Good
Other Info

Your server IP address is: 173.192.222.122.
user-agent: unknown.
Copyright © 2003 - 2012 Zen Ventures, LLC - Powered by Zen Cart™
Array
(
[url] => "http://www.zen-cart.com/testcurl.php"
[content_type] => text/html
[http_code] => 200
[header_size] => 179
[request_size] => 174
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.11724
[namelookup_time] => 0.044356
[connect_time] => 0.079247
[pretransfer_time] => 0.079291
[size_upload] => 37
[size_download] => 2146
[speed_download] => 18304
[speed_upload] => 315
[download_content_length] => 2146
[upload_content_length] => 37
[starttransfer_time] => 0.117212
[redirect_time] => 0
[certinfo] => Array
(
)

[redirect_url] => 

)

new IPN

IPNCHECK.PHP - Version 1.3.9

IPN TESTING - Response Received via CURL -- COMMUNICATIONS OKAY

IPN TESTING - Confirmation/Validation response with fsockopen(): FSOCKOPEN() RESPONSE RECEIVED - Communications OKAY

Default method likely to be used for communications is: CURL, with the fallback method being FSOCKOPEN if possible.

Script finished.

19 Dec 2012, 10:47 AM
#13
drbyte avatar

drbyte

Sensei

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

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

Now do the curltester test again with the ?paypal=1 parameter added, as I explained earlier.

19 Dec 2012, 10:53 AM
#14
cru22z avatar

cru22z

New Zenner

Join Date:
Dec 2012
Posts:
15
Plugin Contributions:
0

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

Got this

28 connect() timed out!
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] => 15.017812
[namelookup_time] => 0.004985
[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

19 Dec 2012, 10:54 AM
#15
cru22z avatar

cru22z

New Zenner

Join Date:
Dec 2012
Posts:
15
Plugin Contributions:
0

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

We are in the verge of war with our unhelpful host company. Do u think we can get this fixed by just moving host in USA or Australia

19 Dec 2012, 1:09 PM
#16
rodg avatar

rodg

Deceased

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

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

cru22z:

We are in the verge of war with our unhelpful host company. Do u think we can get this fixed by just moving host in USA or Australia

Your location isn't the problem, but in changing locations you'll probably also be changing providers, and that in itself will probably fix the issue.

At the moment, it seems to me the problem is definitely with your host, and it is related to the DNS resolver and/or possibly some sort of filtering (proxy cache, mod_security, firewall or networking issue).

PayPal themselves are unlikely to block clients (at least not for an extended period), because they know how futile it is, and how damaging a false/incorrect blocking can be. (new merchants, take note).

If you can't get you host to resolve this problem, and it IS their problem, then find another host.

Cheers
Rod

19 Dec 2012, 8:07 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

cru22z:

28 connect() timed out!
[total_time] => 15.017812
[namelookup_time] => 0.004985
[connect_time] => 0
The fact that the namelookup_time isn't 0 means that the server is successfully doing a nameserver query and getting an address to connect to.
But it seems pretty clear that it's getting the wrong address, since it's not subsequently able to connect.

Again, pretty obviously a server/hosting issue.

19 Dec 2012, 8:51 PM
#18
cru22z avatar

cru22z

New Zenner

Join Date:
Dec 2012
Posts:
15
Plugin Contributions:
0

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

It's looking very likely we move hosting then. I really hope that fixes the issue.

20 Dec 2012, 7:01 AM
#19
cru22z avatar

cru22z

New Zenner

Join Date:
Dec 2012
Posts:
15
Plugin Contributions:
0

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

I'm giving the host one last crack before we move host.
I dunno what they are doing but the new error looks like this when using Paypal express

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET http://mmaapparel.com.au/ipn_main_handler.php?type=ec.

Reason: Error reading from remote server

Apache Server at mmaapparel.com.au Port 3128

20 Dec 2012, 7:01 AM
#20
rodg avatar

rodg

Deceased

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

Re: Help please. Urgent. My site paypal express stopped working () - (28) connect() timed

DrByte:

The fact that the namelookup_time isn't 0 means that the server is successfully doing a nameserver query and getting an address to connect to.
But it seems pretty clear that it's getting the wrong address, since it's not subsequently able to connect..

Sorry Doc, but I don't agree with this assumption of a wrong address. It could well be getting the right address(es) but still not be able to connect for one of the other reasons mentioned. Not saying you are wrong of course, just that until we know the IP address resolved we can't say for sure if its correct or not.

DrByte:

Again, pretty obviously a server/hosting issue.

Definitely no dispute about this.

Cheers
Rod