Posted: March 23, 2016 at 12:52 pm
|
Hi there, I’ve set up a page with the [ESPRESSO_MY_EVENTS] shortcode. I noticed that when I have multiple events listed and I click on “Edit Registration,” only the most recently registered for event seems to work. The others return a page that has the following error notice: An error has occurred: I did do some customization to the templates however, I’ve reverted back to the original template files and I’m getting the same effect. |
That usually happens when you open up a registrations details (which starts a session) then click back without closing the sessions (finalizing the registration again) and open up another registration. EE picks up that a session is in progress but the current details don’t math the session and throws that error. Try visiting the /registration-cancelled/ page and retesting one of the other links. Does it work then? |
|
|
Ahh yes it works exactly as you stated. So, I think that my users may hit the back button or the link in the menu that returns them back to the “My Events” page and come across this error. Is there anything I can do to force the session to close out? |
One possible solution is to include include the [ESPRESSO_CANCELLED] shortcode within the same page you are loading the [ESPRESSO_MY_EVENTS] shortcode, so when that page loads the session clears. However that won’t work if your users use the back button (its served from the browsers cache not the server) but you could also add a note to refresh my events page if they see the error. |
|
|
Thanks I added the [ESPRESSO_CANCELLED] shortcode to handle when the user clicks the page link. Do you know if there’s a way to force a particular page to refresh? Maybe if I set this one page to always refresh its browser cache, then they wouldn’t see the error when hitting the back button. Just an idea. I am researching this… if I can get it to work, I’ll post my code. Thanks |
Its not something we currently support, but you can take a look here: http://stackoverflow.com/questions/20899274/how-to-refresh-page-on-back-button-click Which basically allows you to force a page to fresh when the users uses the back button, that should then work as expected. |
|
|
You guys are the best |
The support post ‘[ESPRESSO_MY_EVENTS] – Edit Registration link returns error notice – EE4’ 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.