Guest Posted September 17, 2002 Share Posted September 17, 2002 Hello Everythig is working fine but when you try to add a product to the cart it allways take you to the "Your Shopping Cart is empty!" message. Can somebody tell me what do i have to modifie to make it work. http://catalogo.giacoclub.com.mx/catalog/c...log/default.php ill apreciate any help tks Link to comment Share on other sites More sharing options...
erowe Posted September 17, 2002 Share Posted September 17, 2002 Hi. I have exactly the same problem, and I can't figure out why. However, when I tried to reproduce the behavior on the link you included in your post, I found that the shopping cart was okay. How did you fix it Thanks. -Ethan Rowe Boston, MA USA Link to comment Share on other sites More sharing options...
Guest Posted September 17, 2002 Share Posted September 17, 2002 :( I have done nothing , i still get the same Your Shopping Cart is empty!message if you can fix yours please tell me how tks/rgds Link to comment Share on other sites More sharing options...
erowe Posted September 17, 2002 Share Posted September 17, 2002 It's a bit frustrating, isn't it? Well, when I followed your link and tried adding an item to the cart, it was fine. Of course, it was done through the "update" button rather than the "Add" button; this may take you into a different shopping cart action portion of the code (within the application_top.php file) but I don't know. Anyway, it added the item to the shopping cart no problem when I tried it. I verify on my own system that session files are being created and stored, which makes me wonder if the session cookie isn't being set properly. In any case, if we're both having the same problem, why would YOUR shopping cart work for ME? The only difference that I can think of is the name assigned to the server; for me, it's the URL you supplied, but are you accessing it through that URL? Are you accessing it via localhost or the computer name within a LAN or anything like that? Good luck (to us both) -Ethan Link to comment Share on other sites More sharing options...
erowe Posted September 17, 2002 Share Posted September 17, 2002 Well, I got mine working and feel kind of stupid now. Make sure that in your PHP.INI files, you have the register_globals flag set to "On". I didn't ever see this mentioned anywhere as a requirement in the 2.1 code/docs; maybe it's there and I missed it. However, as I started to install 2.2, the first thing the installer said was that register_globals needed to be set on. I decided to try turning it on and using 2.1 and the shopping cart immediately started working. I would prefer to operate with it off, but I guess I won't complain. See if that fixes your problem. :? -Ethan Link to comment Share on other sites More sharing options...
Guest Posted September 17, 2002 Share Posted September 17, 2002 Tks Erowe This is strange, I checked the site from 3 different computers and everything works fine, its only from my computer that I dont see the cart working. :? regards Link to comment Share on other sites More sharing options...
sjb47 Posted September 18, 2002 Share Posted September 18, 2002 Make sure that in your PHP.INI files, you have the register_globals flag set to "On". Eureka! And Aha! And thank you!!!!! Steven Link to comment Share on other sites More sharing options...
buymp3 Posted November 24, 2003 Share Posted November 24, 2003 I have kind of the same problem I have just upgraded to 2.2 and after the installation I can't log into my account. Whenever I am trying to lig in it's bringing me back to login.php screen BTW where php.ini is located Link to comment Share on other sites More sharing options...
Giorgiogg Posted November 24, 2003 Share Posted November 24, 2003 I've got the same problem in iis server, the reg glob are On but the cart is always empty. we are talking about it here http://www.oscommerce.com/forums/index.php?sho...=0entry263391 any ideas? Link to comment Share on other sites More sharing options...
WendyM Posted November 24, 2003 Share Posted November 24, 2003 Do any of you use AOL? I had problem with a customer using AOL(could not login) and solved it by changing settings in Admin/Configuration/Sessions Check IP Address=False I also have Force Cookie Use=False If this doesn't work, I have no clue. Much luck to you all. Wendy Link to comment Share on other sites More sharing options...
nzaustqb Posted January 6, 2004 Share Posted January 6, 2004 hi I did have same problems and changed both the 'forced cookies' and check IP to 'FALSE' in store config. It worked fine. Still go on testing at my site before I officially will be online. Anyone interested can test at www.dbwebtek.com Regards David B Link to comment Share on other sites More sharing options...
dantiatto Posted June 29, 2006 Share Posted June 29, 2006 your shopping cart is empty! problem... I got a security warning from my hosting company about them changing the register_globals setting to off - the simple workaround if you don't have permission to change the PHP.ini file is to put this in the .htaccess file: php_value register_globals 1 the .htaccess file (for noobs like me or if you don't use one already) sits in your root directory btw. hope that helps somebody! Link to comment Share on other sites More sharing options...
sharprez Posted June 22, 2007 Share Posted June 22, 2007 Make sure that in your PHP.INI files, you have the register_globals flag set to "On". That fixed my problem.. but be sure to restart your web server.... :) Link to comment Share on other sites More sharing options...
jbastow Posted October 30, 2007 Share Posted October 30, 2007 your shopping cart is empty! problem... I got a security warning from my hosting company about them changing the register_globals setting to off - the simple workaround if you don't have permission to change the PHP.ini file is to put this in the .htaccess file: php_value register_globals 1 the .htaccess file (for noobs like me or if you don't use one already) sits in your root directory btw. hope that helps somebody! Mine is already changed, and I don't have access to php.ini (or maybe I just can't find it!)..... my cart is just a little bit different: I can't add at least 1 item on the site, and I cna't update anything in the cart. any ideas? Thx - Janna Link to comment Share on other sites More sharing options...
harryedwards Posted November 4, 2007 Share Posted November 4, 2007 Eureka! And Aha! And thank you!!!!!Steven Excuse my ignorance but where do I find the php.ini file and how do I set the register_globals to "on." Link to comment Share on other sites More sharing options...
cea787 Posted November 7, 2007 Share Posted November 7, 2007 Excuse my ignorance but where do I find the php.ini file and how do I set the register_globals to "on." It is in the php folder (c:\php or where ever php is installed) or c:\windows. shows up in phpinfo. Link to comment Share on other sites More sharing options...
bren.g Posted November 7, 2007 Share Posted November 7, 2007 I am suddenly having the same problem and I cannot for the life of me figure out why! I'm beginning to think I've lost my mind... Everything on the website seems to be put together fine, no other problems. When clicking on any item to add it to the cart, the cart page shows with "Shopping Cart is Empty!" I can log in to the website fine. I can browse, look at all pages, use the admin interface, etc. But I cannot add anything to the shopping cart. I'm thinking it has something to do with sessions and cookies, but no matter how many different configurations I try, nothing seems to be working. No matter how many ways I try to work around it, no fix. :blink: Register Globals On, Safe Mode Off, I have made so many adjustments to my configure.php I'm not even sure it's right anymore... I am having some issues with being able to set the correct path in the configure.php, however the site was working perfectly prior to this afternoon so I know that can't be what's causing this particular issue. I corrected a problem with an incorrect path under the admin interface which was causing my shipping and payment module configurations to not display. Once I corrected that, my shopping cart stopped working. But I cannot find *anything* in the configure.php or other files that would be causing this. I've posted configure.php below in the hopes someone may notice a glaring error that would solve this problem. I'm ready to bang my head on the wall...with a client breathing down my neck, I thought I was almost done with this site, and now this...!!! <?php /* $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://www.myurl.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.myurl.com'); define('HTTPS_CATALOG_SERVER', 'https://www.myurl.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('HTTP_COOKIE_DOMAIN', 'www.myurl.com'); define('HTTPS_COOKIE_DOMAIN', 'myurl.com'); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. define('DIR_WS_ADMIN', '/admin'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); 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/'); // define our database connection define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'XXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXX'); define('DB_DATABASE', 'XXXXXX'); define('USE_PCONNECT', 'true'); define('STORE_SESSIONS', 'mysql'); ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.