Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgent: Images not displaying


neropt

Recommended Posts

Hi.

It's the first time i get contact with oscommerce and i'm with a problem..

 

I'm trying to repair a site that uses oscommerce.

The images on the site are broken when i go to the propertys of the image i get this:

 

URL: http:///images/pixel_trans.gif

 

the only field i see in the configure is: "define('DIR_WS_IMAGES', 'images/');"

 

Where can i fix this?

 

Thanks.

 

P.S.: sorry for my bad english :P

Link to comment
Share on other sites

After several hours trying to resolve this issue, I finally found a solution. There seems to be numerous explanations for this issue but the primary one seems to be server based. In other words your hosting provider has done something to the server or you have if you have access to it.

If your site was working yesterday and now it won't display the images properly and you didn't do anything then I suspect it's server based. Based on further reading it also seems to be related to path information in your catalog/includes/configure.php and more than likely relates to SSL on your server.

 

Change your Configure file so that the HTTPS lines are equal to the HTTP lines - see example below. I usually copy the original lines and comment them out so that I can easily revert the file back or alternatively make a back up of your file. You may also have to make the same changes in your admin/includes/configure.php. If you have to make changes, make them one at a time so that you can understand which one resolves the situation if at all.

 

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

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

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

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

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

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

 

Finally if the above doesn't work try searching the forum for "http:///image". Include the quotes by the way as you want to search for that exact phrase. There seems to be plenty of possible solutions to the issue you mentioned.

 

Many thanks to Alan Rogers for writing the best solution that I could find.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...