Support

Home Forums Event Espresso Premium View Cart does not work if not logged into the site

View Cart does not work if not logged into the site

Posted: November 22, 2013 at 2:04 pm

Viewing 6 reply threads


Emily Ruff

November 22, 2013 at 2:04 pm

Hi – we are setting up the plugin and noticed that if we are not logged into the site, when we click to “View Cart”, we get a message 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.”

If we are logged in (as admins), we can view the cart and check out just fine.

Here is the link – http://holisticliving.wpengine.com/events/event-listing/

We host with WPEngine, so by default their URL (http://holisticliving.wpengine.com/) is SSL-enabled (so you can also go to https://holisticliving.wpengine.com/), but even if you use the non-SSL link, the “View Cart” still does not work.

I ran the System Status and the path is writable:

Espresso Logging Log directory is writable.
Session save path /var/lib/php5 is writable.
Session name PHPSESSID

Nothing is in the server error logs.

Not sure what else to check? Thanks for your help.
We are not using SSL.


Josh

  • Support Staff

November 22, 2013 at 3:02 pm

Is the admin set to load as https? The reason I ask is because the Multi Event Registration cart functionality loads up wp-admin/admin-ajax.php. So it may only be working if you’re logged in.


Emily Ruff

November 22, 2013 at 3:33 pm

No, the admin is not set to use “https” (and we’re using the “http” link). The wp-config.php file has:

define(‘WPE_FORCE_SSL_LOGIN’,false);

define(‘FORCE_SSL_LOGIN’,false);


Josh

  • Support Staff

November 22, 2013 at 3:46 pm

The other thing to check is with WPEngine. If this isn’t on the staging environment there could be a caching issue. This has come up before in the past:

https://eventespresso.com/topic/add-to-cart-requires-logged-in-user/#post-23750

You can ask them to set it up to not cache the pages that have the add to cart links on them.


Emily Ruff

November 22, 2013 at 3:57 pm

Thanks! I will contact WPEngine. Sounds like caching is the issue.


Dean

November 25, 2013 at 12:11 am

Please let us know how you get on.


Emily Ruff

November 25, 2013 at 9:45 am

I asked WPEngine to exclude the events and cart pages from their caching, so now it’s working just fine. Thanks!

Viewing 6 reply threads

The support post ‘View Cart does not work if not logged into the site’ 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