Guest Posted October 7, 2008 Posted October 7, 2008 I have been trying to figure this out for hours, can anyone help? I am new to this so please make any explanations very simple. When browsing through the store you can add a product to the cart, but when you click checkout it will take you to a secure page to login but the cart is empty. You can sign up as a new customer or log in but when you do so the cart is empty again. Effectively it is just a big circle where you keep going round and round. I have searched the forums and im pretty sure it is to do with cookies and I have tried to change it but no luck. This is the part of my includes/configure.php that I have been trying to change. I am using a shared SSL. Can anyone tell me what to change and what it should be changed to please? <?php define('HTTP_SERVER', 'http://totallytackle.com.au'); //define('HTTPS_SERVER', 'https://totallytackle.com.au'); define('HTTPS_SERVER', 'https://meteor.websiteactive.com/~totallyt/'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'totallytackle.com.au'); //define('HTTPS_COOKIE_DOMAIN', 'totallytackle.com.au'); define('HTTPS_COOKIE_DOMAIN', 'https://meteor.websiteactive.com/~totallyt/'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/');
Gauravs Posted October 7, 2008 Posted October 7, 2008 Check phpinfo() and let us know the value of register globals in admin section (Tools) If Register Globals is set to OFF - you may encounter this issue. Set it to ON and test please. Best Regards,Gaurav
Guest Posted October 7, 2008 Posted October 7, 2008 Thanks for your reply. I had a look for that file but cannot seem to find it. Could you please explain how to do this?
sLaV- Posted October 7, 2008 Posted October 7, 2008 Thanks for your reply. I had a look for that file but cannot seem to find it. Could you please explain how to do this? goto your admin section www.yourdomain.com.au/admin and click on Tools then click on Server Info and search for register_globals
Guest Posted October 7, 2008 Posted October 7, 2008 Thanks for that. Register Globals are on for both local value and master value. What else could it be?
BryceJr Posted October 7, 2008 Posted October 7, 2008 Try this ... <?php define('HTTP_SERVER', 'http://totallytackle.com.au'); //define('HTTPS_SERVER', 'https://totallytackle.com.au'); define('HTTPS_SERVER', 'https://meteor.websiteactive.com/~totallyt'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'totallytackle.com.au'); //define('HTTPS_COOKIE_DOMAIN', 'totallytackle.com.au'); define('HTTPS_COOKIE_DOMAIN', 'meteor.websiteactive.com/~totallyt'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/');
Guest Posted October 8, 2008 Posted October 8, 2008 I'm having the same problem as dale and dont understand where the php code above is located? which page do i edit?
Guest Posted October 8, 2008 Posted October 8, 2008 BryceJr, I tried that but it did not work. Duaman, the page can be found in the includes folder, and it is called configure.php
Guest Posted October 8, 2008 Posted October 8, 2008 BryceJr, I tried that but it did not work. Duaman, the page can be found in the includes folder, and it is called configure.php found it tried it and no it didn't work for me either
germ Posted October 8, 2008 Posted October 8, 2008 Try this: define('HTTPS_COOKIE_DOMAIN', '.meteor.websiteactive.com'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted October 9, 2008 Posted October 9, 2008 Shared SSL and osC can be a hassle. It's still not making a cookie on the SSL side, and that's why the cart empties. Do you have any cookie setttings in this file (if you even have this file, and if you don't that's OK): /includes/local/configure.php :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
sLaV- Posted October 9, 2008 Posted October 9, 2008 germ - No luck with that either. Dale you have an extra / in your URL when you goto your SSL pages ... are you sure you made the changes Bryce advised you to make?? See if you hover your mouse over checkout you'll see this link: https://meteor.websiteactive.com/~totallyt//checkout_shipping.php
Guest Posted October 9, 2008 Posted October 9, 2008 Thanks for all the help so far - unfortunately it is still not working. germ - that file does not exist. The only file in the local directory is called README. The text in the README file is as follows This directory contains local configuration information. It also must contain a file named configure.php that can be used to override the defaults set in application_top.php Remember to execute PHP commands the file needs to start with <?php and end with ?> sLaV- I did make the changes that Bryce advised. It never worked so I changed it back to what it originally was. However I have made the changes again and left them as they are.
germ Posted October 9, 2008 Posted October 9, 2008 Read your configure file from the server and post what you have for the cookie settings (domains and paths). I have had it happen that people FTP the config file to the server and ASSUME it got there when in fact it didn't, so nothing ever changed. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted October 9, 2008 Posted October 9, 2008 Read your configure file from the server and post what you have for the cookie settings (domains and paths). I have had it happen that people FTP the config file to the server and ASSUME it got there when in fact it didn't, so nothing ever changed. Sorry - but where do I find that file? Should it just be in /public_html ? If so it is not there.
germ Posted October 9, 2008 Posted October 9, 2008 The one you posted in the first post in this thread. :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted October 9, 2008 Posted October 9, 2008 Yeah my mistake - as said im a complete newbie. This is the contents of the file, i just changed the username and the password at the end to xxxx, just in case its something important. <?php define('HTTP_SERVER', 'http://totallytackle.com.au'); //define('HTTPS_SERVER', 'https://totallytackle.com.au'); define('HTTPS_SERVER', 'https://meteor.websiteactive.com/~totallyt'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'totallytackle.com.au'); //define('HTTPS_COOKIE_DOMAIN', 'totallytackle.com.au'); define('HTTPS_COOKIE_DOMAIN', 'meteor.websiteactive.com/~totallyt'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_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', '/home/totallyt/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', xxxx); define('DB_SERVER_PASSWORD', 'xxxx'); define('DB_DATABASE', 'totallyt_osc1'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
germ Posted October 9, 2008 Posted October 9, 2008 This isn't what I posted: define('HTTPS_COOKIE_DOMAIN', 'meteor.websiteactive.com/~totallyt'); Did you change it back? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted October 9, 2008 Posted October 9, 2008 Yes, I tried the changes you suggested but when they never worked I changed them back. Appologies if im confusing anyone.
germ Posted October 9, 2008 Posted October 9, 2008 Just checking. It's still not making a cookie when going to SSL so the cart gets dumped. And I haven't a clue why. The cookie settings I've suggested have worked elsewhere. Like I said before shared SSL and osC can be a real challenge. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted October 9, 2008 Posted October 9, 2008 That's ok. Thanks for all your help anyway germ. At least you have given me a few ideas and I can do some research and see if i can find out whats wrong with it.
Guest Posted October 9, 2008 Posted October 9, 2008 I have been trying to figure this out for hours, can anyone help? I am new to this so please make any explanations very simple. When browsing through the store you can add a product to the cart, but when you click checkout it will take you to a secure page to login but the cart is empty. You can sign up as a new customer or log in but when you do so the cart is empty again. Effectively it is just a big circle where you keep going round and round. I have searched the forums and im pretty sure it is to do with cookies and I have tried to change it but no luck. This is the part of my includes/configure.php that I have been trying to change. I am using a shared SSL. Can anyone tell me what to change and what it should be changed to please? <?php define('HTTP_SERVER', 'http://www.totallytackle.com.au'); //define('HTTPS_SERVER', 'https://www.totallytackle.com.au'); define('HTTPS_SERVER', 'https://meteor.websiteactive.com/~totallyt/'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'http://www.totallytackle.com.au'); //define('HTTPS_COOKIE_DOMAIN', 'http://www.totallytackle.com.au'); define('HTTPS_COOKIE_DOMAIN', 'https://meteor.websiteactive.com/~totallyt/'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); i still have other problems but i got that part figured out! all i did is use the full path on all the addresses and it worked. See where i bolded your code. we had the same problem, so i hope this works for you as well.
Guest Posted October 9, 2008 Posted October 9, 2008 thanks for the tip duaman. I tried it but unfortunately it is still not working. I've been playing around with it for hours but with no luck. I spoke to my webhosting company and they told me it was a bug in oscommerce and to download the latest version, but I already am running the latest version so that is no help. If i get my own SSL will that fix all the problems? Im running out of ideas here.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.