Events Made Easy › Forums › How do I … › weird behaviour of multiseat/multiprice event – not sure if it's a bug (1.9.0)
- This topic has 9 replies, 2 voices, and was last updated 7 years, 3 months ago by Franky.
-
AuthorPosts
-
Wed 9 Aug 2017 at 10:16 #56387AnonymousInactive
Sorry, if this is a double/crossposting, but my source topic went away/is invisible.
After an update from previous version to 1.9.0 i made a copy of a multiseat/multiprice event and altered it to my needs.
What i have is:
seats: 25||25||25||25||25||25||40||40||40||40
price: 0||0||0||0||0||0||0||0||0||0
waiting list: 0
minimum seats to book: 0
maximum seats to book: 2Booking form:
<b >#_AVAILABLESPACES freie Plätze!</b> <table class='eme-rsvp-form'> <tr><th colspan="2" style="background-color:#F33F3F; color:#FFFFFF; text-align:center;"><h2>Persönliche Daten</h2></th></tr> <tr><th scope='row'>* FahrerIn VORNAME:<br /><br /><br />FAMILIENNAME:</th><td>#REQ_FIRSTNAME #_NAME</td></tr> <tr><th scope='row'>* E-Mail:</th><td>#_EMAIL</td></tr> <tr><th scope='row'>BeifahrerIn VORNAME:<br /><br />FAMILIENNAME:</th><td>#_FIELD{28}<br />#_FIELD{1}<br />(Bitte VOR- und FAMILIENNAME getrennt in die Felder eintragen)</td></tr> </table> <table class='eme-rsvp-form'> <tr><th colspan="2" style="background-color:#F33F3F; color:#FFFFFF; text-align:center;"><h2>FREITAGSEVENT</h2><b>BITTE DIE ANZAHL DER TEILNEHMENDEN PERSONEN AM GEWÜNSCHTEN EVENT EINGEBEN!!!<br />Bite keine Plätze reservieren, wenn du erst am Freitag Abend anreist!</b></th></tr> <tr><td style="width: 200px;text-align:right;">AKW 1 #_SEATS{1}</td><td>(#_AVAILABLESEATS{1} Plätze frei) <br />Abfahrt 8:10 - Führung 9:00 <br />Anschließend Oldtimer-Museum Koller</td></tr> <tr><td style="width: 200px;text-align:right;">AKW 2 #_SEATS{2}</td><td>(#_AVAILABLESEATS{2} Plätze frei) <br />Abfahrt 8:10 - Führung 9:00 <br />Anschließend Rrrolli-Pop Eggenburg</td></tr> <tr><td style="width: 200px;text-align:right;">AKW 3 #_SEATS{3}</td><td>(#_AVAILABLESEATS{3} Plätze frei) <br />Abfahrt 10:10 - Führung 11:00 <br />Anschließend Karikaturen-Museum</td></tr> <tr><td style="width: 200px;text-align:right;">AKW 4 #_SEATS{4}</td><td>(#_AVAILABLESEATS{4} Plätze frei <br />Abfahrt 9:20 - Tour durch den Dunkelsteiner Wald - Führung 11:00 <br />Anschließend Karikaturen-Museum</td></tr> <tr><td style="width: 200px;text-align:right;">AKW 5 #_SEATS{5}</td><td>(#_AVAILABLESEATS{5} Plätze frei) <br />Abfahrt 8:20 - Rrrolli-Pop Eggenburg <br />AKW Führung 14:00</td></tr> <tr><td style="width: 200px;text-align:right;">AKW 6 #_SEATS{6}</td><td>(#_AVAILABLESEATS{6} Plätze frei) <br />Abfahrt 8:20 - Oldtimer-Museum Koller <br />AKW Führung 14:00</td></tr> <tr><td style="width: 200px;text-align:right;">Geführte Tour 1 #_SEATS{7}</td><td>(#_AVAILABLESEATS{7} Plätze frei)</td></tr> <tr><td style="width: 200px;text-align:right;">Geführte Tour 2 #_SEATS{8}</td><td>(#_AVAILABLESEATS{8} Plätze frei)</td></tr> <tr><td style="width: 200px;text-align:right;">Geführte Tour 3 #_SEATS{9}</td><td>(#_AVAILABLESEATS{9} Plätze frei)</td></tr> <tr><td style="width: 200px;text-align:right;">Geführte Tour 4 #_SEATS{10}</td><td>(#_AVAILABLESEATS{10} Plätze frei)</td></tr> </table> #_SUBMIT
The result ist an error which says (corresponding translated from german) that i do not have enough deatils for (each) #_SEATxx in my registration form.
If i ad another
<tr><td style="width: 200px;text-align:right;">Geführte Tour 5 #_SEATS{11}</td><td>(#_AVAILABLESEATS{11} Plätze frei)</td></tr>
to my form, i get following debug information:
Warning: Invalid argument supplied for foreach() in /home/.../plugins/events-made-easy/eme_UI_helpers.php on line 168
What’s going wrong here?
Thanks in advance for any help,
Werner
Wed 9 Aug 2017 at 10:32 #56388FrankyKeymasterWell, the second one (the php-warning when you add another one) is solved in the next version.
The first one: let me test it too.Wed 9 Aug 2017 at 10:41 #56389FrankyKeymasterI just tested with your version of the booking form, your seats and price-config: seems to work fine here …
Is the error given in the backend when saving the event, or on the RSVP form when trying to make a booking?Wed 9 Aug 2017 at 10:43 #56390FrankyKeymasterAlso, are you sure the mentioned booking form is the one being used for this event?
Wed 9 Aug 2017 at 14:17 #56391AnonymousInactiveI just tested with your version of the booking form, your seats and price-config: seems to work fine here …
Is the error given in the backend when saving the event, or on the RSVP form when trying to make a booking?The error appears on the frontend on trying to load the booking form. The booking form is not shown.
Wed 9 Aug 2017 at 14:21 #56392AnonymousInactiveAlso, are you sure the mentioned booking form is the one being used for this event?
Of course. 😉
If i make changes like stated above, the booking form is shown with the debug error/notice.
I even tried to give 11 Seats and Prices, to see if it depends on the amount of differents seats (10). But nothing changed.
If amount of seats and prices doesn’t match, i get an error on the backend and the event will not be saved.
And, as said, the source multiseat/multiprice event, where i made a copy from, is still working.
Wed 9 Aug 2017 at 15:34 #56393FrankyKeymasterAnd how do you attempt to show the rsvp form in the frontend?
Wed 9 Aug 2017 at 15:37 #56394FrankyKeymasterAlso, if possible: a small demo setup where you could reproduce the issue would be nice (with some admin access for me to check later on then)
Wed 9 Aug 2017 at 16:20 #56396AnonymousInactiveNeither the standard shortcode #_ADDBOOKINGFORM nor [eme_add_booking_form id=81] within an article or page will change the behaviour.
What i tried yet:
– Made a copy of the same event as before (12 seats/prices)
– Tried the copy without changes -> works!
– Removed unwanted/unneded options from the booking form
– Reduced seats/prices from 12 to 10 (also in the booking form) -> not working 🙁 ArrrghWanna laugh?
I made a new copy from the event again and removed unwanted/unneeded items line by line from my booking form. As soon as i removed
<table class='eme-rsvp-form'> #_CAPTCHAHTML{<tr><th scope='row'>* Bitte den angezeigten Sicherheitscode eingeben:</th><td>#_CAPTCHA</td></tr>} </table>
The form did not work anymore and shows the error with “bla #_SEATSxx bla”. But “#_CAPTCHAHATML” was the missing field!
Shame on me, it’s my failure. The Captcha-option is activated and i removed it from the booking form. 🙁
Suggestion: On checking required fields the error message could be mor clear.
Sorry for my time-steeling thread and thanks for your patience.
Rgds,
Werner.
Wed 9 Aug 2017 at 16:38 #56397FrankyKeymasterI don’t laugh 🙂
I’m happy you found the problem. I’ll add a hint to check for #_CAPTCHA too in the frontend if it is activated. -
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.