mtnhost Posted June 29, 2007 Posted June 29, 2007 when i click on link on left column for categories this is what i get http://www.websiteaddress.comdir_ws_http_catalogindex.php/?cPath=55&osCsid=d47eea936ca0d63389e65852de14aa1b with an error that reads server not found www.websiteaddress.comdir_ws_http_catalogindex.php. but if i type in http://www.websiteadress.com/oscommerce/catalog/?cPath=55&osCsid=d47eea936ca0d63389e65852de14aa1b (replaced dir_ws_http_ with /oscommerce/catalog/ and deleted index.php/) it links to the correct page. which file is pointing to the wrong path? or are there multiple files? i checked config.php file and can not find the error. thanks for your help!
♥Vger Posted June 29, 2007 Posted June 29, 2007 includes/configure.php - I'll bet that the domain information did not get written to that file and that it says 'http://localhost' when it should say 'http://www.yourdomain.com' Vger
mtnhost Posted July 1, 2007 Author Posted July 1, 2007 includes/configure.php - I'll bet that the domain information did not get written to that file and that it says 'http://localhost' when it should say 'http://www.yourdomain.com' Vger Thank you for this suggestion. I have checked both configure.php files- one in admin/includes and the one in includes folder. They both point to www.mywebsiteaddress.com. The folder that my oscommerce info is in on the server is www.mywebsiteaddress.com/oscommerce. I even changed both configure files to point to this thinking that would fix it. It did not??? I think it is probably just one file pointing to the wrong thing. I just can't find that one file. I appreciate your help. Thank you.
johnwvg Posted August 22, 2008 Posted August 22, 2008 Sorry to bring up an old issue. But this guys question looks like it was never solved... and I am having the exact same issue. Any ideas? Thanks for your help
germ Posted August 22, 2008 Posted August 22, 2008 If you're getting DIR_WS_HTTP_CATALOG in your URL's then that define is missing or not setup properly in your catalog configure file. If you installed osC into the normal /catalog folder, it would look like this: define('DIR_WS_HTTP_CATALOG', '/catalog/'); If you installed in the root, it would be: define('DIR_WS_HTTP_CATALOG', '/'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
johnwvg Posted August 24, 2008 Posted August 24, 2008 And by "my configuration file" you mean /catalog/includes/configure.php right? If that's the case, I open that file in my text editor and I see no reference to define('DIR_WS_HTTP_CATALOG.....) Here's my configure.php file: <?php define('HTTP_SERVER', 'http://74.20.215.52'); define('HTTP_CATALOG_SERVER', 'http://74.20.215.52'); define('HTTPS_CATALOG_SERVER', 'http://74.20.215.52'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/home1/airlessu/public_html/catalog/'); define('DIR_WS_ADMIN', '/~airlessu/catalog/admin/'); define('DIR_FS_ADMIN', '/home1/airlessu/public_html/catalog/admin/'); define('DIR_WS_CATALOG', '/~airlessu/catalog/'); define('DIR_FS_CATALOG', '/home1/airlessu/public_html/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', 'notmyrealusername'); define('DB_SERVER_PASSWORD', 'notmyrealpassword'); define('DB_DATABASE', 'mydatabase'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> I don't see it in here, do I have the right file? Thanks for your help!
germ Posted August 24, 2008 Posted August 24, 2008 Add this in the file you posted: define('DIR_WS_HTTP_CATALOG', '/~airlessu/catalog/'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
johnwvg Posted August 25, 2008 Posted August 25, 2008 Jim, thank you so much. I have googled my problem over and over and searched countless forums. Your solution solved it. I wonder how that line went missing in the first place? Anyway thank you so much my friend! John
Recommended Posts
Archived
This topic is now archived and is closed to further replies.