Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Dec 2008
    Posts
    7
    Plugin Contributions
    0

    Default Using HostGator and Shared SSL, Secure and Unsecure Items?

    Hi All,

    believe me , I have searched every thread on this forum before wasting anyone's time posting this question. I couldn't find an answer to my specific problem, so I'm asking here.

    I am using hostgator, and hosting a site on my reseller account (www.criticalthinkersonline.net). I am using their shared SSL cert. I changed both config files to point to my shared SSL secure page (https://sonata.websitewelcome.com/~critical/) and set use SSL to true.

    Zen Cart properly switches over to the secure pages when necessary (on the shopping cart, my account pages, and when purchasing), but in FF I get the lock with a slash through it, and in IE the popup saying there is secure and non-secure items.

    You can look at the source of the secured pages, and see that there are tons of http://critical... links, but these are all generated by Zen Cart. The only thing I have changed on this template (one called Orange) are colors in the css file, and changed the header by creating a new image and overwriting the existing one. In the .css it point to the relative location of the file. However, if you click on view image (on a secured page) you see that its pointing to an http: referenced image. I tried specifying the secured link to the header image in the .css, but it still did not change the security warning.

    Why are all these links nonsecure, even on the secured pages? I assume zen cart should switch over to using secured versions when necessary, and its showing nonsecured URLS in the secured pages, and thats why I am getting this warning. In IE if I tell it NOT to show unsecured items, it basically strips everyhting but text out of the page.

    sooo....any ideas on whats going on here?

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Using HostGator and Shared SSL, Secure and Unsecure Items?

    Please post your includes/configure.php minus your password
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,690
    Plugin Contributions
    11

    Default Re: Using HostGator and Shared SSL, Secure and Unsecure Items?

    You have several links in your source that point to http://.... versus ../images/whatever.

    With the http:// links on a secure page, you'll always get a broken lock.

    check http://www.motive.co.nz/glossary/linking.php to see better ways to do it.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

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

    Default Re: Using HostGator and Shared SSL, Secure and Unsecure Items?

    Zen-Venom Get Bitten

  5. #5
    Join Date
    Dec 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Using HostGator and Shared SSL, Secure and Unsecure Items?

    Hi,

    I have read those tutorials and I have not manually editing anything that points to a http: location. Those images are all picutres of products uploaded through zen cart. Wouldn't it switch those over to use the secure URL when you hit a secure page?

    The only image I have edited is the logo, which is a relative link in the .css file for the template.

    /includes/configure.php below:

    Code:
    <?php
    /**
     * dist-configure.php
     *
     * @package Configuration Settings
     * @copyright Copyright 2003-2007 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $
     * @private
     */
    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
    define('HTTP_SERVER', 'http://criticalthinkersonline.net');
    define('HTTPS_SERVER', 'https://sonata.websitewelcome.com/~critical');
    
    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');
    
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
    
    define('DIR_WS_PHPBB', '/phpBB2/');
    
    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/home/critical/public_html/');
    
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    
    //REMOVED DB CONNECTION INFO
    
    
    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from:  none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/critical/public_html/cache/');
    
    ?>

  6. #6
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Using HostGator and Shared SSL, Secure and Unsecure Items?

    What if you add the www to:

    define('HTTP_SERVER', 'http://criticalthinkersonline.net');
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Dec 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Using HostGator and Shared SSL, Secure and Unsecure Items?

    I hope its something that simple. Would I need to add that to both configure.php files?

  8. #8
    Join Date
    Dec 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Using HostGator and Shared SSL, Secure and Unsecure Items?

    nope, didnt make a difference

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Using HostGator and Shared SSL, Secure and Unsecure Items?

    The following IMG tags are not generated by a clean Zen Cart install without addons. (Nor the table in which they appear on your site). Zen Cart always produces relative paths, in order to avoid these security issues. Instead you must have hard-coded the full URL into your template files somewhere. The FAQ article still applies, and has nothing to do with HostGator.
    Code:
    <img src="http://www.criticalthinkersonline.net/hosted/storefront.jpg">
    </center>
    <br>
    <h1><span style="color: rgb(0, 0, 102);"><center>Please proceed through the doors of Science, Math, Language Arts, Social Studies, Spanish, or Reading.</center></span></h1>
    <br>
    <table width="100%" border="0">
      <tr>
        <td><div align="center"><strong><span class="style1">Science</span></strong></div></td>
        <td><div align="center"><strong><span class="style1">Math</span></strong></div></td>
        <td><div align="center"><strong><span class="style1">Language Arts</span></strong></div></td>
      </tr>
      <tr>
        <td><div align="center"><a href="http://criticalthinkersonline.net/index.php?main_page=index&cPath=5"><img src="http://www.criticalthinkersonline.net/hosted/icons/Door.png" width="128" height="128" border="0" /></a></div></td>
        <td><div align="center"><a href="http://criticalthinkersonline.net/index.php?main_page=index&cPath=4"><img src="http://www.criticalthinkersonline.net/hosted/icons/Door.png" alt="" width="128" height="128" border="0" /></a></div></td>
        <td><div align="center"><a href="http://criticalthinkersonline.net/index.php?main_page=index&cPath=1"><img src="http://www.criticalthinkersonline.net/hosted/icons/Door.png" alt="" width="128" height="128" border="0" /></a></div></td>
      </tr>
      <tr>
        <td><div align="center"><strong><span class="style1">Social Studies</span></strong></div></td>
        <td><div align="center"><strong><span class="style1">Spanish</span></strong></div></td>
        <td><div align="center"><strong>Reading</strong></div></td>
      </tr>
      <tr>
        <td><div align="center"><a href="http://criticalthinkersonline.net/index.php?main_page=index&cPath=6"><img src="http://www.criticalthinkersonline.net/hosted/icons/Door.png" alt="" width="128" height="128" border="0" /></a></div></td>
        <td><div align="center"><a href="http://criticalthinkersonline.net/index.php?main_page=index&cPath=7"><img src="http://www.criticalthinkersonline.net/hosted/icons/Door.png" alt="" width="128" height="128" border="0" /></a></div></td>
        <td><div align="center"><a href="http://criticalthinkersonline.net/index.php?http://criticalthinkersonline.net/index.php?main_page=index&cPath=3"><img src="http://www.criticalthinkersonline.net/hosted/icons/Door.png" alt="" width="128" height="128" border="0" /></a></div></td>
    .

    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.

  10. #10
    Join Date
    Dec 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Using HostGator and Shared SSL, Secure and Unsecure Items?

    I fixed all those, problem still remains. I left those in because that table is only shown on the main index page (define_main_page.php). I changed them all to relative links now, but it didnt change anything. Nothing in define_main_page.php is displayed on any secure page.

    If i just click on "Log In" I'm taken to the login page, which shows the unsecured lock image in firefox. Viewing the source, I see many links that are http - mainly for that horizontal category nav bar.

    Code:
     <td id="navColumnOne" class="columnLeft" style="width: 150px">
    <div id="navColumnOneWrapper" style="width: 150px"><!--// bof: categories //-->
    <div class="leftBoxContainer" id="categories" style="width: 150px">
    <h3 class="leftBoxHeading" id="categoriesHeading">Categories</h3>
    <div id="categoriesContent" class="sideBoxContent">
    <a class="category-top" href="http://www.criticalthinkersonline.net/index.php?main_page=index&amp;cPath=7&amp;zenid=3cd2fc85a46934d10355449772baef5c">Bilingual Education-&gt;</a>&nbsp;(81)<br />
    <a class="category-top" href="http://www.criticalthinkersonline.net/index.php?main_page=index&amp;cPath=110&amp;zenid=3cd2fc85a46934d10355449772baef5c">Children's Books-&gt;</a>&nbsp;(74)<br />
    
    <a class="category-top" href="http://www.criticalthinkersonline.net/index.php?main_page=index&amp;cPath=54&amp;zenid=3cd2fc85a46934d10355449772baef5c">Classroom Furniture</a><br />
    <a class="category-top" href="http://www.criticalthinkersonline.net/index.php?main_page=index&amp;cPath=53&amp;zenid=3cd2fc85a46934d10355449772baef5c">Early Childhood/Preschool-&gt;</a>&nbsp;(53)<br />
    <a class="category-top" href="http://www.criticalthinkersonline.net/index.php?main_page=index&amp;cPath=1&amp;zenid=3cd2fc85a46934d10355449772baef5c">Language Arts-&gt;</a>&nbsp;(333)<br />
    <a class="category-top" href="http://www.criticalthinkersonline.net/index.php?main_page=index&amp;cPath=3&amp;zenid=3cd2fc85a46934d10355449772baef5c">Leveled Readers-&gt;</a>&nbsp;(431)<br />
    <a class="category-top" href="http://www.criticalthinkersonline.net/index.php?main_page=index&amp;cPath=52&amp;zenid=3cd2fc85a46934d10355449772baef5c">Manipulatives-&gt;</a>&nbsp;(22)<br />
    <a class="category-top" href="http://www.criticalthinkersonline.net/index.php?main_page=index&amp;cPath=4&amp;zenid=3cd2fc85a46934d10355449772baef5c">Mathematics-&gt;</a>&nbsp;(106)<br />
    
    <a class="category-top" href="http://www.criticalthinkersonline.net/index.php?main_page=index&amp;cPath=55&amp;zenid=3cd2fc85a46934d10355449772baef5c">Professional Books</a><br />
    <a class="category-top" href="http://www.criticalthinkersonline.net/index.php?main_page=index&amp;cPath=5&amp;zenid=3cd2fc85a46934d10355449772baef5c">Science-&gt;</a>&nbsp;(101)<br />
    <a class="category-top" href="http://www.criticalthinkersonline.net/index.php?main_page=index&amp;cPath=6&amp;zenid=3cd2fc85a46934d10355449772baef5c">Social Studies-&gt;</a>&nbsp;(87)<br />
    <hr id="catBoxDivider" />
    <a class="category-links" href="http://www.criticalthinkersonline.net/index.php?main_page=products_new&amp;zenid=3cd2fc85a46934d10355449772baef5c">New Products ...</a><br />
    <a class="category-links" href="http://www.criticalthinkersonline.net/index.php?main_page=products_all&amp;zenid=3cd2fc85a46934d10355449772baef5c">All Products ...</a>
    </div></div>
    <!--// eof: categories //-->
    
    <!--// bof: information //-->
    
    <div class="leftBoxContainer" id="information" style="width: 150px">
    <h3 class="leftBoxHeading" id="informationHeading">Information</h3>
    <div id="informationContent" class="sideBoxContent">
    <ul style="margin: 0; padding: 0; list-style-type: none;">
    <li><a href="http://www.criticalthinkersonline.net/index.php?main_page=shippinginfo&amp;zenid=3cd2fc85a46934d10355449772baef5c">Shipping &amp; Returns</a></li>
    <li><a href="http://www.criticalthinkersonline.net/index.php?main_page=privacy&amp;zenid=3cd2fc85a46934d10355449772baef5c">Privacy Notice</a></li>
    <li><a href="http://www.criticalthinkersonline.net/index.php?main_page=conditions&amp;zenid=3cd2fc85a46934d10355449772baef5c">Conditions of Use</a></li>
    <li><a href="http://www.criticalthinkersonline.net/index.php?main_page=contact_us&amp;zenid=3cd2fc85a46934d10355449772baef5c">Contact Us</a></li>
    <li><a href="http://www.criticalthinkersonline.net/index.php?main_page=site_map&amp;zenid=3cd2fc85a46934d10355449772baef5c">Site Map</a></li>
    
    <li><a href="http://www.criticalthinkersonline.net/index.php?main_page=gv_faq&amp;zenid=3cd2fc85a46934d10355449772baef5c">Gift Certificate FAQ</a></li>
    <li><a href="http://www.criticalthinkersonline.net/index.php?main_page=discount_coupon&amp;zenid=3cd2fc85a46934d10355449772baef5c">Discount Coupons</a></li>
    <li><a href="http://www.criticalthinkersonline.net/index.php?main_page=unsubscribe&amp;zenid=3cd2fc85a46934d10355449772baef5c">Newsletter Unsubscribe</a></li>
    </ul>
    </div></div>
    <!--// eof: information //-->
    but these links are all generated by zen cart. Even the home link and copyright link at the bottom (generated by zen cart) are to the nonsecured url.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. SSL secure and non-secure items
    By angel17846 in forum Basic Configuration
    Replies: 82
    Last Post: 20 Nov 2013, 06:57 PM
  2. Replies: 1
    Last Post: 7 May 2009, 09:06 AM
  3. Hostgator -- Shared SSL issue
    By mnboater in forum Basic Configuration
    Replies: 7
    Last Post: 10 Sep 2008, 03:26 PM
  4. Secure and unsecure items problem
    By authenticnz in forum General Questions
    Replies: 10
    Last Post: 19 Apr 2008, 10:38 PM

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