RojanUK Posted March 28, 2005 Share Posted March 28, 2005 Hi, I've copied my site to my local workstation for testing and development purposes. I have changed both configure.php file to reflect the localhost as server, rather than my hosts URL. This works fine, with the exception of admin. I can start admin from the localhost by using the URL http://localhost/home/test/admin/. However, when I want to go any further by choosing any of the options (configuration, customers, tools, etc) it links back to my hosts URL. This is no longer in any of the configure.php. Where could admin get the URL from? In other words, what else do I need to change to get this working offline? Thanks, RojanUK Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2005 Share Posted March 28, 2005 Where could admin get the URL from? Funny enough, it's configure.php and nothing else. :) Link to comment Share on other sites More sharing options...
RojanUK Posted March 28, 2005 Author Share Posted March 28, 2005 Funny enough, it's configure.php and nothing else. :) <{POST_SNAPBACK}> That's what I thought. Well, have a look: define('HTTP_SERVER', 'http://localhost/home/test'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://localhost/home/test'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/'); // where the pages are located on the server define('DIR_WS_ADMIN', 'http://localhost/home/test/admin/'); // absolute path required define('DIR_FS_ADMIN', 'http://localhost/home/test/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_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/'); My URL, or that of my host is nowhere in sight. Yet, when I go to http://localhost/home/test/admin/ I do get the blue admin menu screen, but every single link links back to my hosts URL. I really don't understand... :( RojanUK Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2005 Share Posted March 28, 2005 Ok, you have many errors here. define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', 'c:/xxx/xxx/xxx/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/home/test/admin/'); // absolute path required define('DIR_FS_ADMIN', 'c:/xxx/xxx/xxx/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/xxx/'); // absolute path required define('DIR_FS_CATALOG', 'c:/xxx/xxx/xxx'); // 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/'); Most of the errors have been corrected. But since I don't know the path of your local machine, you'll have to correct the red sections yourself. Link to comment Share on other sites More sharing options...
RojanUK Posted March 28, 2005 Author Share Posted March 28, 2005 I've corrected all the errors, but it hasn't solved the problem. All links in admin still point to the live site. :'( RojanUK Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2005 Share Posted March 28, 2005 I've corrected all the errors, but it hasn't solved the problem. All links in admin still point to the live site. :'( <{POST_SNAPBACK}> It shouldn't do that. Can you post the latest version of your admin's configure.php? Link to comment Share on other sites More sharing options...
RojanUK Posted March 28, 2005 Author Share Posted March 28, 2005 This is the latest version: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', 'http://localhost/home/test/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/home/test/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/test/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/home/test/'); // absolute path required define('DIR_FS_CATALOG', 'http://localhost/home/test/'); // 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/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'worldwid_roger'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', 'worldwid_db'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> To be complete I pasted the full file - obviously without my DB password. The link to the live site is not anywhere in this file. I really don't understand this... :( RojanUK Link to comment Share on other sites More sharing options...
RojanUK Posted March 28, 2005 Author Share Posted March 28, 2005 I solved the problem. For some reason I ended up with three configure.php files: * /home/test/includes/configure.php * /home/test/admin/configure.php * /home/test/admin/includes/configure.php I adapted the first two, but not the latter. Changed that one now and it's working now. Still odd that I have three configure.php's while there should be two. Never mind, works now... Thanks! RojanUK Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.