BJSG Posted October 21, 2006 Posted October 21, 2006 I've been seeing errors in my osC admin and I was really tearing my hair out until I realise this "trend" e.g. error messages about missing directory: public_html/shopimages public_html/shop/adminbackups public_html/shoptmp public_html/shopincludes/modules/... These messages appear because the correct path should be public_html/shop/images public_html/shop/admin/backups public_html/shop/tmp public_html/shop/includes/modules/... the "/" are missing. I know i should goto configure.php to amend these but I'm not sure how to amend. I read the script but I don't see where I can go to add the extra "/"? Can anyone help?
Guest Posted October 21, 2006 Posted October 21, 2006 if you post a copy of your configure.php here we can see what may need changing. I suspect it's the line for DIR_WS_CATALOG needing a / Tom
BJSG Posted October 22, 2006 Author Posted October 22, 2006 Hi there, this is what I see for my configure.php <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 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://babejoy.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', 'babejoy.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/shop/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/shop/'); 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/'); //Added for BTS1.0 define('DIR_WS_TEMPLATES', 'templates/'); define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/'); define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/'); //End BTS1.0 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/babejoy/public_html/shop'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '*****'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> I've tried adding a "/" to "define('DIR_FS_CATALOG', '/home/babejoy/public_html/shop/'); and click "save". And I got this error message "/home/babejoy/public_html/shop/includes/configure.php File Saved -------------------------------------------------------------------------------- [a fatal error or timeout occurred while processing this directive]" The weirdest thing is only some path are affected. The rest works (or at least seemed to work) fine. Another issue is now I cannot cancel my test orders. Whenever I click "delete" for orders, it'll throw my a blank screen. When I click "back" or "refresh", I'll go back to my order screen and the test order will still be there. I remember I can delete order before the migration. Any suggestion?
Guest Posted October 22, 2006 Posted October 22, 2006 I thinks the configure.php you posted is the catalog one not the admin one (sorry i should hav read it better and asked for that one!) Can you post admin/includes/configure.php? Tom PS: From the error you posted - are you using the osc file manager/editor to make changes? If so then don't it doesn't work very well - it's better to use a proper ftp client/file editor.
BJSG Posted October 23, 2006 Author Posted October 23, 2006 Hi perfectpassion, Are you referring to this one? <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 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://babejoy.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://babejoy.com'); define('HTTPS_CATALOG_SERVER', ''); define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('HTTPS_ADMIN_SERVER', ''); define('HTTP_COOKIE_DOMAIN', 'babejoy.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/shop/'); define('HTTPS_COOKIE_PATH', ''); define('ENABLE_SSL', 'false'); // secure webserver for checkout procedure? define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_WS_HTTP_ADMIN', '/shop/admin/'); define('DIR_WS_HTTPS_ADMIN', '/shop/admin/'); define('DIR_FS_DOCUMENT_ROOT', '/home/babejoy/public_html/shop/admin'); //where the pages are located on the server define('DIR_WS_ADMIN', '/shop/admin/'); //absolute path required define('DIR_FS_ADMIN', '/home/babejoy/public_html/shop/admin'); //absolute path required define('DIR_WS_CATALOG', '/'); //absolute path required define('DIR_FS_CATALOG', '/home/babejoy/public_html/shop'); //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/'); // Added for Templating define('DIR_FS_CATALOG_MAINPAGE_MODULES', DIR_FS_CATALOG_MODULES . 'mainpage_modules/'); define('DIR_WS_TEMPLATES', DIR_WS_CATALOG . 'templates/'); define('DIR_FS_TEMPLATES', DIR_FS_CATALOG . 'templates/'); ?> I'm not exactly sure about what you meant by osc admin file. I went to my cpanel, file directories... and I click "edit file" to try to edit it. If there is a need to download additional program, any recommendations? (preferably freeware ;p)
BJSG Posted October 23, 2006 Author Posted October 23, 2006 anyone? where to add the "/" so that the directory path is correct?
Guest Posted October 26, 2006 Posted October 26, 2006 Sorry I've been away. in both files the following line needs an extra / at the end (after shop) define('DIR_FS_CATALOG', '/home/babejoy/public_html/shop'); In the admin one also do the same for the DIR_FS_ADMIN line. Try FileZilla for copying or editing files http://filezilla.sourceforge.net/ Tom
Recommended Posts
Archived
This topic is now archived and is closed to further replies.