BHendrix Posted August 7, 2005 Posted August 7, 2005 I had trouble with my catalog/configure.php yesterday and with the help of some very kind people I got it figured. It would not let me go to the checkout or log in and so on. This am I got up to input products and when I go to oscommerce1/admin interface the home page for that comes up, but when I try to access the configuration or catalog (or any other thing on the page I get a page that states "NO PAGE FOUND" Here is my code: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.sunflowerpetsupplies.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://bl01.bluefishhosting.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', FALSE); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'sunflowerpetsupplies.com'); define('HTTPS_COOKIE_DOMAIN', 'bl01.bluefishhosting.com/~sunflowe'); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/osCommerce1/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/osCommerce1/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/'); I hope someone can help with this... Brandi
stevel Posted August 7, 2005 Posted August 7, 2005 Well, you've got several problems. The first is that, if what you posted above is from admin/includes/configure.php, you saved the catalog's configure.php on top of the admin's file. These are similar but not the same. Second, you left off the /~sunflowe from the HTTPS_SERVER define, but left it on the HTTPS_COOKIE_DOMAIN define where it doesn't belong. Third, the COOKIE_PATH defines should generally be the same as the DIR_WS_xxx_CATALOG defines. The catalog/admin/includes/configure.php should start like this: define('HTTP_SERVER', 'https://bl01.bluefishhosting.com/~sunflowe'); define('HTTP_CATALOG_SERVER', 'http://www.sunflowerpetsupplies.com'); define('HTTPS_CATALOG_SERVER', 'https://bl01.bluefishhosting.com/~sunflowe'); Note that I specified the https URL for HTTP_SERVER in the admin file. This makes sure that all your admin links are secure. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
BHendrix Posted August 7, 2005 Author Posted August 7, 2005 Well I did that but it still won't work? Any suggestions? Well, you've got several problems. The first is that, if what you posted above is from admin/includes/configure.php, you saved the catalog's configure.php on top of the admin's file. These are similar but not the same. Second, you left off the /~sunflowe from the HTTPS_SERVER define, but left it on the HTTPS_COOKIE_DOMAIN define where it doesn't belong. Third, the COOKIE_PATH defines should generally be the same as the DIR_WS_xxx_CATALOG defines. The catalog/admin/includes/configure.php should start like this: ?define('HTTP_SERVER', 'https://bl01.bluefishhosting.com/~sunflowe'); ?define('HTTP_CATALOG_SERVER', 'http://www.sunflowerpetsupplies.com'); ?define('HTTPS_CATALOG_SERVER', 'https://bl01.bluefishhosting.com/~sunflowe'); Note that I specified the https URL for HTTP_SERVER in the admin file. This makes sure that all your admin links are secure. <{POST_SNAPBACK}>
BHendrix Posted August 7, 2005 Author Posted August 7, 2005 Sorry, Well I did that but it still won't work? Any suggestions? I had posted the catalog's cinfigure.php (sorry), I had not thought about the admins one. I am posting the code from that with the changes you sent me. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'https://b101.bluefishhosting.com/~sunflowe'); define('HTTP_CATALOG_SERVER', 'http://www.sunflowerpetsupplies.com'); define('HTTPS_CATALOG_SERVER', 'https://bl01.bluefishhosting.com/~sunflowe'); define('ENABLE_SSL_CATALOG', false); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/sunflowe/public_html/osCommerce1/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/osCommerce1/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/sunflowe/public_html/osCommerce1/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/osCommerce1/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/sunflowe/public_html/osCommerce1/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/'); Thanks for any help on this! Well, you've got several problems. The first is that, if what you posted above is from admin/includes/configure.php, you saved the catalog's configure.php on top of the admin's file. These are similar but not the same. Second, you left off the /~sunflowe from the HTTPS_SERVER define, but left it on the HTTPS_COOKIE_DOMAIN define where it doesn't belong. Third, the COOKIE_PATH defines should generally be the same as the DIR_WS_xxx_CATALOG defines. The catalog/admin/includes/configure.php should start like this: define('HTTP_SERVER', 'https://bl01.bluefishhosting.com/~sunflowe'); define('HTTP_CATALOG_SERVER', 'http://www.sunflowerpetsupplies.com'); define('HTTPS_CATALOG_SERVER', 'https://bl01.bluefishhosting.com/~sunflowe'); Note that I specified the https URL for HTTP_SERVER in the admin file. This makes sure that all your admin links are secure. <{POST_SNAPBACK}>
stevel Posted August 7, 2005 Posted August 7, 2005 Since I can't look at your admin page myself (you wisely have it password-protected), I can't see what might be wrong. On one of the "not found" pages, copy the URL from the address bar and paste it into a reply here. Maybe that will give a clue. The other possibility is that some hosts make you upload content that is supposed to be SSL-accessed to a separate area. If yours is one of these, you'll need to copy your whole site to that location. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
BHendrix Posted August 7, 2005 Author Posted August 7, 2005 Here you go the link Since I can't look at your admin page myself (you wisely have it password-protected), I can't see what might be wrong. On one of the "not found" pages, copy the URL from the address bar and paste it into a reply here. Maybe that will give a clue. The other possibility is that some hosts make you upload content that is supposed to be SSL-accessed to a separate area. If yours is one of these, you'll need to copy your whole site to that location. <{POST_SNAPBACK}>
stevel Posted August 7, 2005 Posted August 7, 2005 Um, that's not quite what I asked for. You say that the admin page comes up - that's what you put a link in for - but when you go to one of the sub-pages, you get "page not found". I wanted to see the URL for one of these "not found" pages. Or you can send me a PM with a username and password for your admin page and I'll look myself. I suggest you create a new one which you can then remove later. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
BHendrix Posted August 7, 2005 Author Posted August 7, 2005 I sent a PM. Um, that's not quite what I asked for. You say that the admin page comes up - that's what you put a link in for - but when you go to one of the sub-pages, you get "page not found". I wanted to see the URL for one of these "not found" pages. Or you can send me a PM with a username and password for your admin page and I'll look myself. I suggest you create a new one which you can then remove later. <{POST_SNAPBACK}>
stevel Posted August 7, 2005 Posted August 7, 2005 Resolved - Brandi had misread the hostname she was supposed to use for the SSL connection. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
Recommended Posts
Archived
This topic is now archived and is closed to further replies.