Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Base Href Setting Results In No Images In Ie


seaghan

Recommended Posts

Hi there,

 

I spent 3 hours troubleshooting when all my images suddenly disappeared when using IE (were OK in Firefox etc.)

The problem was here: <base href="">

 

Then I found advice from a Guru called 'enigma1' in the archives, which had me change the $request_type (cf ** below).

This worked great!!

 

Now I have 2 follow-up questions:

 

1. What might have caused this problem? (a hosting update/config?)

2. Will I have to keep updating the file application_top.php every time that I do an upgrade /patch etc.?

 

Thanks!!

Thanks especially to enigma1 :)

 

 

 

**

open your catalog\includes\application_top.php

 

locate this code:

CODE

// set the type of request (secure or not)

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

 

change it to:

CODE

$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';

 

 

and try it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...