Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When logged out on my site, when the anonymous user clicks "add to cart" it takes them to the shopping cart but says, "There are no products in your shopping cart." Things are working fine for any logged in user.
I tried turning caching off, to no effect.
Please let me know if I can provide any code or settings.... If you even just have some theories of what I should try to fix this, please let me know -- it's driving me crazy!
Comments
Comment #1
littlealy CreditAttribution: littlealy commentedI feel it might be useful to mention that I peeked at the HTML of the form being generated for an anonymous user vs. a logged in user, and it was identical:
non functioning code when "Anonymous User":
functioning code when logged in:
Wahhh. =(
Comment #2
littlealy CreditAttribution: littlealy commentedHi --
One of my web developer friends managed to spot the problem. Apparently, the DB was corrupted in such a way that anonymous users were no longer set to UID 0 -- probably happened when I moved from shared to private hosting recently.
Comment #3
syndicateStorm CreditAttribution: syndicateStorm commentedGlad to hear you were able to resolve this. Let me know if you have any other problems. Cheers!