Support

Home Forums Event Espresso Premium View Cart Error

View Cart Error

Posted: January 14, 2014 at 1:33 pm

Viewing 26 reply threads


Alex

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.
“. I’m not sure what is causing the error.


Tony

  • Support Staff

January 14, 2014 at 1:40 pm

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.


Alex

January 14, 2014 at 1:50 pm

To be honest, I didn’t do anything beyond installing the multiple events add-on because I thought that’s all that was needed.


Tony

  • Support Staff

January 14, 2014 at 2:03 pm

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?


Josh

  • Support Staff

January 14, 2014 at 2:07 pm

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?


Alex

January 14, 2014 at 2:15 pm

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.


Tony

  • Support Staff

January 14, 2014 at 2:34 pm

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.


Alex

January 14, 2014 at 2:35 pm

http://www.maryville.edu/robot/course-list/


Tony

  • Support Staff

January 14, 2014 at 3:04 pm

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?


Alex

January 14, 2014 at 3:06 pm

Wow, weird it will only display add to cart if I’m log in to the dashboard.


Alex

January 14, 2014 at 3:24 pm

Cache issue, you should be able to see the view cart option now.


Josh

  • Support Staff

January 14, 2014 at 3:26 pm

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.


Alex

January 14, 2014 at 3:37 pm

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.


Alex

January 14, 2014 at 4:07 pm

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.


Dean

January 15, 2014 at 12:28 am

Hi Alex,

Have you cleared the site cache after white listing the Event Espresso pages?


Alex

January 15, 2014 at 9:05 am

Dean,
Yeah, I did several times actually.


Tony

  • Support Staff

January 15, 2014 at 12:08 pm

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?


Alex

January 15, 2014 at 12:23 pm

Doesn’t look like it’s cache anymore. If I attempt to clear it says that there are 0 cache files that were cleared.


Alex

January 15, 2014 at 12:24 pm

The most I have to do with modifying it is having multiple event registration.


Sidney Harrell

January 15, 2014 at 2:35 pm

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);


Alex

January 15, 2014 at 4:12 pm

I can debug this in espresso.php correct?


Sidney Harrell

January 15, 2014 at 4:53 pm

Yes. Pretty much anywhere that runs on every page load.
Now that I think about it, you’re going to have to wrap the var_dump in a conditional so that it does not run when the ajax request is made.

if (!defined('DOING_AJAX')) {
  var_dump($_SESSION);
}

Otherwise, it’ll keep the add-to-cart from working.


Sidney Harrell

January 15, 2014 at 4:57 pm

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.


Alex

January 16, 2014 at 8:19 am

Ah, yes, it says that – /var/lib/php/session does not exist

I’ll contact my IT guys to get that set up.


Alex

January 16, 2014 at 8:22 am

ACtually it does exist if I look at it through FTP. I have I know the whole site is in an ngnix directory though.


Sidney Harrell

January 16, 2014 at 10:10 am

You might want to check to make sure it is readable and writeable by ngnix.


Alex

January 17, 2014 at 10:49 am

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!

Viewing 26 reply threads

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.

Event Espresso