Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2010
    Posts
    8
    Plugin Contributions
    0

    Default Background Image Consistency via http: vs https:

    I have been having problems with the ZenCart display.

    I have been trying to get "background_image" consistency on all ZenCart pages without joy. After looking thru all things available to me as administrator, I can not achieve the same result under the following circumstances:

    Pages presented under http://ZenCart/whatever... display fine using the "image".
    Pages presented under https://ZenCart/whatever... display no "image" but does revert to background_color. All else seems OK.

    I have not found any reference to this effect in any ZenCart reference that I found.

    What I have done is carefully inspect the html page produced by .php in the ZenCart application. I have also changed a few configuration and css things to verify they are effective. Quite frankly I find no reason for dropping the "image" under https security support. Yes I do have quite a few hours invested in this without an answer. I do see the page and css calling for the image but it just is not rendered by my firefox nor my explorer.

    Hopefully someone has a simple answer...
    Thanks.

  2. #2
    Join Date
    Jun 2008
    Location
    Sheffield South Yorkshire
    Posts
    165
    Plugin Contributions
    1

    Default Re: Background Image Consistency via http: vs https:

    Hi,

    What is your CSS? Are you using the full path to the background image in the stylesheet, instead of the relative path? Can you post your URL?

  3. #3
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,494
    Plugin Contributions
    3

    Default Re: Background Image Consistency via http: vs https:

    Ok, assuming this is the MBS site you have mentioned in previous posts, the images aren't showing up because you are somehow blocking them

    According to my browser when your site is on https://
    All images are blocked, these are both template images and product images all return a 403 error.

    You haven't added an .htaccess directive or something somewhere? where it shouldn't be?
    And you do actually have an SSL certificate? of your own

    @Johhnyboy, I had a quick look at the CSS and it doesn't appear to have any absolute links in it,
    Webzings Design
    The last couple of Zen-Cart sites we have worked on, Darncat Designs, Nags to Riches, Magic Brow Bands.

  4. #4
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,494
    Plugin Contributions
    3

    Default Re: Background Image Consistency via http: vs https:

    You don't perchance have hotlinking protectio turned on in your Hosting panel?

    Sometimes if that is botched it can cause something similar
    Webzings Design
    The last couple of Zen-Cart sites we have worked on, Darncat Designs, Nags to Riches, Magic Brow Bands.

  5. #5
    Join Date
    Apr 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Background Image Consistency via http: vs https:

    In response to jonnyboy's question:

    >> Detail follows:
    >> One of 7 css extracts from
    >> .../includes/templates/MBS/css/styles_mbs.css
    >> is typical:
    >>
    >> body {
    >> background-image: url('../images/bg_water3.jpg');
    >> background-color: #ffffff;
    >> margin: 0px;
    >> margin-bottom: 10px;
    >> padding: 0px;
    >> font-family: Verdana, Arial, sans-serif;
    >> font-size: 11px;
    >> color: #000000;
    >> }
    >>
    >> All .css and .php references are relative, all use the same image
    >> file.
    >> I have yet to find any src=http... or href=http... in any
    >> configuration
    >> stuff.
    >> The URL is http://metalboatsociety.org/ZenCart/ for you to explore.
    >> Our version is 1.5.0, pretty new.

  6. #6
    Join Date
    Apr 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Background Image Consistency via http: vs https:

    Bingo nigelt74 - the cpanel feature of hotlinking protection was turned on and appears to be the main culprit in preventing https: from running. When turned off everything works. So your guess is on the money - there is something not kosher in the hotlinking protection.

    Also we seem to have 32 .htaccess files - likely a few more than we need. I will have to work thru these and do some clean up.


    Very many thanks to jonnyboy22 and nigelt74 for your help - I would not have found the issue without it. What a fabulous resource this forum and its contributors are!!

    Thanks again
    graham

  7. #7
    Join Date
    Jan 2004
    Posts
    60,178
    Blog Entries
    4
    Plugin Contributions
    139

    Default Re: Background Image Consistency via http: vs https:

    Quote Originally Posted by shop2drop View Post
    Also we seem to have 32 .htaccess files - likely a few more than we need. I will have to work thru these and do some clean up.
    Keep the ones that came with Zen Cart. Then evaluate the others for whether you need them or not.
    .

    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.



  8. #8
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,494
    Plugin Contributions
    3

    Default Re: Background Image Consistency via http: vs https:

    Cool good to hear you got it fixed,
    Webzings Design
    The last couple of Zen-Cart sites we have worked on, Darncat Designs, Nags to Riches, Magic Brow Bands.

 

 

Similar Threads

  1. http vs https
    By jaishem in forum General Questions
    Replies: 2
    Last Post: 23 May 2011, 04:56 PM
  2. Http to Https
    By mousehouse in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 22 Oct 2009, 06:19 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
  •