Events Made Easy › Forums › How do I … › "Please enter a correct number of spaces to reserve"
- This topic has 9 replies, 2 voices, and was last updated 10 years, 6 months ago by Franky.
-
AuthorPosts
-
Mon 5 May 2014 at 01:46 #52122AnonymousInactive
Since the update to 1.40, no one can reserve a space at an event. Regardless of what they sign up for, the error returned is “Please enter a correct number of spaces to reserve.”
I’m going to check and see if the problem is the deprecated short codes. Will report back soon.
Mon 5 May 2014 at 01:56 #52123AnonymousInactiveDid the #_SEATS1, #_SEATS2, etc get updated for the new {braces} format? For a multiprice event, I mean?
I changed the shortcodes that were marked as deprecated to the new format, and it has not solved the problem.
Mon 5 May 2014 at 02:22 #52125AnonymousInactiveCan’t figure out any other reason why my settings might be causing this error. In the absence of my ability to fix the problem, I’ve rolled back to 1.34. I have a deactivated version of 1.40 still installed, though, so if there is any testing you would like me to do, let me know.
Mon 5 May 2014 at 10:03 #52129FrankyKeymasterYes, those too (I updated the page for that, I forgot to add those apparently).
If you can reproduce it on a test setup, let me know the details so I can check it myself.
Otherwise: what are the settings for:
– the RSVP form
– the event (the price settings in there)Maybe I overlooked something …
Mon 5 May 2014 at 22:52 #52138AnonymousInactiveThe following work fine in 1.34, but break when I update to 1.40:
Single Event Format:
<span style='font-style:italic'>#_CATEGORIES</span> <p>#j #M #Y - #H:#i</p> <p><a href='#_LOCATIONPAGEURL'><span style='font-weight:bold'>#_LOCATION</span></a><br /> #_ADDRESS<br /> #_TOWN</p> <p><span style='font-weight:bold'>Coordinator:</span><a href='mailto:#_CONTACTEMAIL'>#_CONTACTNAME</a></p> <p>#_NOTES</p> [events_if tag='#_IS_RSVP_ENABLED' value='1'] <h6> Free seats at Table 1:<i>Shades of Ice -- Part II: Exiles of Winter (Tier 1-5)</i>: #_AVAILABLESPACES1 of #_TOTALSPACES1<br /> Free seats at Table 2:<i>The Pallid Plague (Tier 1-7)</i>: #_AVAILABLESPACES2 of #_TOTALSPACES2<br /> Free seats at Table 3:<i>The Stranger Within (Tier 5-9)</i>: #_AVAILABLESPACES3 of #_TOTALSPACES3<br /> Signups at Overflow Table:#_RESERVEDSPACES4<br /> </h6> [eme_bookings id=#_EVENTID template_id=6 template_id_header=9 template_id_footer=10]<br /> [/events_if] [events_if tag='#_IS_RSVP_ENABLED' value='1'] [events_if2 tag='#_IS_LOGGED_IN' value='0'] <div style='border:2px solid; margin: 0 5px 0 5px; padding:5px;'> <h2>Reserve Seats at this Event</h2> To reserve seats at this event, please sign in to the website; you will need to register for this. Your email address is safe with us; we hate spam as much as you, and we promise we won't give, sell, share, or otherwise allow access to people outside the Event Organizers in Ontario. <br /> </div> [/events_if2] [events_if2 tag='#_IS_LOGGED_IN' value='1'] [events_if3 tag='#_DAYS_TILL_START' gt='4'] <div style='border:2px solid; margin: 0 5px 0 5px; padding:5px;'> <h2>Registration Not Yet Open</h2> Registration for this event will be available on the Sunday before it takes place. <br /> </div> [/events_if3] [events_if3 tag='#_DAYS_TILL_START' le='4'] <div style='border:2px solid; margin: 0 0 0 5px; padding:5px;'> <h2>Manage Reservations</h2> #_ADDBOOKINGFORM_IF_NOT_REGISTERED #_REMOVEBOOKINGFORM_IF_REGISTERED <br /> <hr /> <h5>Remember that the name (and nothing else) that you register with will be publicly visible; make sure you're not sharing anything you don't want to.</h5> </div> [/events_if3] [/events_if2] [/events_if]
Registration Form Format:
<table class='eme-rsvp-form'> <tr><th scope='row'>Name*:</th><td>#_NAME</td></tr> <tr><th scope='row'>E-Mail*:</th><td>#_EMAIL</td></tr> <tr><th scope='row'><i>Shades of Ice -- Part II: Exiles of Winter</i>*:</th><td>Book #_SEATS1 seats</td></tr> <tr><th scope='row'><i>The Pallid Plague</i>*:</th><td>Book #_SEATS2 seats</td></tr> <tr><th scope='row'><i>The Stranger Within</i>*:</th><td>Book #_SEATS3 seats</td></tr> <tr><th scope='row'>Overflow Table:</th><td>Book #_SEATS4 seats</td></tr> <tr><th scope='row'>PFS Number:</th><td>#_FIELD01</td></tr> <tr><th scope='row'>Character (Class/Level):</th><td>#_FIELD02</td></tr> <tr><th scope='row'>Comment:</th><td>#_COMMENT</td></tr> </table> <span style='font-size:x-small'>If you do not have a PFS number, you can leave that field blank. Character information is optional and you can change it on the day of the event - it's just to give the GMs a little forewarning on what you might bring to the table.</span><br /> #_SUBMIT[Reserve Seats]
When I updated the Registration form, I tried it like this (changes bolded):
<table class='eme-rsvp-form'> <tr><th scope='row'>Name*:</th><td>#_NAME</td></tr> <tr><th scope='row'>E-Mail*:</th><td>#_EMAIL</td></tr> <tr><th scope='row'><i>Shades of Ice -- Part II: Exiles of Winter</i>*:</th><td>Book #_SEATS1 seats</td></tr> <tr><th scope='row'><i>The Pallid Plague</i>*:</th><td>Book #_SEATS2 seats</td></tr> <tr><th scope='row'><i>The Stranger Within</i>*:</th><td>Book #_SEATS3 seats</td></tr> <tr><th scope='row'>Overflow Table:</th><td>Book #_SEATS4 seats</td></tr> <tr><th scope='row'>PFS Number:</th><td>#_FIELD<strong>{</strong>01<strong>}</strong></td></tr> <tr><th scope='row'>Character (Class/Level):</th><td>#_FIELD<strong>{</strong>02<strong>}</strong></td></tr> <tr><th scope='row'>Comment:</th><td>#_COMMENT</td></tr> </table> <span style='font-size:x-small'>If you do not have a PFS number, you can leave that field blank. Character information is optional and you can change it on the day of the event - it's just to give the GMs a little forewarning on what you might bring to the table.</span><br /> #_SUBMIT<strong>{Reserve Seats}</strong>
Should I be trying #_SEATS{1} then? Or #_SEATS{01}? (I also use the seats shortcodes in the template called in the Single Event Format, but when I change the Registration Form, I’ll be sure to update that code as well, if you think it might help.
Mon 5 May 2014 at 22:56 #52139AnonymousInactiveOops – and forgot the event stuff.
Spaces are 6||6||6||12
Price is 0||0||0||0
Max Number of Spaces to Book is 2
Min number of Spaces to Book is 1Just occurred to me that since most of our users are booking one seat for 1 of the categories, maybe it’s the min number of spaces that’s the problem – is the code now interpreting that as “You must have 1 seat in each category?” Will test that tonight and get back to you.
Mon 5 May 2014 at 23:30 #52140FrankyKeymasterFor sure the you need to use “1”, not “01”. Since the ID is “1” (or whatever) for the custom field, not “01”.
Also yes, if you disabled the deprecated placeholders, SEATS needs to be changed too.
Normally the number of seats is the total if you use multiple seat categories but single max/min, so that should be ok. I’ll test this again also to be sure, but it is a bug if it is not the case.Try this for your registration form:
<table class='eme-rsvp-form'> <tr><th scope='row'>Name*:</th><td>#_NAME</td></tr> <tr><th scope='row'>E-Mail*:</th><td>#_EMAIL</td></tr> <tr><th scope='row'><i>Shades of Ice -- Part II: Exiles of Winter</i>*:</th><td>Book #_SEATS{1} seats</td></tr> <tr><th scope='row'><i>The Pallid Plague</i>*:</th><td>Book #_SEATS{2} seats</td></tr> <tr><th scope='row'><i>The Stranger Within</i>*:</th><td>Book #_SEATS{3} seats</td></tr> <tr><th scope='row'>Overflow Table:</th><td>Book #_SEATS{4} seats</td></tr> <tr><th scope='row'>PFS Number:</th><td>#_FIELD{1}</td></tr> <tr><th scope='row'>Character (Class/Level):</th><td>#_FIELD{2}</td></tr> <tr><th scope='row'>Comment:</th><td>#_COMMENT</td></tr> </table> <span style='font-size:x-small'>If you do not have a PFS number, you can leave that field blank. Character information is optional and you can change it on the day of the event - it's just to give the GMs a little forewarning on what you might bring to the table.</span><br /> #_SUBMIT{Reserve Seats}
Mon 5 May 2014 at 23:43 #52141FrankyKeymasterBtw, there was a undef value in 1.4.1. Nothing bad, but to account for people having php notices on, I released 1.4.2
Tue 6 May 2014 at 01:21 #52143AnonymousInactiveYour suggested registration form code seems to work fine under 1.4.2.
Everything is behaving as expected, but to be clear, the #_RESERVEDSPACESXX and #_AVAILABLESPACESXX don’t have braces, correct?
Tue 6 May 2014 at 10:09 #52145FrankyKeymasterno, also those have braces.
Edit: I updated the deprecated page for those too.
Edit2: the registration form I posted worked fine under 1.4.0 btw 🙂 -
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.