Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Category links not valid


Meanteam

Recommended Posts

Posted

Hi, I'm in the process of configuring a new site.

 

When on the homepage, all category links are listed as:

 

http://www.******.com/home/sites/******.co...dex.php?cPath=5

 

However, if you click on a product on the homepage, on the resulting page (product_info.php) all links are correct:

 

http://www.******.com/osc/index.php?cPath=4

 

I've tried changing all of the values in both configure.php files that contained the full path but it seems to have no effect.

 

Config files:

 

Here is includes/configure.php:

 

<?php

define('HTTP_SERVER', 'http://www.****.com');

define('HTTPS_SERVER', 'http://www.****.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.****.com');

define('HTTPS_COOKIE_DOMAIN', 'www.****.com');

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

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

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

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

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/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '****');

define('DB_SERVER_PASSWORD', '****');

define('DB_DATABASE', '****');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

and here is admin/includes/configure.php:

 

<?php

define('HTTP_SERVER', 'http://www.****.com');

define('HTTP_CATALOG_SERVER', 'http://www.****.com');

define('HTTPS_CATALOG_SERVER', 'http://www.****.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '');

define('DIR_WS_ADMIN', '/osc/admin/');

define('DIR_FS_ADMIN', '/home/sites/****.com/public_html/osc/admin/');

define('DIR_WS_CATALOG', '/osc/');

define('DIR_FS_CATALOG', '');

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('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '****');

define('DB_SERVER_PASSWORD', '****');

define('DB_DATABASE', '****');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

Thanks in advance for any assistance.

Posted

Values in Config files are correct, so this is not arising out of configuration.

Can you give the proper link - and also check if you are using any redirect etc using .htaccess

Best Regards,
Gaurav

Posted

Thanks for the reply.

 

I've figured out what the problem is but it opens up a new question. Yesterday whilst looking through the various admin pages, I enabled caching.

 

Because this is a shared host, I changed the cache folder from /tmp/ to /home/sites/****.com/public_html/osc/cache/.

 

This must be wear the rogue links are coming from. So, my questions are:

 

a) does caching offer much benefit

B) is it okay to use in a shared environment where surely /tmp/ is likely to be a shared folder?

c) if I should be using it, how could I correctly configure it so as not to cause the link problem I have experienced.

 

Many thanks in advance.

Archived

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

×
×
  • Create New...