Grimreeper7000 Posted March 23, 2008 Posted March 23, 2008 Hello, I was trying to install the modification to add more detail to the customers page and I somehow messed up my links bad. Then I copied the 2 files changed from the install to try to change it back and it wont. Any ideas? They currently look like this in the admin area. http://needwut.comdir_ws_admincategories.php/?selected_box=catalog When it should be... http://needwut.com/admin/configuration.php?gID=7
germ Posted March 23, 2008 Posted March 23, 2008 You're missing the definition for DIR_WS_ADMIN in your /admin/includes/configure.php file. define('DIR_WS_ADMIN', '/admin/'); 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 >
Grimreeper7000 Posted March 23, 2008 Author Posted March 23, 2008 I just checked and I have that but it still does it.
germ Posted March 23, 2008 Posted March 23, 2008 Post the contenst of your /admin/includes/configure.php file, JUST LEAVE OUT ANY LINES THAT HAVE YOUR USERNAME/PASSWORD FOR YOUR DATABASE! 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 >
Grimreeper7000 Posted April 2, 2008 Author Posted April 2, 2008 Alright so I fixed the admin pages not working period with that but now I am having issues everywhere else in admin.... This all came from trying to install an updated addon and the backup not working but anyways... I am going to post my configure.php and can someone please help me sort it out.... It is missing some key things and the defines for some things are not working. I would really appreciate someone helping me fix it.... THanks. <?php define('HTTP_SERVER', 'http://needwut.com'); define('HTTPS_SERVER', 'http://needwut.com'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'needwut.com'); define('HTTPS_COOKIE_DOMAIN', 'needwut.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_ADMIN', '/admin/'); 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', 'E:/HTTP_SERVER_DATA/hosted/needwut.com/'); 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('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_FS_ADMIN', 'E:/HTTP_SERVER_DATA/hosted/needwut.com/admin/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'username'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'database'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
germ Posted April 2, 2008 Posted April 2, 2008 Can you give an example of something that doesn't work (at all or correctly)? :unsure: Obviously, I don't mean a "link" example since it's your Admin I couldn't click it and get there anyway. Just a brief description would suffice. I compared your file with mine, and you actually have more defines than I do! :lol: So as far as I can tell, there's nothing "missing". 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 >
Grimreeper7000 Posted April 2, 2008 Author Posted April 2, 2008 For example under backup it is displaying: Backup Directory: DIR_FS_BACKUP
germ Posted April 3, 2008 Posted April 3, 2008 In the admin configure file, move this line: define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); so it's just AFTER this line: define('DIR_FS_ADMIN', 'E:/HTTP_SERVER_DATA/hosted/needwut.com/admin/'); Did that help that error? :unsure: 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 >
Grimreeper7000 Posted April 3, 2008 Author Posted April 3, 2008 Nah it didnt change anything. Is there anyway you could post the one you have and I can just change each of the inputs?
germ Posted April 3, 2008 Posted April 3, 2008 <?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 (c) 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', ''); // 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', ''); // 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', '/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_DOCUMENT_ROOT . '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', ''); define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', ''); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?> 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 >
Grimreeper7000 Posted April 3, 2008 Author Posted April 3, 2008 I just copied and pasted this in with my info and I still get this error. Error Error: Backup directory does not exist. Please set this in configure.php. lol... Maybe i should just reinstall it
germ Posted April 3, 2008 Posted April 3, 2008 Try changing this: define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); back to this: define('DIR_FS_ADMIN', 'E:/HTTP_SERVER_DATA/hosted/needwut.com/admin/'); If you haven't got a lot of work into it yet, sometime a re-install will be quicker. 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 >
♥Vger Posted April 3, 2008 Posted April 3, 2008 That's not your admin/includes/configure.php file. It looks like the file you have has been cobbled together from both configure.php files. Vger Alright so I fixed the admin pages not working period with that but now I am having issues everywhere else in admin....This all came from trying to install an updated addon and the backup not working but anyways... I am going to post my configure.php and can someone please help me sort it out.... It is missing some key things and the defines for some things are not working. I would really appreciate someone helping me fix it.... THanks. <?php define('HTTP_SERVER', 'http://needwut.com'); define('HTTPS_SERVER', 'http://needwut.com'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'needwut.com'); define('HTTPS_COOKIE_DOMAIN', 'needwut.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_ADMIN', '/admin/'); 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', 'E:/HTTP_SERVER_DATA/hosted/needwut.com/'); 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('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_FS_ADMIN', 'E:/HTTP_SERVER_DATA/hosted/needwut.com/admin/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'username'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'database'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.