Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images/Stylesheet display stopped working


chris1301

Recommended Posts

I had three installations of osC working excellently (one live, one test, one in development), and suddenly all the images and stylsheet display elements have disappeared from the catalog (although the admin area remains working fine. I have changed nothing. One day they were there, the next they were gone!

 

The image file path doesn't show the root directory any longer in the file path when you click properties in the browser:

http:///images/banners/oscommerce.gif

 

My catalog config.php file looks like this:

 

define('HTTP_SERVER', 'http://www.ski.leisure-sale.co.uk'); // eg, http://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', 'www.ski.leisure-sale.co.uk');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_CATALOG', '');

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

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

Can anyone help here, I can't understand what could have changed and why.

Many thanks

Chris

Link to comment
Share on other sites

Set (for now)

 

define('HTTPS_SERVER', 'http://www.ski.leisure-sale.co.uk');

 

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

 

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

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Set (for now)

 

define('HTTPS_SERVER', 'http://www.ski.leisure-sale.co.uk');

 

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

 

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

 

Alan, thanks a million for this, much appreciated.

Any idea why it was working ok before without any of the https defines being set, and now it suddenly needs them?

C

Link to comment
Share on other sites

Alan, thanks a million for this, much appreciated.

Any idea why it was working ok before without any of the https defines being set, and now it suddenly needs them?

C

Your server is acting a little wonky. It's telling osC that an ssl connection is established when there is not.

 

It's a common problem, a mistake by the server techies and they usually catch it sooner or later.

 

If you upload the little script in this post you'll see what I mean.

 

http://www.oscommerce.com/forums/index.php?sho...23entry672623

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...