Error when Slot has been taken

Viewing 2 reply threads
  • Author
    Posts
    • #44013
      Richard Wendrock
      Participant

      Good day Stephen,
      Thank you for a very good Plugin!. We love it and use it to facilitate the sign up of 144 slots in our 72 hour Prayer Vigils.
      PROBLEM:
      when multiple people try to reserve the same slot at the same time, an error is displayed when one person reserves a slot and a second person tries to reserve the same slot. They keep trying to reserve the same slot with no luck.
      SOLUTION:
      When an error occurs, query the slot and when it has already been reserved, display “This Slot has been taken. CLICK HERE to exit and refresh the page.”. Make the URL in the CLICK HERE cause the browser to exit and refresh the page.

      Thank you again for a great Plugin. We would be happy to donate toward this solution.

    • #44056
      Stephen Sherrard
      Keymaster

      I will look into this.

      However, I find it very unlikely that multiple people are trying to sign up for the same spot at the exact same time.

      You may want to investigate any caching plugins you have active on your site, and make sure that caching is DISABLED for the pages with the volunteer sheets. I think there may be a chance that the page is getting cached with the info showing spots still open, even though they have been filled already.

      Otherwise, how often does this actually happen? The only way I can see it happening is that a bunch of people somehow have the volunteer page open in a tab for a long time, and walk away or come back to it later and then try to sign up without first reloading/refreshing the page.

      I can certainly add another check and change the error message that is displayed. However any link they click, such as any of the “back” links, already refreshes the page. But, if you have caching enabled on that page, the info it shows may not be up to date, so make sure you don’t have any caching plugins set to cache that page.

    • #44079
      Stephen Sherrard
      Keymaster

      I pushed out a couple of updates, and included a check for this rare situation, along with a more appropriate error message so as to avoid confusion. Also, if they are looking at the task list and someone else signs up and takes the last spot for a task before they click on the signup list, it will now show the new error message (for all spots filled) and not even show the signup form. But, if they do make it to the signup form and someone manages to take the last spot before they submit the signup form, they will get the same all spots filled error message and the form will not show again (they can then click on the link to take them back to the sheet or tasks).

Viewing 2 reply threads
  • You must be logged in to reply to this topic.