Posted: January 14, 2014 at 1:33 pm
|
When I was testing my event registration stuff, I clicked ‘add to cart’, when I clicked ‘view cart’ it took me to a page that says: “It looks like you are attempting to refresh a page after completing your registration or your cart is empty. Please go to the events page and try again. |
Hi Alex, This can be caused by many things. Are you using the [ESPRESSO_CART] shortcode are for the ‘Add to cart’ link or the link through the event list? If the shortcode can you paste it here please. |
|
|
To be honest, I didn’t do anything beyond installing the multiple events add-on because I thought that’s all that was needed. |
Hi Alex, I’ve just had a look at the site linked to your license. It looks like non of the events are open for registration. For example the ‘Fun with Fairy Tales’ event is set for Registration to begin on the 29th of Jan (which is after the event) Most events will want the Registration_Start date to be from at least the day you create the event (so registrations starts then) and Registration_End to be on the same day as either the Event Start or Event End date. (depending on whether or not you want to continue registration after the event has started) Closed events do not work with the ‘Add to cart’ link so you’ll need to open these events up first. Does that make sense? |
|
Hi there, In most cases that’s all that’s needed. Can you post a link to the event list page so we can investigate? |
|
|
I changed the date on the first two events on the page listing them, there are two that are able to be added to the cart and the error still appears. |
Hi Alex, As Josh mentioned can you link us to the event list page please? The page you can see the ‘Add to cart’ link on. |
|
|
|
Hi Alex, It may be me, but I cant see the Add to cart link on any of those events? Is the Multi Event Registration Add-on (MER) currently active? |
|
|
Wow, weird it will only display add to cart if I’m log in to the dashboard. |
|
Cache issue, you should be able to see the view cart option now. |
Sounds like there might be some aggressive caching set up. Usually the admin pages aren’t served up as cached files, so that may explain why you’re not seeing the add to cart links if you’re not logged in. We recommend disabling caching for all pages that handle event registration to avoid issues like this one. |
|
|
I’m using quick cache, or at least the network is (this is part of a multisite) and I thought I put in the correct exclusion and I’m still having the same problem with the cart. |
|
So I’m still having trouble with the cart viewing function event after blocking the cache. The error still pops up if I try to view the cart. |
|
Hi Alex, Have you cleared the site cache after white listing the Event Espresso pages? |
|
Dean, |
Hi Alex, Officially Event Espresso does not support Multi-site. Some users have reported success when using it but only when minimal modifications are needed. Currently this still appears to be a caching issue, have all event espresso pages been set not to cache now? |
|
|
Doesn’t look like it’s cache anymore. If I attempt to clear it says that there are 0 cache files that were cleared. |
|
The most I have to do with modifying it is having multiple event registration. |
|
It looks like it’s not holding onto any of the session data. It could be caused by a conflict with another plugin. The easiest way to debug it is to put a debugging line in like: var_dump($_SESSION); |
|
I can debug this in espresso.php correct? |
|
Yes. Pretty much anywhere that runs on every page load. if (!defined('DOING_AJAX')) { var_dump($_SESSION); } Otherwise, it’ll keep the add-to-cart from working. |
|
Also, take a look in the admin under EE->System Status. Scroll down to PHP Sessions and see if the session save path is writable. |
|
Ah, yes, it says that – /var/lib/php/session does not exist I’ll contact my IT guys to get that set up. |
|
ACtually it does exist if I look at it through FTP. I have I know the whole site is in an ngnix directory though. |
|
You might want to check to make sure it is readable and writeable by ngnix. |
|
Thanks Sidney, that was the main issue so you can mark this as resolved. This is an excellent support team and I appreciate the service! |
The support post ‘View Cart Error’ 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.