Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

site paths issue


Guest

Recommended Posts

Posted

trying to get osc working on my laptop for local dev stuff, after getting the database etc configured I have run into issues with the images/link paths.

 

The site runs from localhost/os/catalog as you can see from the link below the folder paths are recursing for some reason. I thought this might be a problem with the way iis reads the configure.php file and that adding ./ to the paths of the folders for osc however this didnt work, even tried using apache and I get the same problem

 

http://localhost/os/catalog/os/catalog/ind...1abd3521e258412

 

 

define('HTTP_SERVER', 'http://localhost'); // 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', 'localhost');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/os/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', './');

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

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

 

any help would be much appreciated.

Posted

anyone? is there another file to specify the paths to images/links on the site? could it be that im moving from apache (where it works) to iis??

Posted

try setting this as an absolute path

 

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

 

such as

 

 define('DIR_FS_CATALOG', 'c:/os/catalog/');

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

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

×
×
  • Create New...