Corshas Posted May 18, 2004 Posted May 18, 2004 There is something wrong with my ssl settings in my configure.php file. I am unable to checkout or add things to my cart when I am logged in. I have tried almost every combination that I can think of to resolve this. I am on a shared SSL <?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 (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.corshas.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://corshas.hosting-advantage.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', TRUE); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'corshas.com'); define('HTTPS_COOKIE_DOMAIN', 'corshas.hosting-advantage.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); 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', 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', ''); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> The following is from my server about my SSL <DIRECTORY /hsphere/local/home/scot0/corshas.com> OPTIONS Indexes Includes ExecCGI FollowSymLinks SSLOptions +StdEnvVars AllowOverride All </DIRECTORY> SSLCertificateFile /hsphere/local/config/httpd/ssl.shared/hosting-advantage.com/server.crt SSLCertificateKeyFile /hsphere/local/config/httpd/ssl.shared/hosting-advantage.com/server.key SSLCACertificatePath /hsphere/local/config/httpd/ssl.shared/hosting-advantage.com SSLCACertificateFile /hsphere/local/config/httpd/ssl.shared/hosting-advantage.com/ca-bundle.crt Once again thank you for you time, Scott
Corshas Posted May 19, 2004 Author Posted May 19, 2004 I still have this problem. Could some let me know what the problem with my configure.php is? Could the problem be in the admin/configure.php? Any help at will be greatly appreciated. Scott
Corshas Posted May 19, 2004 Author Posted May 19, 2004 Ok, So I have tried every combination that I can find on the message boards, Still the problem exsits. My Webpage I have ccokies forced I can open the site in HTTPS I don't know what else to do
melveile Posted May 19, 2004 Posted May 19, 2004 this is the error i get when trying to access your cart: Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/scot0/corshas.com/catalog/includes/application_top.php:520) in /hsphere/local/home/scot0/corshas.com/catalog/includes/functions/general.php on line 29
Corshas Posted May 19, 2004 Author Posted May 19, 2004 Yes I know I just screwed that up.... Any suggestions on how to fix that. I was placing google adsense on different files to see where Iloked it. when I got done I ahd done something in one of the file that I was in. It has been one of those days.....
melveile Posted May 19, 2004 Posted May 19, 2004 if you have a back up copy of your catalog, you can always reupload that if you have too many errors and no back up, it might be faster to reinstall osCommerce (you can keep the images and css file, and you can back up the database through admin panel and just reupload it later on). But whatever you do, i would suggest to back everything right now as is, so that at least you can pick an choose files from this installation.
Databuilder Posted May 20, 2004 Posted May 20, 2004 Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/scot0/corshas.com/catalog/includes/application_top.php:520) in /hsphere/local/home/scot0/corshas.com/catalog/includes/functions/general.php on line 29 Check for blank lines at the end of your application_top.php file.
Corshas Posted May 20, 2004 Author Posted May 20, 2004 Jason, Thanks for the help, I got it fixed. I still have the original problem of the cart dumping when trying to check out or when I try log into my account. I have talked to my service provider to make sure that I am using the correct path to the https server. So any ideas at what to do next.
Corshas Posted May 21, 2004 Author Posted May 21, 2004 Come on now... someone has to have the answer to this problem.....
Corshas Posted May 21, 2004 Author Posted May 21, 2004 Ok...I am down to asking my dog Cheyenne for help. Figured that it couldn't hurt since she can find her bone no matter where I hide it. She suggested that I change define('HTTP_COOKIE_DOMAIN', 'corshas.com'); define('HTTPS_COOKIE_DOMAIN', 'corshas.hosting-advantage.com'); To define('HTTP_COOKIE_DOMAIN', 'corshas.com'); define('HTTPS_COOKIE_DOMAIN', 'corshas.com'); Sorry Cheyenne it didn't work. As another work day begins, I ask this question does anybody have a fix for this problem. My Webpage
241 Posted May 21, 2004 Posted May 21, 2004 try making your cookie paths /catalog/ and your FS_CATALOG change this to an absolute path No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Corshas Posted May 21, 2004 Author Posted May 21, 2004 Ok changed the cookies path to /catalog/ and changed the FS_CATALOG FROM define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); TO define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['http://corshas.com'])); If this is what you meant then it did not work.
detsouvalas Posted May 21, 2004 Posted May 21, 2004 If this is what you meant then it did not work. Well, I think that it should rather look like define('DIR_FS_CATALOG', '/your/way/to/oscommerce/directory/'); Antonios
Corshas Posted May 21, 2004 Author Posted May 21, 2004 ok.. so now it looks like this: ('DIR_FS_CATALOG', '/hsphere/local/home/scot0/corshas.com/catalog/'); Still the same result.
detsouvalas Posted May 21, 2004 Posted May 21, 2004 Have you tried if your shop works WITHOUT ssl?? Antonios
Corshas Posted May 22, 2004 Author Posted May 22, 2004 Have you tried if your shop works WITHOUT ssl? define('HTTP_SERVER', 'http://corshas.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'corshas.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); Is this how I would try it without SSL? I also changed admin/configure The site comes up in SSL when I try to check out and still dumps the cart.
detsouvalas Posted May 22, 2004 Posted May 22, 2004 I would say that your shop doesn't generate any session id, I don't know if that's the problem, but I sounds logic ... no session id, no way of keeping track of users choises! I am facing the same problem with a test shop, after making some changes in the code ... I am still searching what went wrong! Antonios
Corshas Posted May 25, 2004 Author Posted May 25, 2004 I am at a loss as what to do next. I spent the afternoon reading about sessions and Shared SSL. From what I could find it looks like the problem is with my shared SSL For example, the force cookie usage implementation will work for the following servers: http://www.domain-one.com https://www.domain-one.com, or https://ssl.domain-one.com but not for the following servers: http://www.domain-one.com https://ssl.hosting_provider.com/domain-one/ I have changed html_output to // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'false') And still the problem is the same. SO the question remains the same does anyone have any advise for waht to do next.
Guest Posted May 26, 2004 Posted May 26, 2004 I am having the same problem at the moment from a fresh installation i did change session storage to mysql AndiC
T. Raven Posted May 27, 2004 Posted May 27, 2004 Turn force cookies off. i had a simulair problem...if not working let me know, we check some thingsd then
Guest Posted May 28, 2004 Posted May 28, 2004 Many thanks for answering I have cut and pasted the session details from admin and the /includes / configure.php file. Please note that the configure.php has been edited to remove domain names, user names and passwords. also please note i have not got around to setting up SSL yet i am just trying to get the cart working first without it Regards Andrew Sessions Session Directory = /tmp Force Cookie Use = False Check SSL Session ID = False Check User Agent = False Check IP Address = False Prevent Spider Sessions = False Recreate Session = False /includes / configure.php <?php // Please, note that all changes in this file will be lost // after reconfiguring application by Plesk define('HTTP_SERVER', 'http://mywebsite.co.uk'); define('HTTPS_SERVER', 'http://mywebsite.co.uk'); define('ENABLE_SSL', 'false'); define('HTTP_COOKIE_DOMAIN','mywebsite.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'mywebsite.co.uk'); define('HTTP_COOKIE_PATH', '/onlineshop/'); define('DIR_WS_HTTP_CATALOG', '/onlineshop/'); define('DIR_WS_HTTPS_CATALOG', '/onlineshop/'); 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', 'user'); define('DB_SERVER_PASSWORD', '*********'); define('DB_DATABASE', 'mysqlonlineshop'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.