Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

    Default https warnings-Do you want to view the only the webpage content delivered secure...

    Upgraded from 1.38 to 1.5 and everything is working great except these darn HTTPS warnings. I am getting them in Chrome and IE and I assume all major browsers. After upgrading I decided to try the black zen template and I think this may be what is causing all of these issues. I have gone through all the files in the template structure and did a lot of NONSSL to SSL var changes and made sure HTTPS option was set to true (think that was in configure.php). Anyway I kept viewing source on the store homepage and got most of the http links finally changed to https except the following sections are killin me and I wonder if anyone with more ZenCart experience than me could help me locate and resolve all of these http links and get them to be https. Any help would be greatly appreciated.

    src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script

    <div id="slider">
    <div id="featured1" >
    <ul class="ui-tabs-nav">
    <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1">
    <a href="#fragment-1">
    <img src="http://www...
    </a></li>

    <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-2">
    <a href="#fragment-2">
    <img src="http://www...
    </a></li>

    <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-3">
    <a href="#fragment-3">
    <img src="http://www...
    </a></li>

    <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-4">
    <a href="#fragment-4">
    <img src="http://www...
    </a></li>

    </ul>

    <!-- First Content -->
    <div id="fragment-1" class="ui-tabs-panel" style="">
    <img src="http://www...
    <div class="info" >
    <h2><a href="http://www...


    <!-- Second Content -->
    <div id="fragment-2" class="ui-tabs-panel ui-tabs-hide" style="">
    <img src="http://www..../storedemo/images/CFSilverJarHalfSize.jpg" height="280px" alt="" />
    <div class="info" >
    <h2><a href="http://www..../storedemo/index.php?main_page=product_info&amp;cPath=0&amp;products_id=1">...</h2>
    <h3>$49.95</h3>
    <p>... is scientifically engineered to combat the physiological factors that cause athletes to gas out. Perform at a high level for longer period.... <u>[read more]</u></a></p>
    </div>
    </div>

    <!-- Third Content -->
    <div id="fragment-3" class="ui-tabs-panel ui-tabs-hide" style="">
    <img src="http://www..../storedemo/images/" height="280px" alt="" />
    <div class="info" >
    <h2><a href="http://www..../storedemo/index.php?main_page=product_info&amp;cPath=0&amp;products_id=4">Test Product - DO NOT BUY!!!</h2>
    <h3>$0.50</h3>
    <p>This is a test product for ... administrators only..... <u>[read more]</u></a></p>
    </div>
    </div>

    <!-- Fourth Content -->
    <div id="fragment-4" class="ui-tabs-panel ui-tabs-hide" style="">
    <img src="http://www..../storedemo/images/CFSilverJarHalfSize.jpg" height="280px" alt="" />
    <div class="info" >
    <h2><a href="http://www....



    <!-- bof: whats_new -->
    <div class="centerBoxWrapper" id="whatsNew">
    <h2 class="centerBoxHeading">New Products For April</h2>
    <div class="centerBoxContentsNew centeredContent back" style="width:50%;"><a href="http://www..../storedemo/index.php?main_page=product_info&amp;cPath=0&amp;products_id=1"><img src="images/CFSilverJarHalfSize.jpg" alt="" title=" " width="79" height="80" /></a><br /><a href="http://www..../storedemo/index.php?main_page=product_info&amp;cPath=0&amp;products_id=1"></a><br />$49.95</div>
    <div class="centerBoxContentsNew centeredContent back" style="width:50%;"><a href="http://www..../storedemo/index.php?main_page=product_info&amp;cPath=0&amp;products_id=4"><img src="images/no_picture.gif" alt="Test Product - DO NOT BUY!!!" title=" Test Product - DO NOT BUY!!! " width="100" height="80" /></a><br /><a href="http://www..../storedemo/index.php?main_page=product_info&amp;cPath=0&amp;products_id=4">Test Product - DO NOT BUY!!!</a><br />$0.50</div>
    <br class="clearBoth" />

    Tried to Bold some of the http references in each section to make it clearer. Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    60,593
    Blog Entries
    4
    Plugin Contributions
    145

    Default Re: https warnings-Do you want to view the only the webpage content delivered secure.

    You don't need to worry about the <a href="http:// ... references. Those won't be causing your problems.

    The src="http://..." scenarios are the ones to pay attention to. ref: http://tutorials.zen-cart.com/index.php?article=150

    In the case of your img src= references, those are probably your custom template's navigation buttons or slider addon etc, and should NOT have been coded with the "http://your_domain.com" in them (those are "absolute" URLs). Instead, they should be entered as "relative" paths, such as /path_to/image.jpg etc. That will get rid of those warnings.

    As for your jquery reference, you'll probably want to make that an https link, or write custom code to call it over http or https based on what mode the page is in, $request_type == SSL or NONSSL
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: https warnings-Do you want to view the only the webpage content delivered secure.

    Dr. B whatever they are paying you my friend it isn't enough! Kind of half joking because I have a feeling you are volunteering your time which is awesome and much appreciated. Thanks again.

    Easiest fix ever. I just winged it after reading your post and brought everything into DreamWeaver and did a Find for http:// and Replace (https://) on the /includes/templates/black-zen dir. I think I should spend some time and shore up the absolute path references but for now its working. Too bad the template author hard coded the absolute paths but I like the template and am grateful for them providing it free of charge, etc. Tell ya what if you ever do any consulting I'd give you my business any day. I can't always go into tech mode and struggle with the issues like you helped me with today and would gladly pay you for your help. Hope you stick around on the board - hard to find clear and competent contributors like you on most forums. Thanks again and all the best DrByte!

  4. #4
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,958
    Plugin Contributions
    3

    Default Re: https warnings-Do you want to view the only the webpage content delivered secure.

    Quote Originally Posted by cardioforce View Post

    Easiest fix ever. I just winged it after reading your post and brought everything into DreamWeaver and did a Find for http:// and Replace (https://) on the /includes/templates/black-zen dir.
    Welll, easy maybe, but not really the right way to do this. You will now have https calls on non SSL pages too, and this will slow the site down... Slow sites can be penalised by Google and the other SE's

    Quote Originally Posted by cardioforce View Post
    Too bad the template author hard coded the absolute paths but I like the template and am grateful for them providing it free of charge, etc.
    Clear evidence of a template designer that should rather take up knitting as a hobby... Extensive hard coding is a sign that they don't really have a clue as to how ZC works... Extrapolate that and one starts to think of other bad code they may have forced into the system...
    Our latest project is Pet Tags.

 

 

Similar Threads

  1. Replies: 9
    Last Post: 12 Apr 2010, 12:47 AM
  2. Replies: 7
    Last Post: 26 Mar 2010, 12:44 PM
  3. Replies: 6
    Last Post: 3 Sep 2009, 04:42 AM
  4. Replies: 4
    Last Post: 6 Aug 2009, 03:50 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
  •