Support

Home Forums Community Forum EE3 "register for event link" redirecting to index of events rather than cart

EE3 "register for event link" redirecting to index of events rather than cart

Posted: October 31, 2018 at 1:41 pm


Dan Stover

October 31, 2018 at 1:41 pm

When viewing an event created through EE3, I click on the “Click Here to Register” button. When I do this, I am expecting to be brought to the register/cart page. I sometimes am being brought to the correct page, but am often redirected to an index page of all the events on the site. This is happening on multiple events. I am including links to example pages below that this is occurring on:

Event page: https://www.mtaloy.edu/event-registration/?ee=3329
INCORRECT redirected page: https://www.mtaloy.edu/event-registration/?event_id=3329
CORRECT page: https://www.mtaloy.edu/event-registration/?regevent_action=show_shopping_cart

The site is live and selling tickets and they are receiving complaints that this is not working- we need to fix ASAP. Thanks!


Josh

  • Support Staff

October 31, 2018 at 2:18 pm

Hi Dan,

I checked your site and it’s running a very old version of Event Espresso 3, (Version 3.1.35.1) and the newer versions of Event Espresso 3 have compatibility fixes for the newer versions of WordPress. The first thing to do will be to update to the current version of Event Espresso 3.

Also, there are a number of JavaScript errors on the page. If updating to the current version of EE3 alone doesn’t fix all the issues, you could try temporarily deactivating some of the other plugins that add scripts to that page (the Add This plugin is one of them) to see it that helps.


Dan Stover

October 31, 2018 at 2:22 pm

We are currently working on a new test site with EE4 and everything updated, but we need to get a fix in place now. We noticed that if we are able to somehow not be redirected and are able to successfully get to the cart (which seems very sporadic) the link to “register” changes to “view cart” and then we are never redirected again. Could there be a reason for this? Is there a way to force the cart viewing?
This is the shortcode we are using: [ESPRESSO_CART_LINK anchor=”Click here to register” direct_to_cart=1 moving_to_cart=”Redirecting to cart…”]


Josh

  • Support Staff

October 31, 2018 at 2:30 pm

The redirection part is what’s broken. When you have a “view cart” link, there’s no redirection, so it will work fine. You can update to the current version of EE3 now, as well as check for plugin conflicts. The EE4 update is fine for another day.


Josh

  • Support Staff

October 31, 2018 at 2:39 pm

The current version of EE3 is also available to download from GitHub:

https://github.com/eventespresso/event-espresso-legacy/archive/master.zip


Josh

  • Support Staff

October 31, 2018 at 2:41 pm

Along with the above, you could also change the shortcode to be only:

[ESPRESSO_CART_LINK], which will remove the redirection and might help if the JavaScript errors on the page don’t interfere with the AJAX request.


Dan Stover

October 31, 2018 at 2:47 pm

We tried to edit it to that shortcode and it is still not working: https://www.mtaloy.edu/event-registration/?ee=3329


Josh

  • Support Staff

November 1, 2018 at 7:00 am

That’s because the JavaScript errors on the page interfere with the AJAX request. You will need to clear those errors (likely due to some plugins like the AddThis plugin throwing a JavaScript error).

The other plugin that’s throwing a JS error is the Event Espresso List Displayer plugin (developed by a third party). You can rule out whether that’s contributing to the issue as well.

Also, please understand that it’s imperative to update to the current version of EE3. There were a number of compatibility fixes related to the cart functions (and others) that have been included in the updates over the past few years. WordPress and PHP versions have quite likely moved forward on your site, but the Event Espresso version there is very old and isn’t compatible with newer WordPress and PHP versions.

The support post ‘EE3 "register for event link" redirecting to index of events rather than cart’ 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.

Community-based support forum for Event Espresso.
If you would like official support from the Event Espresso staff, then please purchase a support license today to post in our premium support forums.

Status: closed

Updated by  Josh 2 weeks, 4 days ago ago

Topic Tags

Notifications

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