• For other reasons I changed my session.save_path in a .user.ini file.

    When I add items to my cart (in my case through php) the cart show the items fine but when purchasing (checking out) I get the message “No items in cart”. Deleting the .user.ini solves this but that introduces another error with another plugin.

    How do I change the session.save_path without the situation that I get the “empty cart” message on checkout.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @basdebruin

    Thanks for your patience.

    Have you checked the new session path is working properly? Have you checked any other functionality which uses the session and does it storing properly?

    Thread Starter basdebruin

    (@basdebruin)

    Hi @pratik-jain

    Yes, other plugins pick up the session.save_path fine and I also see EDD outting session info there. Keep getting the emptpy basket message.

    I was able to solve (bypass) this by setting constant:
    define(‘EDD_USE_PHP_SESSIONS’, false );

    Hi @basdebruin

    Yes, EDD_USE_PHP_SESSIONS set to false will solve your problem. It use Cookie instead of PHP session.

    I have checked the code and found that It uses default PHP session function so it will work same as other.

    Is there any output throw (Header Sent) on your site? May be this can be reason of this also.

    Can you please provide me your web page URL so I can take a look?

    Also you can check your site with wp_debug mode true in wp-config.php file.

    Thread Starter basdebruin

    (@basdebruin)

    Hi @pratik-jain

    Don’t understand exactly what you mean by output throw. It displays the message “You basket is empty” on purchase. There are no entries in the error log file.

    The page is https://excellent-team.nl/solutions/ You need to create an account before you can use the “Add to cart”. In this link https://www.loom.com/share/904d363dca93413384a70c9033c112ea you can see what happens (loom video).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘changing session.save_path end up in empty cart’ is closed to new replies.