woomik Posted May 25, 2008 Share Posted May 25, 2008 I installed the Ultimate SEO contribution and my site works fine with this. However, when I try to access my admin. control panel by typing in www.MYSITE.com/admin (which worked fine before SEO installation), the address automatically changes to www.MYSITE.comdir_ws_http_cataloglogin.php/ and an error comes up saying "Server not found". Help please! If you need any further info. please let me know. Thanks in advance Quote Link to comment Share on other sites More sharing options...
Guest Posted May 25, 2008 Share Posted May 25, 2008 I installed the Ultimate SEO contribution and my site works fine with this.However, when I try to access my admin. control panel by typing in www.MYSITE.com/admin (which worked fine before SEO installation), the address automatically changes to www.MYSITE.comdir_ws_http_cataloglogin.php/ and an error comes up saying "Server not found". Help please! If you need any further info. please let me know. Thanks in advance Hi can you post your \catalog\admin\includes\configure.php: should look a bite like this drop the // define our database connection lines. <?php /* $Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $ 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', 'false'); // 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', 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/'); Quote Link to comment Share on other sites More sharing options...
woomik Posted May 25, 2008 Author Share Posted May 25, 2008 Here is file in completeness (just changed site name & passwords for security). Hope you can make something of it! woomik <?php define('HTTP_SERVER', 'http://MYSITE.com'); define('HTTP_CATALOG_SERVER', 'http://MYSITE.com'); define('HTTPS_CATALOG_SERVER', 'http://MYSITE.com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/home41b/sub002/sc12345-HYDL/MYSITE.com'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home41b/sub002/sc12345-HYDL/MYSITE.com/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home41b/sub002/sc12345-HYDL/MYSITE.com/'); 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', 'mysql1234.servage.net'); define('DB_SERVER_USERNAME', 'XXXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXXX'); define('DB_DATABASE', 'XXXXXXXX'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Quote Link to comment Share on other sites More sharing options...
germ Posted May 25, 2008 Share Posted May 25, 2008 Maybe it's just a "band-aid" for your problem: Click me Quote 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 > Link to comment Share on other sites More sharing options...
Guest Posted May 25, 2008 Share Posted May 25, 2008 Here is file in completeness (just changed site name & passwords for security). Hope you can make something of it! woomik <?php define('HTTP_SERVER', 'http://MYSITE.com'); define('HTTP_CATALOG_SERVER', 'http://MYSITE.com'); define('HTTPS_CATALOG_SERVER', 'http://MYSITE.com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/home41b/sub002/sc12345-HYDL/MYSITE.com'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home41b/sub002/sc12345-HYDL/MYSITE.com/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home41b/sub002/sc12345-HYDL/MYSITE.com/'); 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', 'mysql1234.servage.net'); define('DB_SERVER_USERNAME', 'XXXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXXX'); define('DB_DATABASE', 'XXXXXXXX'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> change : define('DIR_FS_ADMIN', '/home41b/sub002/sc12345-HYDL/MYSITE.com/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home41b/sub002/sc12345-HYDL/MYSITE.com/'); to: 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) Quote Link to comment Share on other sites More sharing options...
Guest Posted May 25, 2008 Share Posted May 25, 2008 Maybe it's just a "band-aid" for your problem: ?? Quote Link to comment Share on other sites More sharing options...
germ Posted May 25, 2008 Share Posted May 25, 2008 Knowing that it's a "root" install, this probably isn't a good move: define('DIR_WS_CATALOG', '/catalog/'); Quote 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 > Link to comment Share on other sites More sharing options...
woomik Posted May 25, 2008 Author Share Posted May 25, 2008 Thanks Jim I tried that but get Fatal error: Call to a member function image() on a non-object in /mounted-storage/home41b/sub002/sc12345-HYDL/MYSITE.com/admin/includes/functions/html_output.php on line 84 Extract of admin/includes/functions/html_output.php as follows (do you need more?): //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { // BOF - Modification: Simple Template System global $sts; $sts->image($src); // Take image from template folder if exists. <<<<<<<<<------------- LINE 84 // EOF - Modification: Simple Template System // BOF - Modification: On The Fly Auto Thumbnailer // if no file exists display the 'no image' file if (!is_file($src)) { $src = "images/no_image.jpg"; } Quote Link to comment Share on other sites More sharing options...
germ Posted May 25, 2008 Share Posted May 25, 2008 Well count me out. I really don't know squat about STS or SEO URL's. I still believe the root of your problem: the address automatically changes to www.MYSITE.comdir_ws_http_cataloglogin.php/ Is that dir_ws_http_catalog isn't defined. Simon, I wasn't trying to interfere here or "poke holes" in your attempts to help. Please don't take it that way. :blush: Quote 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 > Link to comment Share on other sites More sharing options...
Guest Posted May 25, 2008 Share Posted May 25, 2008 Well count me out. I really don't know squat about STS or SEO URL's. I still believe the root of your problem: Is that dir_ws_http_catalog isn't defined. Simon, I wasn't trying to interfere here or "poke holes" in your attempts to help. Please don't take it that way. :blush: ok Can you help me here why has woomik got his MYSITE.com? in " define('DIR_FS_DOCUMENT_ROOT', '/home41b/sub002/sc12345-HYDL/MYSITE.com'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home41b/sub002/sc12345-HYDL/MYSITE.com/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home41b/sub002/sc12345-HYDL/MYSITE.com/');" Quote Link to comment Share on other sites More sharing options...
germ Posted May 25, 2008 Share Posted May 25, 2008 Can you help me here why has woomik got his MYSITE.com? in " define('DIR_FS_DOCUMENT_ROOT', '/home41b/sub002/sc12345-HYDL/MYSITE.com'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home41b/sub002/sc12345-HYDL/MYSITE.com/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home41b/sub002/sc12345-HYDL/MYSITE.com/');" My admin defines in this area are: 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', '/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); I think the answer to your question is that if you don't use $DOCUMENT_ROOT you have to use the "local path". Quote 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 > Link to comment Share on other sites More sharing options...
Guest Posted May 25, 2008 Share Posted May 25, 2008 As the site url would be http://MYSITE.com/MYSITE.com/admin/ would it not? Quote Link to comment Share on other sites More sharing options...
germ Posted May 25, 2008 Share Posted May 25, 2008 I don't believe so because that's not part of the problem. Configure defines that begin with DIR_FS_ generally apply to paths on the server (File System), where as defines that begin with DIR_WS_ apply to paths used in the web browser (Web System). None of these: define('DIR_FS_DOCUMENT_ROOT', '/home41b/sub002/sc12345-HYDL/MYSITE.com'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home41b/sub002/sc12345-HYDL/MYSITE.com/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home41b/sub002/sc12345-HYDL/MYSITE.com/');" Would cause this duplication in the browser: http://MYSITE.com/MYSITE.com/admin/ At least I don't think so. Quote 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 > Link to comment Share on other sites More sharing options...
Guest Posted May 25, 2008 Share Posted May 25, 2008 ok I see. could it be then that define('DIR_WS_CATALOG', '/catalog/'); is defined and but as you say the dir_ws_http_catalog is not or is caps read the same? Quote Link to comment Share on other sites More sharing options...
germ Posted May 25, 2008 Share Posted May 25, 2008 Anything such as this not being defined: define('DIR_WS_HTTP_CATALOG', '/'); Comes out originally as caps in the browser, but they get altered to lower case and I think womik copy/pasted from the browser address window AFTER he got the "Page cannot be found" error. Try it in your browser. If you type in WWW.GOOGLE.COM it gets translated to http://www.google.com/ At least it does in my browser window (IE7) Quote 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 > Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.