Zen Cart Logo
Forums / Basic Configuration / Image missing from Blank Sidebox on SSL pages

Image missing from Blank Sidebox on SSL pages

Locked

Views: 6,825

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
13 Jan 2008, 12:12 AM
#1
mewell avatar

mewell

New Zenner

Join Date:
Oct 2007
Location:
Lakewood, CO
Posts:
28
Plugin Contributions:
0

Image missing from Blank Sidebox on SSL pages

I'm sure it's because I'm stabbing in the dark, but I've looked high and low for an answer... I've even tried the google search hint using the site:zen-cart.com/forum/ suggestion. My problem is that the image I've got in my Blank Sidebox contribution won't show on my SSL pages. I see the alternate text and I can get to the image if I enter the page address without problem so I'm assuming that it is because I've got something wrong in includes/templates/MY_TEMPLATE/sideboxes/tpl_blank_sidebox.php

Everything I've managed to kludge together so far has been taken from responses to other's posts and since I don't know what I'm doing I suspect that I've typed something that applied in one instance and not to mine :bigups:
Here are the contents of tpl_blank_sidebox.php:

/**
 * blank sidebox - allows a blank sidebox to be added to your site
 *
 * @package templateSystem
 * @copyright 2007 Kuroi Web Design
  * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
 */

  $content = '';
  $content .= '<div align="center" id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

  // Replace the text and HTML tags between the apostophes on lines 19 and 20.
  // Use as many or as few lines using this model as you need for your custom content.
  // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
  // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
  $content .= zen_image(DIR_WS_IMAGES . 'litessl_tl_trans.gif', 'COMODO Logo');
  $content .= '</div>';
?>

