Support

Home Forums Event Espresso Premium Event Registration Ajax not working unless logged in

Event Registration Ajax not working unless logged in

Posted: January 9, 2014 at 1:33 pm


Robin Nicholl

January 9, 2014 at 1:33 pm

Only just noticed this, so can’t say for certain that it has only just started happening… but when I click ‘Add to cart’ from the Event Registration page the Ajax loader icon just keeps spinning for ever and nothing happens. If I refresh the page, the item has been added to the cart and I can click ‘View Cart’ When I’m in the cart, though, the same thing happens with the ‘Total’ indicator – an endlessly spinning loading icon. NOTE: this DOESN’T happen if I’m logged in as admin, but does with other logins or not logged in at all.

I’m using WP 3.8 and EE 3.1.36.1.P

  • This topic was modified 5 years, 11 months ago by  Robin Nicholl.


Josh

  • Support Staff

January 9, 2014 at 1:45 pm

Hi Robin,

Is your site hosted on WPEngine? If so this is a caching issue that can be resolved by contacting WPEngine support and let them know which pages you need to be served dynamically (which in this case are any of the pages where Event Espresso uses AJAX).

If it’s not hosted on WPEngine, it could still be a caching issue if you have caching plugins installed.

Or another possibility is the WordPress Ajax handler file has been restricted to non-admins via a security plugin or a custom .htaccess rule. If this is the case, then here’s a guide that shows how to whitelist the Ajax handler:

http://kuttler.eu/post/htaccess-protect-wordpress-admin/


Robin Nicholl

January 10, 2014 at 4:30 am

Hi Josh

I don’t think it’s that. I have 2 instances running, one locally on a Mac (OSX 10.8.5, MAMP Pro, VirtualHostX) and one on a remote Windows Server 2008 R2 (IIS7.5 etc), and both display the same problem: Event Espresso Ajax *only* works when logged in as admin, but I haven’t added any plugins or made any changes relating to caching.


Robin Nicholl

January 10, 2014 at 4:32 am

NB: I am using various plugins, but none which, to my knowledge at least, affect caching.


Robin Nicholl

January 10, 2014 at 5:37 am

Hi Josh

I’ve just manually updated to the latest version of Event Espresso and the problem has gone away!

Thanks.

The support post ‘Event Registration Ajax not working unless logged in’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Robin Nicholl 5 years, 11 months ago ago

Topic Tags

Tagged: ,

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!