Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP: Firefox OK - but Explorer not displaying images, no style, all links broken. Text only.


McCambletron

Recommended Posts

OSC looks great in Firefox, but everything is broke to hell in Internet Explorer.

 

Unfortunately, I've been working in firefox almost exclusively --so I have no idea when the site broke, and don't have an old enough backup to try and fix it!

 

http://www.ocdepot.com/oscom/

 

It's like this on every page. All links look like "http:///advanced_search.php", and image paths are wrong too.

 

FIREFOX SCREENSHOT: http://img515.imageshack.us/img515/4845/firefoxnz6.jpg

 

EXPLORER SCREENSHOT: http://img18.imageshack.us/img18/4624/exploreryo5.jpg

 

CATALOG CONFIG: catalog/includes/configure.php

  define('HTTP_SERVER', ''); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_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/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'XXXXXX_osc');
 define('DB_SERVER_PASSWORD', 'XXXXXX');
 define('DB_DATABASE', 'XXXXXX_osc');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

ADMIN CONFIG: catalog/admin/includes/configure.php

  define('HTTP_SERVER', 'http://ocdepot.com'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://ocdepot.com');
 define('HTTPS_CATALOG_SERVER', 'https://');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/ocdepot/public_html'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/oscom/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/ocdepot/public_html/oscom/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/oscom/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/ocdepot/public_html/oscom/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'XXXXXX_osc');
 define('DB_SERVER_PASSWORD', 'XXXXXXX');
 define('DB_DATABASE', 'XXXXXX_osc');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

Link to comment
Share on other sites

I suspect a browser cache issue, reset it, just looked with ie7 & all looks fine

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Thanks for the reply... I actually JUST fixed it, and was on my way over here to explain how for future users with problems. You must have seen it just after my fix was uploaded.

 

Here was my problem for anyone interested:

 

in /includes/configure.php, the lines

  define('HTTP_SERVER', ' '); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTPS_SERVER', ' '); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers

NEEDED TO BE CHANGED TO:

  define('HTTP_SERVER', 'http://www.yoursite.com/catalog/'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.yoursite.com/catalog/'); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers

 

For some reason having nothing in the http_server section worked just fine in Firefox, but wouldn't work in IE... Also, 'localhost' would NOT work for me in Explorer. Now, all CSS and Images are showing up in both Explorer and Firefox!

Link to comment
Share on other sites

IE6 is OK as well.

 

Try www.browsershots.org

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...