Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTTPS:// but no lock in bottom right hand corner


digital01

Recommended Posts

Posted

I recently changed the layout of my website, and now the ssl lock doesn't show up at all. What's funny is that I dont receive an error stating that there are secure and insecure items on the website. I don't know what could be causing it to not connect. The certificate is valid and I dont get any errors. Any help would be appreciated. Thanks.

 

My website: www.angeljewelers.com

Posted

I've made sure that all of my pictures are using <img src="/images/XXXX.xxx> and the padlock is still not showing up. Any other suggestions?

Posted
I've made sure that all of my pictures are using <img src="/images/XXXX.xxx> and the padlock is still not showing up.  Any other suggestions?

Ideally you should use:

 

<img src="<?php DIR_WS_IMAGES . 'rings/diamond.jpg' ?>" />

  • 2 weeks later...
Posted
Ideally you should use:

 

<img src="<?php DIR_WS_IMAGES . 'rings/diamond.jpg' ?>" />

 

 

per your advice I tried to adjust my code from this:

  <img border="0" src="/catalog/images/tc_gray_div.gif" width="412" height="15"></p>

 

to:

 

<img src="<?php DIR_WS_IMAGES . 'tc_gray_div.gif' ?>" />

 

but I got an error pointing to where I modified the above code...so I then tried :

 

<img src="<?php echo tep_image(DIR_WS_IMAGES . 'tc_gray_div.gif'); ?>" />

 

...but I still got error .... Parse error: parse error, unexpected T_STRING ......

Posted

I do not have a lock in the bottom right hand corner too!

I know that I am at the secure site because I am at https, but how can I see the yellow lock? Is there any setting to be done?

Posted

Danilov, I checked the site using IE6, Firefox and Mozilla and all of them show the padlock on secure pages.

 

Vger

Posted

Hi Vger or any experts out there,

 

could you take a look at my http://www.spadinashop.com/

 

When I click check-out, it goes to the https secure site but there is no lock at the bottom. However, if we refresh the browser and if we have a sharp eye, we can see the yellow lock appearing for a very short instant and then missing.

 

I asked my host company, and they said:

"The reason your lock isn't showing is be cause on pages that have images pulling from an http source on an https page will break the lock in Internet Explorer. Review of your source code reveals that you are using stylesheet that is pulling from http."

 

Is he correct? I also saw this

http://www.oscommerce.info/kb/osCommerce/Common_Problems/75

 

but I don't really understand it. What should I actually do? Thanks

Posted

I looked at source code of my https://www.spadinashop.com/login.php (which is not showing the yellow lock).

 

I suspected that it is because of:

<base href="http://www.spadinashop.com/">

 

I thought it should be

<base href="https://www.spadinashop.com/"> instead!

 

So I went to login.php and changed from

 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

 

to

 

<base href="https://www.spadinashop.com/">

 

And my yellow lock appears! But what is wrong with that single php sentence? I have confirmed my 'HTTPS_SERVER' is defined as 'https://www.spadinashop.com') in the config.php file. So does it mean that the condition check of $request_type == 'SSL' is false and so it send us to HTTP_SERVER instead of HTTPS_SERVER?

 

I am asking because I prefer to solve the root cause instead of just putting

<base href="https://www.spadinashop.com/"> in all my secure pages because they are all not showing the yellow lock.

 

Please advise.

Posted

Help, I'm stuck with this SSL problem for 2 days already. I am at https site but the yellow lock is still not showing!

 

I know that it is because of the following code where it will check for the condition of SSL and then decide whether to use either HTTPS_SERVER or HTTP_SERVER.

 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

 

But it seems that the condition is always FALSE and that's why I am sent to HTTP_SERVER. I would like to know why my ($request_type == 'SSL') is always false.

 

Note that if I don't use the the above code and if I use the html code of

<base href="https://www.spadinashop.com/">, then I can see the lock.

Posted
per your advice I tried to adjust my code from this:
 ?<img border="0" src="/catalog/images/tc_gray_div.gif" width="412" height="15"></p>

 

to:

 

<img src="<?php DIR_WS_IMAGES . 'tc_gray_div.gif' ?>" />

 

but I got an error pointing to where I modified the above code...so I then tried :

 

<img src="<?php echo tep_image(DIR_WS_IMAGES . 'tc_gray_div.gif'); ?>" />

 

...but I still got error .... Parse error: parse error, unexpected T_STRING ......

 

Sorry about the absent, I've been busy working as the holiday season was over.

 

Use the following code (echo was missing)

 

<img src="<?php echo DIR_WS_IMAGES . 'rings/diamond.jpg' ?>" />

If you want to use tep_image() function then you'll have to use it outside of xhtml <img /> tag because tep_image() function creates html <img> tag. (MS2.2 is not xhtml compliance anyway).

 

<?php echo tep_image(DIR_WS_IMAGES . 'rings/diamond.jpg', 'My alt and title text', 100, 200); ?>

Replace 100 with desired width and 200 with desired height.

Posted
Danilov, I checked the site using IE6, Firefox and Mozilla and all of them show the padlock on secure pages.

 

Vger

 

@Vger: Thanks for checking that out. Now you know you have helped me alot when I dont have to give link to my site anymore. .... hehehehehe

 

@Alpha Ray: Thank you for clarifying that. I wasnt getting any errors before, but I was just trying to follow your advice. I was calling the image with regular old <a href ...etc

  • 2 weeks later...
Posted

Hi,

I had the same problem with my shop. I eventually located the problem to be with the command "getenv('HTTPS')" located in application_top.php and a few other files. When I used echo getenv('HTTPS') it was not returning anything.

 

I replaced it with $HTTP_SERVER_VARS["HTTPS"] and my site works fine.

 

Hope this is of help

 

Brian

  • 2 weeks later...
Posted
I had the same problem with my shop. I eventually located the problem to be with the command "getenv('HTTPS')" located in application_top.php and a few other files. When I used echo getenv('HTTPS') it was not returning anything.

 

I replaced it with $HTTP_SERVER_VARS["HTTPS"] and my site works fine.

What other files did you modify?

 

Thanks!

Thanks!

 

Frank

 

Ever wish people could recover from a "fatal error?"

Posted

springroll, im just letting you know that im on firefox and the lock shows up for me...

 

good luck to you!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...