Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Path to includes directory oddity


spiffin

Recommended Posts

Posted

Hello

 

I'm having trouble with images stored in /catalog/includes/languages/english/images .. but only in IE6 on Windows XP. Oddly any other reference to the includes directory works fine in IE6/XP.

 

The images directory has 777 permissions .. and in every other browser images (e.g. Buy Now) are displayed fine .. but in IE6/XP they just won't show.

 

To get other images (in the standard images directory) to show I had to hard code the full path .. but if I do that for includes it messes other things up.

 

Has anyone else experienced this .. and any ideas how to solve it?

 

Thanks

 

Simon

Posted

You never need to hard-code the full path, assuming everything is on the same server.

 

Same reply for you as my reply in another post --- can you post your /catalog/includes/configure.php file? (without the DB server/login info)

Posted

Certainly, here it is:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.m2fbooks.com'); // 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.m2fbooks.com');

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', 'http://www.m2fbooks.com/catalog/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', '/Library/WebServer/WebSites/m2f/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

--

 

Hard-coding the images directory path was the only way i could get images to show in IE6/XP (fine on all other platforms/browsers).

 

Thank you.

Posted

Hi

 

Thanks for your help. The redirect buy now image path is a coincidence. If you go to the main shop page (in IE6/XP):

 

http://www.m2fbooks.com/catalog .. and then click on the m2f Books category

 

(ful URL: http://www.m2fbooks.com/catalog/index.php?...d5ffd003f5e3fe)

 

you'll see that the product images show up (which I had to hard code) but the buttons (buy now) do not .. but only inIE6.

 

If you look at the source the paths seems to be fine .. I'm still quite ysified.

 

Simon

Archived

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

×
×
  • Create New...