osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Empty Basket - Can't login

This is a discussion on Empty Basket - Can't login within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Hi, I'm trying to setup my site. I added categories and products and everything goes fine. I just have two ...

      
  1. #1
    New Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0


    Default Empty Basket - Can't login

    Hi,
    I'm trying to setup my site. I added categories and products and everything goes fine.
    I just have two problems at this point:
    1- When clicking on 'Buy Now' and 'Add to basket' i get to the cart page but says 'Your Shopping Cart is empty!'. So it's not adding products to the cart.
    2- I created an account. The account is in the database but when i try to Log In, i get to the main page but I'm not logged in.

    I don't know what info do you need to help with this. I copy here my configure.php

    define('HTTP_SERVER', 'http://localhost:8888');
    define('HTTPS_SERVER', 'http://localhost:8888');
    define('ENABLE_SSL', false);
    define('HTTP_COOKIE_DOMAIN', 'localhost');
    define('HTTPS_COOKIE_DOMAIN', 'localhost');
    define('HTTP_COOKIE_PATH', '/catalog/');
    define('HTTPS_COOKIE_PATH', '/catalog/');
    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', '/Applications/MAMP/htdocs/catalog/');
    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', 'admin');
    define('DB_SERVER_PASSWORD', 'admin');
    define('DB_DATABASE', 'vinos_arg_db');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'mysql');

    I'm working on OSX with MAMP on local.

    Thanks in advace guy

    Regards,
    Gonzalo

  2. #2
    New Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0


    Default Firefox

    Hi again,
    I just posted a thread saying that i had problems adding products to the cart and logging in. Looks like the problem only occurs on Firefox. I used Safari and everything works fine. Is there any way to make it work on Firefox?

    Thanks a lot

    Gonzalo

  3. #3
    New Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0


    Default Re: Empty Basket - Can't login

    Hi,
    I'm just refreshing the topic. I'm lost and i can't find a solution. I would really appreciate some help. I tried with IE for OSX and it doesn't work either.

    Thanks again

    Gonzalo

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Empty Basket - Can't login

    This usually means a setup problem with sessions, cookie domain or other configure.php setting. With such little info provided by you, that is about as specific as anyone can get.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0


    Default Re: Empty Basket - Can't login

    Hi,
    Thanks for the answer. I don't know what info do you need to be more specific.
    Looks like anything that has to do with sessions doesn't work on IE or Firefox but works on Safari. Do you think it can be related to files or folders rights?
    I can provide the information you need, i just need to know what to provide.

    Thanks again.

    Regards,
    Gonzalo

  6. #6
    Member ragerbua's Avatar
    Join Date
    Mar 2010
    Location
    Austria
    Posts
    63
    Rep Power
    9


    Default Re: Empty Basket - Can't login

    I had a similar problem when using MOWES (some portable WAMP) and oscmax beta 2.5. When I switched to XAMPP, those problems did not turn up. I can reproduce the behaviour with Internet Explorer 8 and Firefox, but didn't check with Safari.

    So, all I want to say with my nonexisting knowledge about Apache that this might be an server settings issue...

  7. #7
    New Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0


    Default Re: Empty Basket - Can't login

    I just wanted to add that i'm working on a complete fresh install. I just added one category and one product to test. Didn't change anything. Tried with OSCMax 2.0.25 and 2.5 and got the same results.

    Thanks
    Gonzalo

  8. #8
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Empty Basket - Can't login

    Since it happens on both 2.0.25 and 2.5, I would have to say it is a quirk with the MOWES apache or php configuration causing the issue. I am not familiar with that wamp setup. Crank up error reporting to 'debug' to see if you can find any warnings or notices that php and apache are generating in regards to your store.

    That may give you something to go on.

    Your configure.php is showing you are storing sessions in mysql, so that should eliminate sessions issues like this. I would monitor your sessions table while you are adding items to your cart to see if the session is being switched when adding items to the cart (or check your session ID in the url bar of the browser).

    Easier solution: switch from mowes to xampp. done.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  9. #9
    New Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0


    Default Re: Empty Basket - Can't login

    Hi again,
    I switched to XAMPP but i have the same problem. I checked the the session table and the browser address bar.
    On Firefox it creates a new session each time i click on a link or a button, and even two sessions when clicking 'Buy Now' or 'Add to basket'
    and this is the kind of address that is shown:
    http://localhost/catalog/index.php?c...e7fc6762cc03d1

    On Safari, it creates only one session on connecting and the address shown is like this:
    http://localhost/catalog/shopping_cart.php
    No session info shown

    Is this helpful?

    Thanks again

    Gonzalo

  10. #10
    New Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0


    Default Re: Empty Basket - Can't login

    Here's the configure.php with XAMPP

    define('HTTP_SERVER', 'http://localhost');
    define('HTTPS_SERVER', 'http://localhost');
    define('ENABLE_SSL', false);
    define('HTTP_COOKIE_DOMAIN', 'localhost');
    define('HTTPS_COOKIE_DOMAIN', 'localhost');
    define('HTTP_COOKIE_PATH', '/catalog/');
    define('HTTPS_COOKIE_PATH', '/catalog/');
    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', '/Applications/XAMPP/xamppfiles/htdocs/catalog/');
    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', 'admin');
    define('DB_SERVER_PASSWORD', 'admin');
    define('DB_DATABASE', 'vinos_arg_db');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'mysql');

Page 1 of 2 12 LastLast

Similar Threads

  1. urgent help pls - items not adding to basket but can login!
    By rc2user in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 10-17-2009, 06:25 AM
  2. login panel - default login and password doesn't work
    By awd_designer in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 04-24-2009, 08:19 PM
  3. Login causes cart to empty
    By dragonkeeper1973 in forum osCmax v2 Installation issues
    Replies: 4
    Last Post: 05-28-2007, 03:35 AM
  4. Login client obligatoire V1 - Obligatory login customer V1
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-29-2007, 04:01 PM
  5. Well crap... admin login not allowing login-no errors
    By tauras911 in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 07-06-2004, 11:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •