Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catalog Link is Wrong


Guest

Recommended Posts

Posted

I get the following incorrect link when I try to open a catagory from the index.php

 

mysite.comdir_ws_http_catalogindex.php/?cPath=22&osCsid=fdb5ffd02b91c4068f73cf76d49f954f]http://mysite.comdir_ws_http_catalogindex....f73cf76d49f954f

 

dir_ws_http_ is definately incorrect and i didn't put it there... then of course there are the long list of numbers after osCsid which make no sense, then it relists the thing again.

 

 

Why is that happening, and how do I fix it?

 

Thank you

 

Tag

Posted

Your includes/configure.php looks like its totally set up wrong, post it here minus the db user name and password.

 

Vger

Posted
Your includes/configure.php looks like its totally set up wrong, post it here minus the db user name and password.

 

Vger

 

<?php

/*

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://*********.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', '');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

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

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_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 our database connection

define('DB_SERVER', 'localhost');

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

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

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

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

?>

 

thank you for your help

Posted

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

 

some servers can't find the document root using this setting:

 

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

 

so do this (using your own pathway to the root of your web)

 

define('DIR_FS_DOCUMENT_ROOT', '/usr/local/apache/htdocs/catalog');

define('DIR_FS_ADMIN', '/usr/local/apache/htdocs/catalog/admin/');

define('DIR_FS_CATALOG', '/usr/local/apache/htdocs/catalog/');

 

and finally (to store sessions in the database, not in files):

 

define('STORE_SESSIONS', 'mysql');

 

Vger

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

 

some servers can't find the document root using this setting:

 

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); 

 

so do this (using your own pathway to the root of your web)

 

define('DIR_FS_DOCUMENT_ROOT', '/usr/local/apache/htdocs/catalog');

define('DIR_FS_ADMIN', '/usr/local/apache/htdocs/catalog/admin/');

define('DIR_FS_CATALOG', '/usr/local/apache/htdocs/catalog/');

 

and finally (to store sessions in the database, not in files):

 

define('STORE_SESSIONS', 'mysql');

 

Vger

 

I made the above change and it did not work... I do have a backup of those changes.

Then I took the setting off another OScommerce site I have and the same thing happened.

 

here are some of the links I am getting from index.php:

 

My Account:

****.com/catalog/HTTPS_SERVERDIR_WS_HTTPS_CATALOGaccount.php?osCsid=7f3eb9bacdc3cb387f71a4395c5763a7

 

Cart Contents: ****.comdir_ws_http_catalogshopping_cart.php/

 

Checkout: ****.com/catalog/HTTPS_SERVERDIR_WS_HTTPS_CATALOGcheckout_shipping.php?osCsid=7f3eb9bacdc3cb387f71a4395c5763a7

 

Catalog1: ****.comdir_ws_http_catalogindex.php/?cPath=22

 

Catalog2: ****.comdir_ws_http_catalogindex.php/?cPath=21

 

Shipping: ****.comdir_ws_http_catalogshipping.php/

 

Banner adv: ****.comdir_ws_http_catalogredirect.php/?action=banner&goto=3

 

Redirect to Index.php ****.comdir_ws_http_catalogindex.php/

 

Languages: ****.comdir_ws_http_catalogindex.php/?language=en

 

Currencies: ****.comdir_ws_http_catalogindex.php/?currency=EUR

 

Catalog: ****.comdir_ws_http_catalogindex.php/

 

I took out the http:// for obvious reasons. I did notice changes between the first site and second, I am guessing there is an upgrade I didn't know about.

I point out that everything in the admin section seems to work fine with no errors or error pages.

Posted

I got this information from the host just now....

 

/usr/home/<username>/

 

and for programs:

 

/usr/local/bin/

 

I tried thos and it did not work either, maybe I am not using them right? any suggests ?

 

If it helps:

Thsi is what i am getting:

j****.comdir_ws_http_catalogindex.php/?cPath=21]http://j****.comdir_ws_http_catalogindex.php/?cPath=21

a blank page.

 

I change it to:

****.com?catalog/Findex.php/?cPath=21

and get a page that says COMING SOON

 

define('HTTP_SERVER', 'http://****.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

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

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

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

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_FS_DOCUMENT_ROOT', '/home/user/****/catalog'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

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

define('DIR_FS_ADMIN', '/home/user/****/catalog/admin/');

Posted

reset back to your default setup, then add in your http://www.domain.com to your http_server setting,

for where u just had /admin/ change it to /catalog/admin/

also repost your configure.php after the changes

Posted
reset back to your default setup, then add in your http://www.domain.com to your http_server setting,

for where u just had /admin/ change it to /catalog/admin/

also repost your configure.php after the changes

 

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

define('HTTPS_COOKIE_DOMAIN', '');

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

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

 

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

 

I reuploaded the includes including the config and redid it. I actually don't know what the differences are, but it is working. Thanks to both of you for your help.

Archived

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

×
×
  • Create New...