Posted: August 16, 2013 at 4:02 pm
|
I am trying for 2 days now to figure out why the links to add an event to cart stopped working, but I cannot solve it. I tried: … but no luck. Clicking on add to cart link show as it does work, but when I go to the cart is empty! Could someone please check this url (http://www.technotomy.com/training/course-registration/) in case you can think of something? There is one more strange thing… although I have captcha enabled, it does not show up. Can that be related or is that a second problem? |
|
Just to add that I have the latest version of EE (v3.1.34.1.P) and it’s plugins and same for WP (v3.6). |
Hi there, The captcha is working, but you will need to log out of the site before it will show up. The cart is behaving like it’s not able to save sessions. I’ve seen this happen before where the session save path directive was changed on the server side of things (or vice versa, the server was migrated and the path wasn’t update), or the file permissions were changed for the directory where the sessions get saved: http://www.php.net/manual/en/session.configuration.php#ini.session.save-path |
|
|
Hi Josh, Thanks for the prompt reply! I checked /var/lib/php5 and I can see a session file created when I try to add to the cart: So the system can access the directory and save the session information I presume. Could it be something else? |
|
Actually… there are two session files created: 1. sess_hs9d5ouhv1pvnsmv5nsqu1rq05 2. sess_7e7baeda736913b48cd8d31e3d32e253 |
That narrows things down a bit. Do the session variables stay when you refresh the page after you add an event to the cart? The reason I ask is I’m seeing the “View Cart” link go back to “Add to Cart” after the page refreshes. It almost seems like there’s some code running when the page loads that’s clearing the session. |
|
|
When I add an item to the cart both files are created with the data (as above)… when I refresh the page one of the files gets created (the second one, as in the example above)… but the first file (the one created when clicking on the add to cart link) remains there unchanged. Everything used to work a few days ago 🙁 |
Can you recall, or check into, anything has changed on the server around the time this started not working? Examples are: server upgrades, new plugins installed, updated plugins, changes to the page that has the [ESPRESSO_EVENTS] shortcode on it? |
|
The support post ‘Add to cart not working’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.