Page 1 of 14 12311 ... LastLast
Results 1 to 10 of 135
  1. #1
    Join Date
    Mar 2011
    Posts
    7
    Plugin Contributions
    0

    Default Problem with Paypal connection - Error (28) connect() timed out!

    I'm having an issue with my Paypal Express Checkout that I hope someone can give some insight as to where to resolve the issue. I am currently getting a (28) connect() timed out! error when a customer is trying to check out. Everything has been working for the last year and a half and then this issue started yesterday. No changes were made on the Zen-Cart configuration or on the Paypal side of things, so I'm at a loss as to where to look. My site is hosted on GoDaddy and I opened a support ticket yesterday, but so far their support responses have been pretty useless. Here is the error message that is captured in the log file for reference:

    2011-03-25 07:11:51
    -------------------
    (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 - WPP-NVP
    [4] => X-VPS-VIT-Integration-Version: 1.3.8a
    )


    Request Parameters: {SetExpressCheckout}
    Array
    (
    [LOCALECODE] => US
    [PAYMENTACTION] => Sale
    [ADDROVERRIDE] => 1
    [SHIPTONAME] => [Removed]
    [SHIPTOSTREET] => [Removed]
    [SHIPTOCITY] => [Removed]
    [SHIPTOZIP] => [Removed]
    [SHIPTOSTATE] => [Removed]
    [SHIPTOCOUNTRYCODE] => US
    [EMAIL] => [Removed]
    [PHONENUM] => [Removed]
    [AMT] => [Removed]
    [RETURNURL] => [Removed]
    [CANCELURL] => [Removed]
    [PAGESTYLE] => Primary
    [METHOD] => SetExpressCheckout
    [CURRENCYCODE] => USD
    [USER] => [Removed]
    [PWD] => ****************
    [VERSION] => 3.2
    [SIGNATURE] => ****************************************************53.r
    )


    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] => 0
    [namelookup_time] => 0.006837
    [connect_time] => 0
    [pretransfer_time] => 0
    [size_upload] => 0
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 0
    [download_content_length] => 0
    [upload_content_length] => 0
    [starttransfer_time] => 0
    [redirect_time] => 0
    )


    SetExpressCheckout, Elapsed: 60005ms -- 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] => 0
    [namelookup_time] => 0.006837
    [connect_time] => 0
    [pretransfer_time] => 0
    [size_upload] => 0
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 0
    [download_content_length] => 0
    [upload_content_length] => 0
    [starttransfer_time] => 0
    [redirect_time] => 0
    )


    I appreciate any assistance you gave provide.

    Thanks,

    James

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Problem with Paypal connection - Error (28) connect() timed out!

    check what the max exec time is for php

    admin > tools > version/server info
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Problem with Paypal connection - Error (28) connect() timed out!

    Hi Kobra,

    Here is the setting:

    max_execution_time
    Local Value = 60
    Master Value = 30


    Let me know if you need any other information.

    Thanks for the help.

    James

  4. #4
    Join Date
    Mar 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Problem with Paypal connection - Error (28) connect() timed out!

    Here's another error that comes up on the site when trying to get to Paypal that may help identify the issue:

    2006 MySQL server has gone away
    in:
    [select customers_email_format from zen_customers where customers_email_address= '[REMOVED]']
    2006 MySQL server has gone away
    in:
    [select count(*) as total from zen_sessions where sesskey = '[REMOVED]']

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Problem with Paypal connection - Error (28) connect() timed out!

    Basically, I do not advocate using GD as a host for any "serious" business. They make a bevy of issues for anyone that does attempt to use them

    Just search this forum for their name

    you can test 'curl" by using this tester that is in the /extras folder - - just insert your domain/cart path

    http://yourdomain.xxx/extras/curltester.php
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Mar 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Problem with Paypal connection - Error (28) connect() timed out!

    Hi Kobra,

    I ran the curltest.php from my site with the following results:

    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: [REMOVED].
    user-agent: unknown.

    Array
    (
    [url] => "http://www.zen-cart.com/testcurl.php"
    [content_type] => text/html
    [http_code] => 200
    [header_size] => 275
    [request_size] => 174
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.58755
    [namelookup_time] => 0.00961
    [connect_time] => 0.296544
    [pretransfer_time] => 0.296613
    [size_upload] => 0
    [size_download] => 2144
    [speed_download] => 3649
    [speed_upload] => 0
    [download_content_length] => 2144
    [upload_content_length] => 0
    [starttransfer_time] => 0.587433
    [redirect_time] => 0
    )

    Does this mean that the CURL communication is getting through?

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Problem with Paypal connection - Error (28) connect() timed out!

    It does not appear to be successfully uploading

    This is what I get for comparison

    Code:
    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: xx.xx.xx.xx.
    Your system identifies itself as: Zen Cart(tm) - CURL TEST
    
    Array
    (
        [url] => "http://www.zen-cart.com/testcurl.php"
        [content_type] => text/html
        [http_code] => 200
        [header_size] => 275
        [request_size] => 212
        [filetime] => -1
        [ssl_verify_result] => 0
        [redirect_count] => 0
        [total_time] => 0.123369
        [namelookup_time] => 0.002418
        [connect_time] => 0.036928
        [pretransfer_time] => 0.036937
        [size_upload] => 37
        [size_download] => 2181
        [speed_download] => 17678
        [speed_upload] => 299
        [download_content_length] => 2181
        [upload_content_length] => 0
        [starttransfer_time] => 0.123281
        [redirect_time] => 0
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Mar 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Problem with Paypal connection - Error (28) connect() timed out!

    Quote Originally Posted by kobra View Post
    It does not appear to be successfully uploading
    Kobra,

    So would this be an issue with GD blocking the CURL from sending data up to an external site, such as PayPal? I'm just trying to get to the source of the problem so I can deal with it. GD technical support so far has not been technical or supportive of the issue. I'm hoping that the more information I can throw at them, the better my chances are of getting it resolved.

    Thanks for the help thus far. It's really appreciated.

    James

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Problem with Paypal connection - Error (28) connect() timed out!

    One who knows what that test is requesting intimately will have to happen by

    As far as GD support - - always kick it up higher right off
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Problem with Paypal connection - Error (28) connect() timed out!

    Try running it as: curltester.php?paypal=1 to test connecting specifically to PayPal, and post the results.

    Granted, that's not going to do anything more than give you something to show the slow folks at GD that there's really something wrong. I wouldn't be surprised that it tells you the same thing you're already seeing in your logs: an error code of "28 connect timed out", which is all GD should need.


    Also, I note that your post said you were using "curltest.php", which tells me you're using an old version of Zen Cart with some publicly-known security vulnerabilities. It would be wise to be upgrading ASAP.

    Also, do you have "CURL Proxy Status" turned off under Admin->Configuration->My Store? If not, it NEEDS to be off. It was only ever added because GD used to configure their servers in a very bizarre non-standard way for talking to external services. Now they've removed that need. Their overall server config is still bunk, but at least the proxy is no longer needed (as of about 2 years ago)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 14 12311 ... LastLast

Similar Threads

  1. v153 (7) Failed to connect to api-3t.paypal.com port 443: Connection timed out
    By MCS_Computers in forum PayPal Express Checkout support
    Replies: 5
    Last Post: 26 Jul 2018, 06:09 AM
  2. v150 PayPal Error (28) - connection timed out - website payments down
    By aiko70 in forum PayPal Express Checkout support
    Replies: 5
    Last Post: 26 Jul 2013, 05:07 AM
  3. v139d 28 connect timed out error
    By annedig in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 10 May 2013, 05:28 PM
  4. v139h PayPal Timeouts (28) Connect timed out!
    By jgold723 in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 24 Mar 2013, 11:23 PM
  5. paypal express (7) couldn't connect to host & (28) connect() timed out
    By delia in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 9 Sep 2010, 12:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR