303 redirect when user clicks Register button on event detail page

  • Michael Pavey
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #118690 by Michael Pavey
For all my other events, this works fine. But for one event, when the user visits the event details page (via the URL /forums/gilf/register-now, configured via a menu item) and clicks Register (for individual registration, going to /forums/gilf/register-now/gilf12/individual-registration, or for group registration, going to /forums/gilf/register-now/gilf12/group-registration), they receive a 303 redirect to the site's homepage (/). Why is this (or, how can I debug it)?

Thanks

Michael

Please Log in or Create an account to join the conversation.

  • Michael Pavey
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #118691 by Michael Pavey
One update: after turning on Debug Mode and then inspecting the HTML returned by the homepage request (after the redirect), I see this:
Code:
<div id="system-message-container"> <dl id="system-message"> <dt class="error">Error</dt> <dd class="error message"> <ul> <li>This event does not exist or we are no longer accept registration for this event.</li> </ul> </dd> </dl> </div>

Of course, the event does exist and the cut-off date is set to 2019-03-29.

Please Log in or Create an account to join the conversation.

  • Michael Pavey
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #118698 by Michael Pavey
OK, I figured out what's going on here, and it seems like a bug. The alias configured for my event was unique, so I would have expected the system to show my event registration page as normal. However, in addition to storing the current alias of each event (in the prefix_eb_events table), the software appears to keep a separate table (prefix_eb_urls) linking aliases (or more specifically, MD5 hashes of URI substrings) with Joomla-internal URLs, and to use this information in preference to the current aliases. And moreover this table appears not to be updated when you update an alias. So, sure enough, I found an entry in the table that was linking the gilf12 alias to the wrong event.

Changing the alias solved the problem for me. But it took almost a day to figure out what was going on…and this seems like a bug to me. Would be great if it could be fixed.

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #118706 by Tuan Pham Ngoc
Hi Michael

From what I see, there are two events with same alias for some reasons and it causes the error

If you want to prevent that error, please go to Events Booking -> Configuration, look at SEF router settings tab, set Insert Event ID parameter to Yes. In that case, the system will insert ID of event to the link and it will prevent the error

The other option is using Tools -> Purge URLs to remove the old urls and the system will re-generate it again

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc