Rwfresh Posted April 8, 2004 Share Posted April 8, 2004 I have a shared SSL on teetimesworld.com in a /america directory (no ~). I have two other sites setup with an identical configure.php. With the obvious changes. When i get to the checkout_success.php the continue button gives me a page not found message. I am also experiencing page not found errors when i try to add something to the cart after logging in. Can someone comment on this configure.php or why i might be getting the errors i described? thanks. p.s. i also notice that on all the sites i have configed the session id is always in the url on the SSL side. I think i have a cookie problem. Please help! thanks. <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 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.teetimesamerica.com/'); define('HTTPS_SERVER', 'https://secure.teetimesworld.com/'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.teetimesamerica.com'); define('HTTPS_COOKIE_DOMAIN', 'secure.teetimesworld.com'); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', '/america/'); define('DIR_WS_HTTP_CATALOG', ''); define('DIR_WS_HTTPS_CATALOG', 'america/'); 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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); 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'); define('DB_SERVER_USERNAME', '*******'); define('DB_SERVER_PASSWORD', '*******'); define('DB_DATABASE', '******'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' // CLR 020605 defines needed for Product Option Type feature. define('PRODUCTS_OPTIONS_TYPE_SELECT', 0); define('PRODUCTS_OPTIONS_TYPE_TEXT', 1); define('PRODUCTS_OPTIONS_TYPE_RADIO', 2); define('PRODUCTS_OPTIONS_TYPE_CHECKBOX', 3); define('TEXT_PREFIX', 'txt_'); define('PRODUCTS_OPTIONS_VALUE_TEXT_ID', 0); //Must match id for user defined "TEXT" value in db table TABLE_PRODUCTS_OPTIONS_VALUES // Featured Rounds define('MAX_DISPLAY_FEATURED_PRODUCTS', '8'); define('MAX_DISPLAY_FEATURED_PRODUCTS_LISTING', '10'); define('FEATURED_PRODUCTS_DISPLAY', True); define('MAX_DISPLAY_TOO_LOW_PRODUCTS', '12'); define('MAX_DISPLAY_TOO_LOW_PRODUCTS_LISTING', '12'); define('TOO_LOW_PRODUCTS_DISPLAY', true); ?> Link to comment Share on other sites More sharing options...
Rwfresh Posted April 21, 2004 Author Share Posted April 21, 2004 Solution appears to be found after almost 2 weeks. I just spent the last 6 hours in the forums. Reading about people having a similar problem. here's some links to posts and threads. http://www.oscommerce.com/forums/index.php?sho...=0entry309429 http://www.oscommerce.com/forums/index.php?sho...=0entry313996 http://www.oscommerce.com/forums/index.php?sho...=0entry293997 http://www.oscommerce.com/forums/index.php?sho...=0entry343656 http://www.oscommerce.com/forums/index.php?sho...=0entry337236 http://www.oscommerce.com/forums/index.php?showtopic=74717&hl= http://www.oscommerce.com/forums/index.php?sho...=0entry331597 http://www.oscommerce.com/forums/index.php?sho...=0entry329545 http://www.oscommerce.com/forums/index.php?showtopic=60458&st=14 http://www.oscommerce.com/forums/index.php?sho...=0entry321723 http://www.oscommerce.com/forums/index.php?sho...=0entry262664 http://www.oscommerce.com/forums/index.php?sho...=0entry347955 http://www.oscommerce.com/forums/index.php?sho...=0entry347687 So hopefully this will help some other people with the following problems: 1. continue button on checkout_success.php gives "page not found" error with or without correct URL being shown on link and in address bar of browser. 2. SSL appears to work fine. When logging in and clicking on checkout BEFORE putting anything in shopping cart "page not found" error is shown with or without correct URL being shown on link and in address bar of browser. Clicking on checkout link AFTER putting something in cart works fine. What worked for me after trying EVERY possible change to my configure files was the following fix: replace tep_redirect($url) function in catalog/includes/functions/general.php and admin/includes/functions/general.php with the following: function tep_redirect($url) { if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER) + strlen(DIR_WS_HTTP_CATALOG))== HTTP_SERVER . DIR_WS_HTTP_CATALOG){ $url = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . substr($url, strlen(HTTP_SERVER)+ strlen(DIR_WS_HTTP_CATALOG)); // Change it to SSL with correct store }elseif (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } header('Location: ' . $url); tep_exit(); } * MAKE SURE You copy the new general.php to your proper SSL directory as well after editing it. * This is not my fix. Appears to work though. Hope this helps someone.. Saves them some time. rw Link to comment Share on other sites More sharing options...
stevel Posted April 21, 2004 Share Posted April 21, 2004 Hmm - you have a trailing slash on your HTTP_SERVER and HTTPS_SERVER defines. I don't. I think that slash can cause you trouble. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Rwfresh Posted April 22, 2004 Author Share Posted April 22, 2004 Hmm - you have a trailing slash on your HTTP_SERVER and HTTPS_SERVER defines. I don't. I think that slash can cause you trouble. actually it doesn't matter as long as your directory definitions don't use a / in front.. ie if you have: http://www.mykickassstore.com/ then you shouldn't make your catalog definition /catalog/ it should be catalog/ rw Link to comment Share on other sites More sharing options...
Paycheck Posted April 26, 2004 Share Posted April 26, 2004 I have tried this fix and although I am not getting the 404 error anymore I am not logged in and it wants to go back to the login page again. Hmmmm Any suggestions JM Always remember, we need patience, guidance and most of all understanding. My Contributions Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.