Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default installing 1.5.1: CURL problems connect() timed out!

    Hello,

    I'm encountering the following CURL problems while installing 1.5.1:

    - CURL problems detected: 28 => connect() timed out!
    - CURL requires SSL support. Please notify webmaster or hosting company. 28 => connect() timed out!

    I've checked php.info, which confirms that curl is enabled.

    - cURL support enabled
    - cURL Information 7.24.0
    - SSL Version OpenSSL/1.0.0

    I ran the curltester.php file, which result reads:

    28 connect() timed out!
    Array
    (
    [url] => "http://www.zen-cart.com/testcurl.php"
    [content_type] =>
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 20.020957
    [namelookup_time] => 0.058825
    [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] =>

    The server admins also ran their own curltest file to test and sent me the following response:

    My first 5 tests were to two different google pages, facebook, linkedin, and twitter - all of which were able to connect fine. The next 4 are all the URLs that your script is trying to test, which are all failing. If you take a look at the reasons for the errors on the bottom, you'll see things like "invalid xml" and "invalid account id and password", Accordingly, I think that the CURL testing script may just be outdated and using bad sites to test if the connection actually works. You can see that curl is loaded and it seems to work fine within this script.

    Have you tried reaching out to the script's developers about this? They would likely be able to advise you of a workaround for this, I'm sure you're not the first person to experience this issue.
    What next can I do?

    Thanks

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

    Default Re: installing 1.5.1: CURL problems connect() timed out!

    Check in your admin/tools/server version info and see if curlssl shows up
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: installing 1.5.1: CURL problems connect() timed out!

    Quote Originally Posted by kobra View Post
    Check in your admin/tools/server version info and see if curlssl shows up
    I'm actually installing a new site and therefore have not yet access to the admin. However I have created a "php.info" file and can see on the server that it's enabled (see the full CURL info below).

    Code:
    cURL support 	enabled
    cURL Information 	7.24.0
    Age 	3
    Features
    AsynchDNS 	No
    Debug 	No
    GSS-Negotiate 	No
    IDN 	Yes
    IPv6 	Yes
    Largefile 	Yes
    NTLM 	Yes
    SPNEGO 	No
    SSL 	Yes
    SSPI 	No
    krb4 	No
    libz 	Yes
    CharConv 	No
    Protocols 	dict, file, ftp, ftps, gopher, http, https, imap, imaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp
    Host 	x86_64-unknown-linux-gnu
    SSL Version 	OpenSSL/1.0.0
    ZLib Version 	1.2.3

  4. #4
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: installing 1.5.1: CURL problems connect() timed out!

    I am not sure whether that would help determine what the issue is or not, but I paste below the result of the curl test the server admins ran:

    Code:
    Testing ... http://www.google.com/intl/en/contact/ - http://www.google.com/intl/en/contact/
    ....HTTP to Google - OK
    Testing ... https://www.google.com/intl/en/contact/ - https://www.google.com/intl/en/contact/
    ....HTTPS to Google - OK
    Testing ... https://www.facebook.com/ - https://www.facebook.com/
    ....HTTPS to Facebook - OK
    Testing ... https://www.linkedin.com/ - https://www.linkedin.com/
    ....HTTPS to LinkedIn - OK
    Testing ... https://twitter.com/ - https://twitter.com/
    ....HTTPS to Twitter - OK
    Testing ... https://www.zen-cart.com/testcurl.php - https://www.zen-cart.com/testcurl.php
    ....Test 1 - Problem
    
    connect() timed out!Array
    (
        [url] => https://www.zen-cart.com/testcurl.php
        [content_type] => 
        [http_code] => 0
        [header_size] => 0
        [request_size] => 0
        [filetime] => -1
        [ssl_verify_result] => 0
        [redirect_count] => 0
        [total_time] => 10.008512
        [namelookup_time] => 0.042003
        [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] => 
    )
    
    There is a problem with cURL. You need to contact your server admin or hosting provider.Testing ... https://secure.linkpt.net:1129/LSGSXML - https://secure.linkpt.net:1129/LSGSXML
    ....Test 2 - Problem
    
    Array
    (
        [url] => https://secure.linkpt.net:1129/LSGSXML
        [content_type] => 
        [http_code] => 0
        [header_size] => 2
        [request_size] => 152
        [filetime] => -1
        [ssl_verify_result] => 0
        [redirect_count] => 0
        [total_time] => 0.339936
        [namelookup_time] => 0.038244
        [connect_time] => 0.085865
        [pretransfer_time] => 0.277834
        [size_upload] => 0
        [size_download] => 267
        [speed_download] => 785
        [speed_upload] => 0
        [download_content_length] => -1
        [upload_content_length] => 0
        [starttransfer_time] => 0.338686
        [redirect_time] => 0
        [certinfo] => Array
            (
            )
    
        [redirect_url] => 
    )
    
    <r_csp></r_csp><r_time></r_time><r_ref></r_ref><r_error>SGS-020003: Invalid XML</r_error><r_ordernum></r_ordernum><r_message></r_message><r_code></r_code><r_tdate></r_tdate><r_score></r_score><r_authresponse></r_authresponse><r_approved></r_approved><r_avs></r_avs>
    
    There is a problem with cURL. You need to contact your server admin or hosting provider.Testing ... https://secure.authorize.net/gateway/transact.dll - https://secure.authorize.net/gateway/transact.dll
    ....Test 3 - Problem
    
    Array
    (
        [url] => https://secure.authorize.net/gateway/transact.dll
        [content_type] => text/html
        [http_code] => 200
        [header_size] => 263
        [request_size] => 163
        [filetime] => -1
        [ssl_verify_result] => 0
        [redirect_count] => 0
        [total_time] => 0.275952
        [namelookup_time] => 0.036535
        [connect_time] => 0.075451
        [pretransfer_time] => 0.232803
        [size_upload] => 0
        [size_download] => 151
        [speed_download] => 547
        [speed_upload] => 0
        [download_content_length] => 151
        [upload_content_length] => 0
        [starttransfer_time] => 0.275941
        [redirect_time] => 0
        [certinfo] => Array
            (
            )
    
        [redirect_url] => 
    )
    <HTML><BODY><H3>The following errors have occurred.</H3>(13) The merchant login ID or password is invalid or the account is inactive.<BR></BODY></HTML>
    
    There is a problem with cURL. You need to contact your server admin or hosting provider.Testing ... https://api-3t.paypal.com/nvp - https://api-3t.paypal.com/nvp
    ....Test 4 - Problem
    
    Array
    (
        [url] => https://api-3t.paypal.com/nvp
        [content_type] => text/plain; charset=utf-8
        [http_code] => 200
        [header_size] => 153
        [request_size] => 143
        [filetime] => -1
        [ssl_verify_result] => 0
        [redirect_count] => 0
        [total_time] => 0.434799
        [namelookup_time] => 0.038454
        [connect_time] => 0.087631
        [pretransfer_time] => 0.258932
        [size_upload] => 0
        [size_download] => 146
        [speed_download] => 335
        [speed_upload] => 0
        [download_content_length] => 146
        [upload_content_length] => 0
        [starttransfer_time] => 0.434767
        [redirect_time] => 0
        [certinfo] => Array
            (
            )
    
        [redirect_url] => 
    )
    ACK=Failure&L_ERRORCODE0=81002&L_SHORTMESSAGE0=Unspecified%20Method&L_LONGMESSAGE0=Method%20Specified%20is%20not%20Supported&L_SEVERITYCODE0=Error
    
    There is a problem with cURL. You need to contact your server admin or hosting provider.

  5. #5
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: installing 1.5.1: CURL problems connect() timed out!

    Since cURL and cURL with SSL work fine, it would appear that it's indeed the ZenCart destinations that are failing and not cURL itself.

    Is there anyone else who's currently experiencing the same cURL issue while trying and install (fresh install, not upgrade) version 1.5.1?

  6. #6
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: installing 1.5.1: CURL problems connect() timed out!

    Quote Originally Posted by Thannaree View Post
    Since cURL and cURL with SSL work fine, it would appear that it's indeed the ZenCart destinations that are failing and not cURL itself.

    Is there anyone else who's currently experiencing the same cURL issue while trying and install (fresh install, not upgrade) version 1.5.1?
    Tried curltester.php with both secure and non-secure connection. No problem from local computer.

    There could be a firewall issue between where you're testing from and zen cart. Wouldn't be the first time that something like that has happened.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: installing 1.5.1: CURL problems connect() timed out!

    Hi mc12345678,

    I've tried from another location with the same result. I also get the following problem while testing from another website/server:

    Code:
    7 couldn't connect to host
    
    Array
    (
        [url] => "http://www.zen-cart.com/testcurl.php"
        [content_type] => 
        [http_code] => 0
        [header_size] => 0
        [request_size] => 0
        [filetime] => -1
        [ssl_verify_result] => 0
        [redirect_count] => 0
        [total_time] => 19.999818
        [namelookup_time] => 0.063557
        [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] => 
    )
    Thanks,
    Alex

 

 

Similar Threads

  1. 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
  2. v139h CURL problems detected: 28 => connect() timed out!
    By semmy in forum Installing on a Windows Server
    Replies: 3
    Last Post: 8 Mar 2012, 07:20 AM
  3. 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
  4. CURL problems detected: 28 => connect() timed out!
    By Scarlet in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 17 Feb 2010, 05:18 PM
  5. CURL problems detected: 28 => connect() timed out!
    By shaztesting in forum Installing on a Windows Server
    Replies: 14
    Last Post: 3 Oct 2009, 09:08 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