Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2013
    Posts
    4
    Plugin Contributions
    0

    Default (28) connect() timed out! Error Occurring (NOT hosted w/ GoDaddy)

    Hi all,

    I have a zencart store that has been working beautifully for about a year. Last night I uploaded a new product (As I have done 100+ times this year) and apparently something came off the tracks. I have been getting emails saying the following:

    (28) connect() timed out!

    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.

    Problem occurred while customer was attempting checkout with PayPal
    Express Checkout.

    I have tried reading through all of the forums and have come across the apparent dislike for GoDaddy but that does not seem to be the problem for me as I am hosted with iPage and have had nothing but good experiences with them. In fact, when I asked them about this problem they got back to me with the following support ticket:

    I was able to duplicate your issue. However, there's no server end issues since a test script at http://foundationbriefs.com/combinedstore/test.php shows that allow_url_fopen is enabled for your account and a test curl script is working fine at http://foundationbriefs.com/combinedstore/test_curl.php . Also , error logs are not refreshing with any errors.

    Therefore, this is an application/scripting issue for which we don't provide any support. You need to contact your application vendor/developer for further assistance on the issue.

    I have no idea what could have gone wrong and am just looking for some help here. It seems that the store is just not communicating with PayPal at all. As such, I have tried re-installing my PayPal express checkout module, talking to PayPal about the problem etc. and nothing has gotten me even remotely close to a solution.

    Any and all advice is greatly appreciated!!!!!

    Regards,

    James Mackey

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

    Default Re: (28) connect() timed out! Error Occurring (NOT hosted w/ GoDaddy)

    Please post your PayPal debug logs for a transaction where that error occurs: http://www.zen-cart.com/showthread.p...Logging-PayPal

    I'm guessing you've got an obsolete/deprecated CURL Proxy setting enabled which is attempting to connect to the wrong server.

    What result do you get when testing CURL using the curl_tester script supplied with Zen Cart and giving it the ?paypal=1 parameter? http://www.zen-cart.com/showthread.p...-Testing-Tools
    .

    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.

  3. #3
    Join Date
    Mar 2013
    Posts
    4
    Plugin Contributions
    0

    Default Re: (28) connect() timed out! Error Occurring (NOT hosted w/ GoDaddy)

    Thanks for looking into this DrByte.

    Here is a log for the incident per your first instruction.
    Code:
    2013-03-17 05:26:20
    -------------------
    (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.0
    )
    
    
    Request Parameters: {SetExpressCheckout} 
    Array
    (
        [AMT] => 25.00
        [ITEMAMT] => 25.00
        [L_NAME0] => March 2013 Public Forum Brief [70] Standard Brief Downgrade: Do not downgrade me! I want The Advanced Brief.
        [L_QTY0] => 1
        [L_AMT0] => 25.00
        [CURRENCYCODE] => USD
        [LOCALECODE] => US
        [GIFTMESSAGEENABLE] => 0
        [GIFTRECEIPTEENABLE] => 0
        [GIFTWRAPENABLE] => 0
        [GIFTWRAPNAME] => 
        [GIFTWRAPAMOUNT] => 0
        [BUYEREMAILOPTINENABLE] => 0
        [CUSTOMERSERVICENUMBER] => 
        [BRANDNAME] => Foundation Briefs 
        [ CDE Store] => 
        [PAYMENTACTION] => Sale
        [ALLOWNOTE] => 1
        [LANDINGPAGE] => Billing
        [NOSHIPPING] => 0
        [RETURNURL] => http://foundationbriefs.com/combinedstore/ipn_main_handler.php?type=ec
        [CANCELURL] => http://foundationbriefs.com/combinedstore/index.php?main_page=shopping_cart&ec_cancel=1
        [PAGESTYLE] => Primary
        [METHOD] => SetExpressCheckout
        [USER] => ***********.com
        [PWD] => ****************
        [VERSION] => 61.0
        [SIGNATURE] => ****************************************************oSRo
    )
    
    
    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.060142
        [namelookup_time] => 0.006295
        [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
    )
    As for the second thing you requested, I continuously get a 404 error for this. Not sure if I am perhaps doing something incorrectly or if I need to publish/make available that file (I am fairly new to all of this, especially FTP stuff so sorry if that seems ignorant). What I can tell you is that my store is http://foundationbriefs.com/combinedstore/ meaning the ipn check should be under http://foundationbriefs.com/combined...s/ipncheck.php and indeed it does appear there when I go in via my FTP...I just cannot get it to open in my browser. So sorry! Any tips/suggestions?

    Thanks again for your help!

    Best,

    James Mackey

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

    Default Re: (28) connect() timed out! Error Occurring (NOT hosted w/ GoDaddy)

    Quote Originally Posted by jrmackey33 View Post
    (28) connect() timed out!
    [url] => https://api-3t.paypal.com/nvp
    Okay, it's not a proxy thing.
    It's obviously got the right URL as well.
    So the connect-timed-out issue is likely a deep-rooted bug in your hosting company's servers' routing tables. Probably an obsolete/expired nameserver cache, whereby instead of finding PayPal's current server-farm your server still wants to look to the old IP addresses that PayPal used to use in their previous datacenter.
    If your host knows anything they'll be able to ping and tracert to confirm it and fix it in about 30 seconds by getting the server's ns core updated.
    Or, maybe their firewall is blocking it specifically. Again, only your host can fix it.
    Or maybe they're blocking all outbound CURL traffic. If this is the case, you need a better host.

    Basically the problem falls back on your hosting company to fix the issue. If they need to work with PayPal to fix it, then that's what they need to do ... they won't like that idea, but only your host can fix it since only they have unrestricted access to their servers.

    Quote Originally Posted by jrmackey33 View Post
    As for the second thing you requested, I continuously get a 404 error for this. Not sure if I am perhaps doing something incorrectly or if I need to publish/make available that file (I am fairly new to all of this, especially FTP stuff so sorry if that seems ignorant). What I can tell you is that my store is http://foundationbriefs.com/combinedstore/ meaning the ipn check should be under http://foundationbriefs.com/combined...s/ipncheck.php and indeed it does appear there when I go in via my FTP...I just cannot get it to open in my browser.
    Maybe the .htaccess file in that folder is triggering some security rule that your hosting company wants to deny you access with. You could try renaming it to htaccess_OFF temporarily.

    I really don't care about the ipncheck.php output. More important is the output from /extras/curltester.php?paypal=1 ... this is the tool that will give the same output as your paypal log file did, but without having to do any test transactions. Thus it is an ideal tool for your host to use as a tool to confirm whether the problem is resolved, since they can test it themselves in 5 seconds. Further, they can peek at the very simple PHP code and see that there's nothing ultra special going on, so they've no need to pass the buck and point the finger back to Zen Cart or to PayPal.
    .

    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.

  5. #5
    Join Date
    Mar 2013
    Posts
    4
    Plugin Contributions
    0

    Default Re: (28) connect() timed out! Error Occurring (NOT hosted w/ GoDaddy)

    I have filed yet another support ticket with them based on your answer, thank you. Hopefully they can resolve it using your higher understanding of the issue.

    One thing, I would like to better understand your last comment about using /extras/curltester.php?paypal=1 to allow the host company to test to see if the issue is working...could you please explain this process to me step by step as well as the good result and the bad result? I would just like to be able to use that diagnostic with my host and as of now I do not understand it at all. Also, I tried renaming the htaccess to htaccess_OFF.htaccess and still got a 404 error. Is this also something I should bring up with my hosting company or do you have any other ideas?

    Thank you so very much for your help. I cannot express how much I appreciate it!

    Best,

    James Mackey

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

    Default Re: (28) connect() timed out! Error Occurring (NOT hosted w/ GoDaddy)

    Give them this URL:
    http://foundationbriefs.com/combined...r.php?paypal=1

    1. Get them to help you fix the 404-not-found error that it's triggering.
    2. Then they can use that URL to see (basically) the same output as the debug log you posted ... including the (28) connect timed out error message.
    .

    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.

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

    Default Re: (28) connect() timed out! Error Occurring (NOT hosted w/ GoDaddy)

    Thanks! I will do so and let you know what they say!

    Best,

    James Mackey

  8. #8
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,549
    Plugin Contributions
    28

    Default Re: (28) connect() timed out! Error Occurring (NOT hosted w/ GoDaddy)

    I don't want to cross-post the same answer in this thread, but please see my post (#23) here:
    http://www.zen-cart.com/showthread.p...med-out!/page3

 

 

Similar Threads

  1. Problem with Paypal connection - Error (28) connect() timed out!
    By Wolfe Farms in forum PayPal Express Checkout support
    Replies: 134
    Last Post: 26 Jul 2018, 06:20 AM
  2. 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
  3. v151 (28) connect() timed out / https://api-3t.paypal.com/nvp is not responding
    By FrankStephen in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 5 Apr 2013, 04:27 PM
  4. (56) Received HTTP code 403 from proxy after CONNECT (hosted on GoDaddy)
    By shanehunt40 in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 9 Aug 2011, 10:38 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