danno91 Posted June 2, 2005 Share Posted June 2, 2005 Hey Guys, I have a problem. My shared SSL is working for when people go to checkout. But when people try and sign in, it is leaving out my shared SSL user name (~pprints) and that leads to a 404 page not found. The store is www.prophetic-prints.com ... I've been trying to fix this for hours but can't seem to find where the problem is originating from. I created a test account with the email [email protected] and the password test123 Help would be greatlyyyyy appreciated!!! Thanks so much! Link to comment Share on other sites More sharing options...
danno91 Posted June 2, 2005 Author Share Posted June 2, 2005 Quick update... it is working when people add something to the cart and click checkout and log-in from there. But it isn't working when the finish the order and click continue, or when the just try and simply log in. Link to comment Share on other sites More sharing options...
♥Vger Posted June 2, 2005 Share Posted June 2, 2005 This is most likely a cookie domain error in includes/configure.php. Make sure that the http_cookie_domain setting is for 'www.yourdomain.com' or just 'yourdomain.com' (either way no http://) Your https_cookie_domain would be 'chicago.dnsdc2.com', with the https cookie path being '/~pprints/' Vger Link to comment Share on other sites More sharing options...
danno91 Posted June 3, 2005 Author Share Posted June 3, 2005 I made the changes, but it still isn't working. Here is the code for my includes/configure.php (with the User Name and Password x-ed out) <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 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://www.prophetic-prints.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://chicago.dnsdc2.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.prophetic-prints.com'); define('HTTPS_COOKIE_DOMAIN', 'chicago.dnsdc2.com'); define('HTTP_COOKIE_PATH', '/~pprints/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/~pprints/'); 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/pprints/public_html/'); 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 empty for productive servers define('DB_SERVER_USERNAME', 'XXXXX'); define('DB_SERVER_PASSWORD', 'XXXXX'); define('DB_DATABASE', 'pprints_store'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' // STS: ADD: Define Simple Template System files define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php'); define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php'); define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php'); define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/'); define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html'); define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php'); define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php'); define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php'); // STS: EOADD ?> Link to comment Share on other sites More sharing options...
♥Vger Posted June 3, 2005 Share Posted June 3, 2005 You've got things the wrong way around here: define('HTTP_COOKIE_PATH', '/~pprints/'); define('HTTPS_COOKIE_PATH', '/'); should be this: define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/~pprints/'); Vger Link to comment Share on other sites More sharing options...
danno91 Posted June 4, 2005 Author Share Posted June 4, 2005 Eh, still doesn't work. Not sure what's wrong... Could you test it on your computer and see if it works. Here is the changed includes/configure.php file: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 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://www.prophetic-prints.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://chicago.dnsdc2.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.prophetic-prints.com'); define('HTTPS_COOKIE_DOMAIN', 'chicago.dnsdc2.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/~pprints/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/~pprints/'); 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/pprints/public_html/'); 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 empty for productive servers define('DB_SERVER_USERNAME', 'XXXXX'); define('DB_SERVER_PASSWORD', 'XXXXX'); define('DB_DATABASE', 'pprints_store'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' // STS: ADD: Define Simple Template System files define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php'); define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php'); define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php'); define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/'); define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html'); define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php'); define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php'); define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php'); // STS: EOADD ?> Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2005 Share Posted June 4, 2005 Hi Dan, I may not be able to help you with your issue, but I'm very interested in you config as it seems to replicate what I will be useing and a issue that I have. I to have to use a shared sevure area for my SSL part of my osCommerce. I would like to ask you if you had to place a full copy of your osCommerce on your secured area https://chicago.dnsdc2.com/~pprints/ as well as running the software on http://www.prophetic-prints.com. I have visited your web sitye and tested what you have there. I signed up for an account with name Kyama and all worked fine. Account created in the secured section and an email sent to me. I then went on to make a test purchase and again, all worked fine and as expected, right up to the checkout_success.php, where it gives you the "continue" button. Here we have the same problem. When clicking the continue button, it wants to take you to a main index page on the https:// web site instead of back to the main web site on the http:// side. btw, nice work on the template and site so far. Good luck :D Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2005 Share Posted June 4, 2005 whether you have to use a separate directory for your ssl all depends upon your host, it is very specific. you need to ask your host what needs to be done. this is a web hosting issue, server management, and only your host can answer it. Link to comment Share on other sites More sharing options...
danno91 Posted June 4, 2005 Author Share Posted June 4, 2005 Hey guys, First of all thanks for all your help. Kyama, I only installed OSC on prophetic-prints.com not on the secure server. Just wondering... are you using STS? I'm trying to isolate the problem. I'm not sure if it's my host because I installed a clean version of osc in the directory /teststore and everything was working fine. Link to comment Share on other sites More sharing options...
♥Vger Posted June 4, 2005 Share Posted June 4, 2005 Incorrect installation of STS has broken many a website. Vger Link to comment Share on other sites More sharing options...
danno91 Posted June 4, 2005 Author Share Posted June 4, 2005 Pretty sure I installed it right. Used the STS manual from oscbooks and I followed every step and triple-checked my work. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.