Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2008
    Posts
    174
    Plugin Contributions
    0

    Default Missing images in SSL pages?

    On the secured pages of my shop, the images no longer appear. I am using a shared certificate. Where or how do I set the image path to work

    Code:
    // 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://mydomain.com');
      define('HTTPS_SERVER', 'https://secure.myserver.com/~mydomain');
    
     // 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', '/shop/');
      define('DIR_WS_HTTPS_CATALOG', '/shop/');
    
      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/');

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

    Default Re: Missing images in SSL pages?

    Quote Originally Posted by aly22 View Post
    On the secured pages of my shop, the images no longer appear. I am using a shared certificate. Where or how do I set the image path to work

    Code:
    // 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://mydomain.com');
      define('HTTPS_SERVER', 'https://secure.myserver.com/~mydomain');
    
     // 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', '/shop/');
      define('DIR_WS_HTTPS_CATALOG', '/shop/');
    Is the correct shared-SSL URL to your site the following?
    https://secure.myserver.com/~mydomain/shop

    What happens when you go there with your browser?
    What happens when you type in the full URL to one of your images? ie: https://secure.myserver.com/~mydomai...no_picture.gif ?
    Who are you hosted with?

    It might be necessary to post your actual URL so we can see what kind of content the page is generating.
    .

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

    Default Re: Missing images in SSL pages?

    Quote Originally Posted by DrByte View Post
    Is the correct shared-SSL URL to your site the following?
    https://secure.myserver.com/~mydomain/shop
    Yes

    What happens when you type in the full URL to one of your images? ie: https://secure.myserver.com/~mydomai...no_picture.gif ?
    Who are you hosted with?
    I get a 404 as the images are not in the images directory. Template images are in template and items, etc. in images/whatever. So is the solution to duplicate images in all these directories?

    I am hosted with Host for Web.com as a reseller - I have a VPS account and host all of my client accounts that way. I set up the shared certificate.

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

    Default Re: Missing images in SSL pages?

    If the host is configured in a traditional way, there should be no need to duplicate anything nor change any image paths.

    What's the URL?
    .

    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.

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

    Default Re: Missing images in SSL pages?

    Going to this address:

    https://shared_domain/~username/shop...irts/klcap.jpg

    ... seems to give a 403-forbidden message.

    This suggests that your server's configuration is odd in that the SSL access isn't pointing to the same folder as your non-SSL access.


    If your host is running Plesk in the mode that points SSL traffic to a different folder than your non-SSL traffic, you'll have to get your host to change that setting so they both point to the same place.

    Otherwise, as you suggested earlier, you'll have to duplicate your entire non-SSL folder structure into your SSL-folder ... and constantly keep it updated whenever adding new products and/or changing any files on your site.
    .

    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.

  6. #6
    Join Date
    Feb 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: Missing images in SSL pages?

    Thanks so much. I'll speak to my host tech support about this. I really appreciate the help! The SSL only kicks in for checkout (I think?) so it may not be a huge undertaking to duplicate images (unless of course a customer goes back to the site while still logged in?)

    I am such a big fan of open source but times like this fear I am in over my head. Gotta love the daily challenge ;)

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

    Default Re: Missing images in SSL pages?

    I've just been configuring my SSL now and encountered the same problem, all the images disappeared, which includes my headings so the site looks aweful!

    Reading this post it suddenly clilcked why. I have hotlink protection turned on with my host which prevents linking to my images from other domain names. The shared certificate uses the hosts domain name.

    Problem solved, for me at least, i added the url for the SSL into my hotlink protection config in my cpanel.

    I finally got around to registering on the forums so i could post my experience because i've seen alot of people post their findings here.

    Heres hoping its the same issue for you because its an easy fix!

    naryn

  8. #8
    Join Date
    Feb 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: Missing images in SSL pages?

    Perfect! That absolutely fixed the problem in a matter of seconds :) Thank you thank you! I simply added the certificate (secure) URL to allowed referrers and it's all good!

  9. #9
    Join Date
    Aug 2008
    Posts
    5
    Plugin Contributions
    0

    Default Re: Missing images in SSL pages?

    Excellent news! One more problem down.


 

 

Similar Threads

  1. v139h Missing Images SSL Certificate Installed
    By MarkAnthony in forum General Questions
    Replies: 2
    Last Post: 17 Oct 2012, 06:09 PM
  2. Image missing from Blank Sidebox on SSL pages
    By mewell in forum Basic Configuration
    Replies: 16
    Last Post: 24 Mar 2010, 12:53 AM
  3. pages using ssl have no css/images
    By chickenwings in forum General Questions
    Replies: 3
    Last Post: 11 Sep 2009, 03:50 PM
  4. Images Not Shown on SSL Pages
    By metakomm2 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Jan 2007, 05:13 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