Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Feb 2013
    Posts
    6
    Plugin Contributions
    0

    Default Timeout after setting ENABLE_SSL to true

    I am at my wits end trying to take a working Zencart non SSL and changing it to SSL. I have read a large number of posts and followed the install requirements by changing configure.php to indicate my https site. I have verified that the certificate has been installed correctly also that the ssl test does in fact show Protocol detected: SSL. When define('ENABLE_SSL', 'false'); in configure.php everything works (no ssl). When define('ENABLE_SSL', 'true'); I get a timeout error. When I run anything else but index.php on the site using https I have no problems or error.

    Zencart Version: 1.3.9g
    Server Information
    Server Host: explosionofcolors.com
    Server OS: Linux web103c10 2.6.31.12.With.Authcache+Pxeboot_Cmdline_4096 #1 SMP Mon Dec 13 21:56:57 EST 2010 i686
    Database: MySQL 5.5.25a
    HTTP Server: Apache
    PHP Version: 5.3.14 (Zend: 2.3.0)

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

    Default Re: Timeout after setting ENABLE_SSL to true

    Quote Originally Posted by sruby View Post
    When define('ENABLE_SSL', 'false'); in configure.php everything works (no ssl). When define('ENABLE_SSL', 'true'); I get a timeout error.
    The timeout really looks like a server-side issue.

    Quote Originally Posted by sruby View Post
    I have verified that the certificate has been installed correctly also that the ssl test does in fact show Protocol detected: SSL.
    Please show how you "verified" this. What steps can I take to witness the same proof?

    Quote Originally Posted by sruby View Post
    When I run anything else but index.php on the site using https I have no problems or error.
    Such as ...?
    .

    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
    Feb 2013
    Posts
    6
    Plugin Contributions
    0

    Default Re: Timeout after setting ENABLE_SSL to true

    Quote Originally Posted by DrByte View Post
    The timeout really looks like a server-side issue.

    Please show how you "verified" this. What steps can I take to witness the same proof?

    Such as ...?

    Protocol detected: SSL


    Array
    (
    [DOCUMENT_ROOT] => /services/webpages/e/x/explosionofcolors.com/secure
    [SERVER_DOMAIN] => explosionofcolors.com
    [GDFONTPATH] => /services/share/fonts
    [MvCONFIG_LIBRARY] => /services/websoftware/miva/Empresa/cgi-bin/libmivaconfig.so
    [HTTPS] => on
    [HTTP_HOST] => www.explosionofcolors.com
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_DNT] => 1
    [HTTP_COOKIE] => __utma=7748198.339067802.1352144320.1361822076.1361900608.30; __utmz=7748198.1361822076.29.7.utmcsr=localhost|utmccn=(referral)|utmcmd=referra l|utmcct=/index.php; HashCookie=+xt6R99C1DdrvYrkI3rW+3hu19NcGiGYRh+fxfs8AztDadvxgjBa85EGyhN6NisxoWyUR RKZ/8f3JM4=; zenid=jkmkp584gbajfgk8glhhlsa4s5; __utmc=7748198; __utmb=7748198.1.10.1361900608
    [HTTP_CONNECTION] => keep-alive
    [PATH] => /usr/bin:/bin:/sbin:/usr/sbin:/usr/local/bin
    [SERVER_SIGNATURE] =>
    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => www.explosionofcolors.com
    [SERVER_ADDR] => 209.235.135.13
    [SERVER_PORT] => 443
    [REMOTE_HOST] => 236.112.250.63.static.addr.dsl4u.ca
    [REMOTE_ADDR] => 63.250.112.236
    [SERVER_ADMIN] => [email protected]
    [SCRIPT_FILENAME] => /services/webpages/e/x/explosionofcolors.com/secure/ssltest.php
    [REMOTE_PORT] => 54674
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] =>
    [REQUEST_URI] => /ssltest.php
    [SCRIPT_NAME] => /ssltest.php
    [PHP_SELF] => /ssltest.php
    [REQUEST_TIME] => 1361900655
    [argv] => Array
    (
    )

    [argc] => 0
    )

  4. #4
    Join Date
    Feb 2013
    Posts
    6
    Plugin Contributions
    0

    Default Re: Timeout after setting ENABLE_SSL to true

    To verify ssl is in fact working on non Zen cart


  5. #5
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Timeout after setting ENABLE_SSL to true

    Code:
    GET "https://explosionofcolors.com/includes/templates/sophyblue/css/style_imagehover.css"
    Connect to 69.49.101.51 on port 443 ... failed
    Error 113: No route to host
    Error while fetching URL
    
    GET "https://www.explosionofcolors.com/includes/templates/sophyblue/css/style_imagehover.css"
    Connect to 209.235.135.13 on port 443 ... ok
    Note there are two different IP addresses being returned (and are probably two completely different servers). Also note "www.explosionofcolors .com" works while "explosionofcolors .com" does not work.

    Take a look at your TWO configure.php files. Do you happen to have:
    Code:
    define('HTTP_SERVER', 'http://explosionofcolors.com');
    define('HTTPS_SERVER', 'https://explosionofcolors.com');
    instead of
    Code:
    define('HTTP_SERVER', 'http://www.explosionofcolors.com');
    define('HTTPS_SERVER', 'https://www.explosionofcolors.com');
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  6. #6
    Join Date
    Feb 2013
    Posts
    6
    Plugin Contributions
    0

    Default Re: Timeout after setting ENABLE_SSL to true

    Take a look at your TWO configure.php files. Do you happen to have:

    Code:
    define('HTTP_SERVER', 'http://explosionofcolors.com');
    define('HTTPS_SERVER', 'https://explosionofcolors.com');
    instead of

    Code:
    define('HTTP_SERVER', 'http://www.explosionofcolors.com');
    define('HTTPS_SERVER', 'https://www.explosionofcolors.com');
    I have tried both, currently I have the second one

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

    Default Re: Timeout after setting ENABLE_SSL to true

    Quote Originally Posted by sruby View Post
    [DOCUMENT_ROOT] => /services/webpages/e/x/explosionofcolors.com/secure
    [SCRIPT_FILENAME] => /services/webpages/e/x/explosionofcolors.com/secure/ssltest.php
    Do your Zen Cart files reside in your "/secure" folder? If not, then you've got a server configured according to 1990 standards where servers couldn't serve both HTTP and HTTPS content from the SAME directory.

    Zen Cart uses the modern configuration where servers use the SAME directory to serve BOTH content types.

    Get your hosting company to set your server up so that your HTTP and HTTPS traffic come from the SAME folder on ONE server, and then it'll work just fine.
    .

    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.

  8. #8
    Join Date
    Feb 2013
    Posts
    6
    Plugin Contributions
    0

    Default Re: Timeout after setting ENABLE_SSL to true

    Quote Originally Posted by DrByte View Post
    Quote Originally Posted by sruby View Post
    [DOCUMENT_ROOT] => /services/webpages/e/x/explosionofcolors.com/secure
    [SCRIPT_FILENAME] => /services/webpages/e/x/explosionofcolors.com/secure/ssltest.php
    Do your Zen Cart files reside in your "/secure" folder? If not, then you've got a server configured according to 1990 standards where servers couldn't serve both HTTP and HTTPS content from the SAME directory.

    Zen Cart uses the modern configuration where servers use the SAME directory to serve BOTH content types.

    Get your hosting company to set your server up so that your HTTP and HTTPS traffic come from the SAME folder on ONE server, and then it'll work just fine.
    First I do not have a specific folder /secure.

    Second I am verifying with our hosting company if in fact HTTP and HTTPS are set to the same folder on one server.

  9. #9
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Timeout after setting ENABLE_SSL to true

    It now looks to me like the generated pages are now correctly using "www.explosionofcolors.com" instead of "explosionofcolors.com" where generated by Zen Cart and your template resources are now omitting the incorrect "http://explosionofcolors.com" - so external resources are loading correctly.

    I should note there are a few 404's still such as "/includes/templates/sophyblue/jscript/complete-com.js" but things are looking much better now. You might want to check and make sure this file was correctly uploaded if it is part of your template.

    If you use Firefox you can install FireBug (and use FireBug's "net" tab) to watch each request made by the browser when loading your page. This lets you quickly find broken resources and diagnose issues.

    It now appears your site is working (no longer appears to time out) and displaying pages. Did you need to change anything other then the two "configure.php" files and your templates?
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

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

    Default Re: Timeout after setting ENABLE_SSL to true

    /includes/templates/sophyblue/jscript/complete-com.js
    Apparently, the naming convention has not been followed where this should be

    jscript_complete-com.js
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Admin timeout: setting the length of timeout before rolling in again
    By acmaurer in forum General Questions
    Replies: 5
    Last Post: 8 Feb 2017, 02:00 AM
  2. Setting HTTPS=true problem
    By gprit in forum General Questions
    Replies: 5
    Last Post: 3 Nov 2013, 08:36 AM
  3. USPS timeout setting?
    By modernm in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 27 Jan 2010, 11:10 PM
  4. Cannot login after setting SSL to "true"
    By Aderra in forum General Questions
    Replies: 3
    Last Post: 23 Oct 2009, 12:18 AM

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