Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Mixed Content issue

    v1.5.1 PHP 5.6

    I have a couple of sites that have been allowed to wallow as v1.5.1 and am in the process of trying to revive them. Both sites are giving mixed content warnings in browsers (Firefox and Chrome). The lock in the browser bar that should be green is an orange warning triangle. After using an ssl check site the warnings results related primarily* to images, i.e. images links the greater majority of which are http links.

    Both admin and store configure files have all servers set to https and ssl set to true (store and admin) - I have checked and re-checked, and the ssl certificate is valid - there is also a redirect, domain/www.domain >> https in the .htaccess file in the root. So my understanding is that these configurations should have all urls in the site directing / redirecting to https versions (??).

    (*primarily - there is this widget code on some pages that I can modify to https or even get rid of - it has no influence on the majority of pages on the site)

    Is there something I am missing ??

    cheers,
    Mike

    Code:
    /*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
    /***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/
    
    /**
     * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
     * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
     */
      define('HTTP_SERVER', 'https://www.mothersdayaustralia.net.au');
      define('HTTPS_SERVER', 'https://www.mothersdayaustralia.net.au');
      define('HTTP_CATALOG_SERVER', 'https://www.mothersdayaustralia.net.au');
      define('HTTPS_CATALOG_SERVER', 'https://www.mothersdayaustralia.net.au');
    
      // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_ADMIN', 'true');
    
      // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_CATALOG', 'true');
    
    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/
    
    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      define('HTTP_SERVER', 'https://www.mothersdayaustralia.net.au');
      define('HTTPS_SERVER', 'https://www.mothersdayaustralia.net.au');
    
      // 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', '/');

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

    Default Re: Mixed Content issue

    Just looking at the source code of the main page, there are at least 3 cases of src="http:// style items. These appear to be hardcoded and need to be corrected. there may be other issues causing the mixed content, but those need to be addressed first.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Mixed Content issue

    You could give Find http:// References (https://www.zen-cart.com/downloads.php?do=file&id=2197) a try. It will locate those references in your .PHP files as well as in database content (e.g. products and/or EZ-pages) and generate a report.

  4. #4
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: Mixed Content issue

    Quote Originally Posted by lat9 View Post
    You could give Find http:// References (https://www.zen-cart.com/downloads.php?do=file&id=2197) a try. It will locate those references in your .PHP files as well as in database content (e.g. products and/or EZ-pages) and generate a report.
    @ lat9 and mc12345678 - thank you both for your input. After your responses I went back to the ssl checker online tool and copied and pasted the myriads of http links and slowly but surely worked through every instance and changed http to https on every affected page (or in some cases deleted the unneeded reference altogether).

    It took a while but it eventually hit me that the references are all external to the page or even the site - yep the penny finally dropped (nothing to do with configures). I hadn't experienced this before so now I know what to do in future.

    Thanks again,
    Mike

 

 

Similar Threads

  1. v154 Chrome: Mixed content on https
    By kenaniah in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Sep 2016, 03:49 PM
  2. v154 Quick question regarding SSL and Mixed Content
    By chadlly2003 in forum General Questions
    Replies: 8
    Last Post: 31 Mar 2016, 06:45 AM
  3. v154 new SSL - Mixed Content Problems with Image Handler4
    By st.bobo in forum General Questions
    Replies: 6
    Last Post: 17 Mar 2016, 01:21 AM
  4. v151 Firefox 23 / CKEditor / Blocked loading mixed active content
    By swguy in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 16 Sep 2013, 03:47 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