Guest Posted December 17, 2002 Posted December 17, 2002 Hi, getting this error when trying to view certain pages locally, The requested URL /shop/catalog/HTTPS_SERVER/shop/catalog/login.php was not found on this server I've tried all sorts of combos on the config file from adding localhost to catalog in the https bit.. This is my config file at present. define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false', ''); // where the pages are located on the server define('DIR_WS_ADMIN', '/shop/admin/'); // absolute path required define('DIR_FS_ADMIN', '/shop/'); // absolute pate required define('DIR_WS_CATALOG', '/shop/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/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Thanks[/code]
mattice Posted December 17, 2002 Posted December 17, 2002 its missing the HTTPS_SERVER define: define('HTTPS_SERVER', 'https://localhost'); "Politics is the art of preventing people from taking part in affairs which properly concern them"
Guest Posted December 17, 2002 Posted December 17, 2002 Done that still doesnt work...It seems to be calling /shop/catalog twice.. URL /shop/catalog/HTTPS_SERVER/shop/catalog/login.php
Ian Posted December 17, 2002 Posted December 17, 2002 You say that only certain pages display this. Which ones. The configure.php you have posted is for admin. Is it just admin side that is causing problems. If catalog side is causing problems pls post catalog configure.php Mattice was perfectly correct in his fix, I think however that this should be going to catalog configure.php and not admin/configure.php Trust me, I'm an Accountant.
Guest Posted December 17, 2002 Posted December 17, 2002 Hi, the config I have posted is for the catalog, not admin. It seems all pages like my accunt, login, register, etc only on the catalog, the admin seems fine. // 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 or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', 'http://localhost'); define('ENABLE_SSL_CATALOG', 'false', ''); // where the pages are located on the server define('DIR_WS_ADMIN', '/shop/admin/'); // absolute path required define('DIR_FS_ADMIN', 'E:/phpdev/www/shop/admin'); // absolute pate required define('DIR_WS_CATALOG', '/shop/catalog/'); // absolute path required define('DIR_FS_CATALOG', 'E:/phpdev/www/shop/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/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Thanks
mattice Posted December 17, 2002 Posted December 17, 2002 its missing the HTTPS_SERVER define:define('HTTPS_SERVER', 'https://localhost'); ;) "Politics is the art of preventing people from taking part in affairs which properly concern them"
Ian Posted December 17, 2002 Posted December 17, 2002 Sorry to disagree, but the configure you have posted is the format of the admin configure.php. The catalog cofigure.php looks like this // 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 NULL for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/fusion/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname 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/'); Something has therefore gone very wrong in your install. Trust me, I'm an Accountant.
Guest Posted December 17, 2002 Posted December 17, 2002 Ian, this IS my catalog config file. // 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 or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', 'http://localhost'); define('ENABLE_SSL_CATALOG', 'false', ''); // where the pages are located on the server define('DIR_WS_ADMIN', '/shop/admin/'); // absolute path required define('DIR_FS_ADMIN', 'E:/phpdev/www/shop/admin'); // absolute pate required define('DIR_WS_CATALOG', '/shop/catalog/'); // absolute path required define('DIR_FS_CATALOG', 'E:/phpdev/www/shop/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/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
Ian Posted December 17, 2002 Posted December 17, 2002 Richard, As I said in my previous post, if the configure.php you have posted is in catalog/includes/configure.php then something has gone very wrong with your installation. Please don't misunderstand me, I am not accusing you of anything. I am simply saying that the configure.php you have posted is an admin configure.php. I f it has some how ended up in your catalog/includes/configure.php then as iI hav already said something has gone horribly wrong with your install. Are you on a linux system. Is it possible the two configure.php files have been symlinked We are here to help. Trust me, I'm an Accountant.
Guest Posted December 17, 2002 Posted December 17, 2002 Ian Richard has downloaded the catalog from my web site, and I have sent him via email the correct? configure.php files. www.dcpcwebdesign.co.uk They are correct within the download and I belive somehow he has mixed them up!! copy below to your admin configure.php file dont forget to change the database settings at bottom. <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 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 or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', 'https://localhost'); 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', '/shop/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/shop/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', 'localhost'); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'maintest'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> next your catalog configure.php file again dont forget to change the database settings at bottom <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 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 NULL for productive servers define('HTTPS_SERVER', 'http://localhost'); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/shop/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname 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_THEMES', DIR_WS_INCLUDES . 'theme/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', 'E:/phpdev/www/'); define('DIR_FS_CATALOG', 'E:/phpdev/www/shop/catalog'); 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 NULL for productive servers define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'maintest'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> [/code]
Guest Posted December 17, 2002 Posted December 17, 2002 Hi, :oops: don't know how that happened.... guess what the catalog/config file was the wrong one...... Its all sorted now and I can carry on with my work.. Thanks again :lol:
Ian Posted December 17, 2002 Posted December 17, 2002 Paul, thank you for that. However my major concern is that Richard get's his site working, and does not 'give up' on osCommerce due to what appears to be a fairly trivial install problem. Trust me, I'm an Accountant.
Ian Posted December 17, 2002 Posted December 17, 2002 Richard, We seem to have posted at exactly the same time. I'm glad you got things sorted out, and I hope you can appreciate the value of these forums. Imagine if you had to do this on a pay per second telephone support line. Trust me, I'm an Accountant.
Guest Posted December 17, 2002 Posted December 17, 2002 Ian, I've been with OSC for about a year now, i think is excellent.. hard getting answers sometimes but i do exhaust every avenue i can including the search etc before i post and when i do its coz i spent too long with no joy myself. I appreciate all the help you guys give and there are some bloody clever people on here. It has become more a way of life now with osc. My wife doesn't like it but hey! when the kids are screaming! Once again thanks
Ian Posted December 17, 2002 Posted December 17, 2002 Richard, I hope you can now appreciate the power of GPL/open source. You had a problem, and this was solved without any cost to yourself thru a community that reponds to your problems. We hope that because of this that you will become an advocate of GPL/free software. Trust me, I'm an Accountant.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.