Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Broken Images in IE but not in Firefox


JeffC

Recommended Posts

Hello all, I have searched for a while and couldnt find anything that hit what my problem was.

 

My store is www.eurofied.com

 

In Firefox (havent checked Opera) it displays perfect.

But in IE all of my images are broken.

 

I have gone through, re downloaded oscommerce and made sure that the index.php file is the same in my puplic_html folder and in Includes > Languages > English folder.

 

 

Any help would be greatly appreciated.

 

-Jeff

Link to comment
Share on other sites

Hi Jason!

 

I just had a similar issue yesterday adding ssl to my site. I am not an advanced user, but here is what I did yesterday to fix my IE problem:

 

First make sure part of your your config file looks like mine:

 

define('HTTP_SERVER', 'https://www.heptag.com'); // eg, https://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.heptag.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'heptag.com');

define('HTTPS_COOKIE_DOMAIN', 'heptag.com');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/shop/osc/');

define('DIR_WS_HTTPS_CATALOG', '/shop/osc/');

define('DIR_WS_IMAGES', 'images/');

 

and make sure you fill in similar responses to your admin/includes config file as needed.

 

Good luck, let me know if it works.

Link to comment
Share on other sites

and actually, now that I take a closer look, it appears that you haven't entered your domain name properly in the config file.

 

all of your links are broken because they are directed to http:///??

 

open your config file located at the first includes folder and make sure these are proper:

 

define('HTTP_SERVER', 'http://www.heptag.com'); // eg, https://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.heptag.com'); // eg, https://localhost - should not be empty for productive servers

Link to comment
Share on other sites

This is one of your image pathways:

http:///images/oscommerce.gif

and this is why they don't display in IE.

 

Firefox has better error handling capabilities than IE and will 'assume' a file pathway even if it is not defined in your configure.php files - IE won't.

 

Follow the advice above and edit both configure.php files., but don't fill in the https parts if you don't have ssl configured for your site.

 

Vger

Link to comment
Share on other sites

:( Ok, I copy pasted stargirlnine's config stuff, and edited it for mine. Now It doesnt display at all in IE, and all the images are broken in firefox

 

Hi jeff!

 

sorry i called you jason above, I don't know where I got that from! Anyways,

 

are you on ssl? if not you aren't (i made that assumption earlier), change your config files to reflect this:

 

define('HTTP_SERVER', 'http://www.heptag.com'); // eg, https://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'heptag.com');

define('HTTPS_COOKIE_DOMAIN', 'heptag.com');

Link to comment
Share on other sites

No worries ;)

 

 

Tried that and still get the same thing

 

here is what my config looks like

 

define('HTTP_SERVER', 'http://www.eurofied.com'); // eg, https://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'eurofied.com');

define('HTTPS_COOKIE_DOMAIN', 'eurofied.com');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/shop/osc/');

define('DIR_WS_HTTPS_CATALOG', '/shop/osc/');

define('DIR_WS_IMAGES', 'images/');

Link to comment
Share on other sites

How long has your domain been on the server? I ask because your image pathways are now correct, but it does take 24 hrs for a domain to propagate on a new server.

 

Vger

Link to comment
Share on other sites

aha! it appears that you moved all of your files to the root folder.

 

I am not as familiar with doing this, i don't know if your store it is fully compatible to do that, maybe VGER knows that.

 

Since your root is in your index, change this part of your configs to:

 

define('DIR_WS_HTTP_CATALOG', '');

define('DIR_WS_HTTPS_CATALOG', '');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...