PDA

View Full Version : Something happened with osCommerce...


janicen
12-1-04, 12:08 AM
I installed osCommerce last March and it was working smoothly. Last weekend I added some more information on the "Information" of the left side of the store, it worked just fine. Then I was testing the store to make sure it is working, testing to order some items and I clicked on "Add to Cart", it went to the "What's in My Cart" page where it said Your Shopping Cart is empty. I said to myself, Huh ??? Did something in the Powweb web server went wrong or did I do something wrong ? I don't want to start all over again... I have been working on this store since March and my client wants it to be ready by January 2005. Also, when I added my new account, it came to me to the login page again since I already added my new account. Something weird going on... perhaps somebody has experienced that before (I hope!)...

Thank you so much for answering my questions...

Janice

tresrhnter
12-1-04, 01:51 AM
janice,

that happened to mine also even though I had made no changes at all. it's because of a change powweb made back in october apparently (you can read about the whys on another thread) but this solution posted by jade dragon cured it for me. My files are named configure.php not config.php as in her post:


change the last line of the catalog/includes/config.php and catalog/admin/includes/config.php to this.

PHP Code:
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>



This will take care of the empty cart and wonky login problems. (if you are indeed using oscommerce)

=)
Jade

janicen
12-1-04, 08:52 AM
tresrhnter and jade,

It does work! It finally calmed down. How does that affect STORE_SESSION by adding 'mysql'??
:)
Janice

stevel
12-1-04, 10:38 AM
What this does is tell osCommerce to keep session information in the mySQL database rather than in files. Using the database is much more reliable.