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.
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?
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,
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
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.
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
Re: Background Image Consistency via http: vs https:
Quote:
Originally Posted by
shop2drop
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.
Re: Background Image Consistency via http: vs https:
Cool good to hear you got it fixed,