DieselMinded Posted February 10, 2009 Posted February 10, 2009 OK , there once was a website www.tcdiesel.biz I was appointed webmaster and took over the site . I got a new domain name and server and its live .. www.mightydiesel.com I copied over the file system and imported the database for the store and since then ive been pulling my hair out It appears to me that there is 2 stores installed in the file system www.mightydiesel.com/catalog/index.php and www.mightydiesel.com/oscommerce/catalog/index.php Why I have no Clue , but it appears the wold store .. www.tcdiesel.biz/catalog/index.php is using the catalog from the root directory so thats the config files i first changed ... www.mightydiesel.com/admin/includes/configure.php is.... <?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', 'http://localhost'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://mightydiesel.com'); define('HTTPS_CATALOG_SERVER', 'http://mightydiesel.com'); 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/'); // define our database connection define('DB_SERVER', ''); define('DB_SERVER_USERNAME', 'mysql'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?> if i comment "IN" the define our database connection and add the information I get a blank page , and an error on that line the other configuration file is www.mightydiesel.com/catalog/includes/configure.php .... <?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', 'http://www.mightydiesel.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.mightydiesel.com'); define('HTTPS_CATALOG_SERVER', 'http://mightydiesel.com'); 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/'); // define our database connection define('DB_SERVER', 'XXXXXXX'); define('DB_SERVER_USERNAME', 'XXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXX'); define('DB_DATABASE', 'XXXXXX'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?> The site dont connect to the database , and when i Comment "in" the "define our database connection" the page is blank What am i doing wrong?
DieselMinded Posted February 10, 2009 Author Posted February 10, 2009 I deleted the database and ran the install script , it has the correct info in the 2 config files but the site still points to the old one , all the images and links ect.. im about to delete this and go to zen cart , is there a support forum around ?
spooks Posted February 10, 2009 Posted February 10, 2009 no, your post is imaginary, & your not really here :angry: if you don`t know here what makes you think you will there!!!! PS HTACCESS ??? Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
DieselMinded Posted February 10, 2009 Author Posted February 10, 2009 I have over wrote all htaccess with the deafult ones , I have 5 zencart clients , all you do is tell it the new database and your done , the end .. im been pissing with this for 3 days , i have the 2 config fies correct but even the admin control pannel links are to tcdiesel.biz
DieselMinded Posted February 10, 2009 Author Posted February 10, 2009 http://www.mightydiesel.com/catalog/index.php SEE ALL THE LINKS AND IMAGES ARE STILL TCDIESEL the admin cp is the same way ,
DieselMinded Posted February 10, 2009 Author Posted February 10, 2009 i deleted the oscommerce directory , and moved the admin folder to below catalog but still something is keeping it on tcdiesel database , Thats almost impossible because both config files are set to the new database it shouldnt even know about tcdiesel anymore
DieselMinded Posted February 10, 2009 Author Posted February 10, 2009 I enven deleted the database and did a fresh build and the software put the same database back in there , how is that even possible
spooks Posted February 10, 2009 Posted February 10, 2009 Have you tried altering define('DIR_FS_DOCUMENT_ROOT' ?? These are the standard settings: CATALOG/ADMIN/INCLUDES/CONFIGURE.PHP define('HTTP_SERVER', 'http://www.my-site.co.uk'); define('HTTP_CATALOG_SERVER', 'http://www.my-site.co.uk'); define('HTTPS_CATALOG_SERVER', 'http://www.my-site.co.uk'); define('DIR_WS_HTTP_CATALOG', '/servername/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/servername/catalog/'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/home/servername/public_html/catalog/'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', '/home/servername/public_html/catalog/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', '/home/servername/public_html/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/'); CATALOG/INCLUDES/CONFIGURE.PHP define('HTTP_SERVER', 'http://www.my_site.co.uk'); define('HTTPS_SERVER', 'http://www.my_site.co.uk'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'www.my_site.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'www.my_site.co.uk'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/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/servername/public_html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'Localhost'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); if your store is in the root remove catalog/ above Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
DieselMinded Posted February 10, 2009 Author Posted February 10, 2009 Backup Directory: /hsphere/local/home/cbarthur1965/mightydiesel.com/admin/backups/ WRONG the back up directory is /hsphere/local/home/cbarthur1965/mightydiesel.com/catalog/admin/backups/ this software has a mind of its own :D
DieselMinded Posted February 10, 2009 Author Posted February 10, 2009 Here is my Admin includes file ?php define('HTTP_SERVER', 'http://mightydiesel.com'); define('HTTP_CATALOG_SERVER', 'http://mightydiesel.com'); define('HTTPS_CATALOG_SERVER', 'http://mightydiesel.com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/cbarthur1965/mightydiesel.com/catalog/'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', '/hsphere/local/home/cbarthur1965/mightydiesel.com/catalog/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', '/hsphere/local/home/cbarthur1965/mightydiesel.com/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/'); define('DB_SERVER', '204.14.91.14'); define('DB_SERVER_USERNAME', 'XXXXXXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXX'); define('DB_DATABASE', 'XXXXXXXXXl'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
DieselMinded Posted February 10, 2009 Author Posted February 10, 2009 Catalog/includes/ <?php define('HTTP_SERVER', 'http://mightydiesel.com'); define('HTTPS_SERVER', 'http://mightydiesel.com'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'mightydiesel.com'); define('HTTPS_COOKIE_DOMAIN', 'mightydiesel.com'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/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', '/hsphere/local/home/cbarthur1965/mightydiesel.com/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', '204.14.91.14'); define('DB_SERVER_USERNAME', 'XXXXXXXXXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXXXXXXXX'); define('DB_DATABASE', 'XXXXXXXXXXXX'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
germ Posted February 10, 2009 Posted February 10, 2009 In the /catalog/includes and /admin/includes FOLDERS there is a FOLDER named local. On some installs there is a configure.php file in the local FOLDER. If it's there (it's OK if it isn't) check it to be sure it contains correct info. Anything in it trumps the other config file. :blush: 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 >
DieselMinded Posted February 10, 2009 Author Posted February 10, 2009 THAT THERE IS AND IT HAS TCDIESEL STUFF ALL THREW IT !!!!!! , i will add the new info and see what happens here THANKS !!!!!!
DieselMinded Posted February 10, 2009 Author Posted February 10, 2009 THAT DID THE TRICK THANK YOU !!!!!!!!!!!!!!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.