embsupafly Posted August 4, 2005 Share Posted August 4, 2005 We have a web hosting client that messed something up when configuring their cart, all of the links within the cart look wierd and don't work, here is an example of one. http://www.xyz.comdir_ws_adminindex.php/?cPath=23 it should say: http://www.xyz.com/catalog/index.php/?cPath=23 What could have happened? Link to comment Share on other sites More sharing options...
Guest Posted August 4, 2005 Share Posted August 4, 2005 the configure.php files got changed, post them here without the database connection info the real ones, not modified host names, thus e can make sure they really work Link to comment Share on other sites More sharing options...
embsupafly Posted August 4, 2005 Author Share Posted August 4, 2005 the configure.php files got changed, post them here without the database connection info the real ones, not modified host names, thus e can make sure they really work <{POST_SNAPBACK}> Here they are: /catalog/admin/includes/configure.php // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.ovipc.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.ovipc.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/ovipc1f/public_html/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/ovipc1f/public_html/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/ovipc1f/public_html/catalog/'); // absolute path required 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/'); /catalog/includes/configure.php // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.ovipc.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.ovipc.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', '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', '/home/ovipc1f/public_html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Link to comment Share on other sites More sharing options...
Guest Posted August 4, 2005 Share Posted August 4, 2005 define('DIR_FS_DOCUMENT_ROOT', '/home/ovipc1f/public_html/catalog/'); // where the pages are located on the server to define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where the pages are located on the server Link to comment Share on other sites More sharing options...
embsupafly Posted August 4, 2005 Author Share Posted August 4, 2005 define('DIR_FS_DOCUMENT_ROOT', '/home/ovipc1f/public_html/catalog/'); // where the pages are located on the serverto define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where the pages are located on the server <{POST_SNAPBACK}> Tried it, that does not fix it. Other suggestions? Link to comment Share on other sites More sharing options...
Guest Posted August 4, 2005 Share Posted August 4, 2005 did they delete the language directory? once i get to the catalog (by the way, your server is a turtle . . .) clicking on a product wants to go to dir_ws_admin thus there must be another configure.php, check in the includes/local and if there are configure.php files there, delete them Link to comment Share on other sites More sharing options...
embsupafly Posted August 4, 2005 Author Share Posted August 4, 2005 did they delete the language directory? <{POST_SNAPBACK}> No, it is still there. Again, let me restate the problem: This is how it is showing links: http://www.xyz.comdir_ws_adminindex.php/?cPath=23 it should be like: http://www.xyz.com/index.php/?cPath=23 So for some reason the "/catalog" was replaced by "dir_ws_admin" Don't know how or why. Link to comment Share on other sites More sharing options...
Guest Posted August 4, 2005 Share Posted August 4, 2005 did you check the includes/local for a file? i know what it is supposed to look like and if the files you are showing me are in the proper spots then should not be going anywhere to dir_ws_admin what contributions were added? Link to comment Share on other sites More sharing options...
embsupafly Posted August 4, 2005 Author Share Posted August 4, 2005 did they delete the language directory? once i get to the catalog (by the way, your server is a turtle . . .) clicking on a product wants to go to dir_ws_admin thus there must be another configure.php, check in the includes/local and if there are configure.php files there, delete them <{POST_SNAPBACK}> Nope, no other configure.php file, just the two. Sorry about the server, it is performing daily backups right now. Should be faster now, killed the backups Thanks Link to comment Share on other sites More sharing options...
embsupafly Posted August 4, 2005 Author Share Posted August 4, 2005 did you check the includes/local for a file? i know what it is supposed to look like and if the files you are showing me are in the proper spots then should not be going anywhere to dir_ws_admin what contributions were added? <{POST_SNAPBACK}> The only contributions that were added were a Options - Price Update located at http://www.oscommerce.com/community/contri...ns+Price+Update But this was over a week ago and it worked fine until today. Not sure what happened to have this problem pop up. Thanks Link to comment Share on other sites More sharing options...
Guest Posted August 4, 2005 Share Posted August 4, 2005 download the code to your local system, then search for dir_ws_admin and you will find out where the problem is use windows grep or if you wish, use ssh to get to your server shell, then use the *nix grep program Link to comment Share on other sites More sharing options...
embsupafly Posted August 4, 2005 Author Share Posted August 4, 2005 download the code to your local system, then search for dir_ws_admin and you will find out where the problem isuse windows grep or if you wish, use ssh to get to your server shell, then use the *nix grep program <{POST_SNAPBACK}> What should I grep? I know I will be looking for dir_ws_admin, but what am I grepping? Thanks, Link to comment Share on other sites More sharing options...
Guest Posted August 4, 2005 Share Posted August 4, 2005 the php files in catalog directory Link to comment Share on other sites More sharing options...
embsupafly Posted August 4, 2005 Author Share Posted August 4, 2005 the php files in catalog directory <{POST_SNAPBACK}> Not coming up with anything, inside the catalog directory we execute: grep -i dir_ws_admin * Link to comment Share on other sites More sharing options...
embsupafly Posted August 4, 2005 Author Share Posted August 4, 2005 Not coming up with anything, inside the catalog directory we execute: grep -i dir_ws_admin * <{POST_SNAPBACK}> We went a little further: grep -i dir_ws_admin */*/* admin/includes/application_top.php: session_set_cookie_params(0, DIR_WS_ADMIN); admin/includes/application_top.php: ini_set('session.cookie_path', DIR_WS_ADMIN); admin/includes/configure.php: define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required includes/functions/html_output.php: $link = HTTP_SERVER . DIR_WS_ADMIN; includes/functions/html_output.php: $link = HTTPS_SERVER . DIR_WS_ADMIN; includes/functions/html_output.php: $link = HTTP_SERVER . DIR_WS_ADMIN; grep -i dir_ws_admin */*/*/* admin/includes/classes/sessions.php: var $cookie_path = substr(DIR_WS_ADMIN, 0, -1); admin/includes/functions/html_output.php: $link = HTTP_SERVER . DIR_WS_ADMIN; admin/includes/functions/html_output.php: $link = HTTPS_SERVER . DIR_WS_ADMIN; admin/includes/functions/html_output.php: $link = HTTP_SERVER . DIR_WS_ADMIN; Link to comment Share on other sites More sharing options...
Guest Posted August 4, 2005 Share Posted August 4, 2005 this right here: includes/functions/html_output.php: $link = HTTP_SERVER . DIR_WS_ADMIN; includes/functions/html_output.php: $link = HTTPS_SERVER . DIR_WS_ADMIN; includes/functions/html_output.php: $link = HTTP_SERVER . DIR_WS_ADMIN; Link to comment Share on other sites More sharing options...
embsupafly Posted August 4, 2005 Author Share Posted August 4, 2005 this right here: includes/functions/html_output.php: $link = HTTP_SERVER . DIR_WS_ADMIN; includes/functions/html_output.php: $link = HTTPS_SERVER . DIR_WS_ADMIN; includes/functions/html_output.php: $link = HTTP_SERVER . DIR_WS_ADMIN; <{POST_SNAPBACK}> What is wrong with it? Link to comment Share on other sites More sharing options...
embsupafly Posted August 4, 2005 Author Share Posted August 4, 2005 What is wrong with it? <{POST_SNAPBACK}> Found the problem: IT SHOULD HAVE SAID: DIR_WS_HTTP_CATALOG not DIR_WS_ADMIN. It looks like they copied the /catalog/admin/includes/html_output.php over the /catalog/includes/html_output.php Am I right? Thanks for all of the help John! Link to comment Share on other sites More sharing options...
Guest Posted August 4, 2005 Share Posted August 4, 2005 is it now working? Link to comment Share on other sites More sharing options...
embsupafly Posted August 4, 2005 Author Share Posted August 4, 2005 is it now working? <{POST_SNAPBACK}> Yes, I just changed those entries in the /catalog/includes/html_output.php to what they should have been, but I am guessing that they overwrote this file with admin/includes/html_output.php so I am going to get a fresh copy of the /catalog/includes/html_output.php and and overwrite the old file which may have other problems that are yet to be uncovered due to the overwrite with the wrong copy. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.