The side box works fine on non-SSL pages (see my site at https://www.remarkablepens.com ). I've placed a copy of the image in both images and secure/images ...

13 Jan 2008, 12:27 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Image missing from Blank Sidebox on SSL pages

I see the image on your secure pages. Have you solved this problem?

13 Jan 2008, 12:39 AM
#3
mewell avatar

mewell

New Zenner

Join Date:
Oct 2007
Location:
Lakewood, CO
Posts:
28
Plugin Contributions:
0

Re: Image missing from Blank Sidebox on SSL pages

kuroi:

I see the image on your secure pages. Have you solved this problem?

Huh? I didn't change a thing since posting the request for help! Now it works for me too... This is WAY too strange. I was testing by going to the HOME page, hitting "Log In", and seeing that the image wasn't there :lookaroun

Nope, not a clue, but as you have seen, things seem to be OK. Thanks for looking.

Mark

13 Jan 2008, 9:59 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Image missing from Blank Sidebox on SSL pages

I wondered if it might be related to a problem with your SSL cert which Firefox warned me about before letting me onto your secure pages. It seems that it's registered to a subdomain secure.remarkablepens.com rather than the main site https://www.remarkablepens.com. Maybe not the cause of this problem, I'm not an expert in this area, but certainly offputting for visitors.

Also gotta say that I'm not a fan of these hosting arrangements where you need to keep a separate copy of the code in a secure area. That can be a big and unnecessary overhead.

13 Jan 2008, 3:35 PM
#5
mewell avatar

mewell

New Zenner

Join Date:
Oct 2007
Location:
Lakewood, CO
Posts:
28
Plugin Contributions:
0

Re: Image missing from Blank Sidebox on SSL pages

After your post this morning I've looked at the site again using another browser (Camino) and I'm seeing the same behavior - Logo's alternate text label but not gif image. Thankfully I don't get any warnings about the certificate's validity....

I'm also seeing the first reported behavior in Firefox again this morning. Looks like if I enter the image's URL all by itself (https://secure.remarkablepens.com/images/litessl_tl_trans.gif) and then go to a secure page like Login the gif shows up OK. If I empty Camino's cache the problem is back. Any thoughts on who may be a source for SSL type stuff?

Thanks again,
Mark

5 Feb 2008, 1:11 AM
#6
mikelouw avatar

mikelouw

New Zenner

Join Date:
Jan 2008
Posts:
11
Plugin Contributions:
0

Re: Image missing from Blank Sidebox on SSL pages

I know nothing about SSL, but I find all the images on my https:// pages (such as checkout) disappear when I enable Hotlinking protection on my Cpanel (I am using Camelot hosting). If I disable the Hotlink protection, the images are back.

Mike

6 Feb 2008, 11:12 PM
#7
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Image missing from Blank Sidebox on SSL pages

Did you remember to add the Secure link to the hotlinking exclusion list?

6 Feb 2008, 11:25 PM
#8
mikelouw avatar

mikelouw

New Zenner

Join Date:
Jan 2008
Posts:
11
Plugin Contributions:
0

Re: Image missing from Blank Sidebox on SSL pages

Aha!! That's it; I didn't. Thanks for the tip! :clap:

Mike

9 Feb 2008, 5:13 AM
#9
mewell avatar

mewell

New Zenner

Join Date:
Oct 2007
Location:
Lakewood, CO
Posts:
28
Plugin Contributions:
0

Re: Image missing from Blank Sidebox on SSL pages

wifidoc:

IMAGE NOT DISPLAYING IN SIDEBOX - I have a problem viewing the image in the sidebox. The alt text is there and I can locate the image path via properties, and the image is in the folder /images/banners/image.jpg but it wont display. I am using the template override system, is there something else I need to do to get the image to display. :frusty:

This is the exact same behavior I was seeing... Once I put the path to the banner in my browser (like https://secure.somefakedomain.com/images/foo.jpg) the sidebox worked OK. Once I cleared my cache or used a different browser the problem was back. If I looked in my servers error messages I saw "client denied by server configuration" ... I ended up just turning off the "Show SSL" option in the Banner Manager. Not a real fix, but.....

Mark Ewell
https://www.remarkablepens.com

9 Feb 2008, 5:17 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Image missing from Blank Sidebox on SSL pages

wifidoc,

A link to your site and some additional info on your image name and folder location

9 Feb 2008, 1:57 PM
#11
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Image missing from Blank Sidebox on SSL pages

Hello,

I've installed this module and everything is working fine. Just wondering if I could add a php code in for an image rotator because I have a lot images but don't really like the idea of having them all shown at once. If it's gonna help, i'll be using "Better Image Rotator" from A List Apart.

9 Feb 2008, 1:59 PM
#12
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Image missing from Blank Sidebox on SSL pages

It's just a blank sidebox. You can add anything you like.

However, if you have problems with it, please don't post them here, as they will be about the specific integration that you are doing and not the blank sidebox mod for which this is the support thread. Start a new thread and I'll help there if I can.

9 Feb 2008, 3:07 PM
#13
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Image missing from Blank Sidebox on SSL pages

Ok, made a new thread

21 Feb 2008, 4:24 PM
#14
mewell avatar

mewell

New Zenner

Join Date:
Oct 2007
Location:
Lakewood, CO
Posts:
28
Plugin Contributions:
0

Re: Image missing from Blank Sidebox on SSL pages

In the event you've run accross this thread after doing a search for a similar problem, I solved the mystery. My problem was caused by the .htaccess file in my images directory. In following the suggestion to stop people from linking to images on my site I'd neglected to add the secure domain to the file....

Old way:SetEnvIfNoCase Referer "^http://www.remarkablepens.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://www.remarkablepens.com$" locally_linked=1 SetEnvIfNoCase Referer "^http://remarkablepens.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://remarkablepens.com$" locally_linked=1 SetEnvIfNoCase Referer "^$" locally_linked=1 <FilesMatch "\.(gif|png|jpe?g)$"> Order Allow,Deny Allow from env=locally_linked </FilesMatch>New way:```
SetEnvIfNoCase Referer "^http://www.remarkablepens.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.remarkablepens.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://remarkablepens.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://remarkablepens.com$" locally_linked=1
[B]SetEnvIfNoCase Referer "^https://secure.remarkablepens.com/" locally_linked=1
SetEnvIfNoCase Referer "^https://secure.remarkablepens.com$" locally_linked=1
[/B]
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch ".(gif|png|jpe?g)$">
Order Allow,Deny
Allow from env=locally_linked
</FilesMatch>

23 Mar 2010, 11:53 PM
#15
wmys avatar

wmys

New Zenner

Join Date:
Nov 2009
Location:
AB, Canada
Posts:
5
Plugin Contributions:
0

Re: Image missing from Blank Sidebox on SSL pages

mikelouw:

I know nothing about SSL, but I find all the images on my https:// pages (such as checkout) disappear when I enable Hotlinking protection on my Cpanel (I am using Camelot hosting). If I disable the Hotlink protection, the images are back.

Mike

GOD BLESS YOU! I was about to pull my hair out over the mystery of the disappearing header & images at checkout. Many thanks, Mike.:hug: