Booking fails with 500 due missing template
Hi,
many of my appointment pages do not work. When I try to book an appointment, it fails with 500 and the following log entry:
Error appointments Can't find template dur: 2, 23
Sometimes they work first and stop working after changing some settings, it does however not depend on a specific setting. Don’t know what to do, recreating does not help.
It looks like the error happens when the time-slot requested by the attendee is being verified against the weekly template.
Can you send me ( sergey [at] srgdev.com ) a settings dump ( page settings > Advanced > Debugging > Settings Dump ) for one of the pages that have appointments with multiple durations.
If there are no pages with multiple durations the a page with most time-slots. Thanks.
Thank you for sending the Settings Dump but I can not replicate this bug. However, I have added the Log template durations debugging mode.
When the Log template durations mode is activated it will log something like the testing image below. @hrdinka if you can trigger the bug when the Log template durations is active can you please send me the template debug log entries.
Here it is:
This is from the minimal test case (no changes to default settings, just selected a calendar + added one timeslot),
Thanks a lot for your support @SergeyMosin
Bug confirmed. This happens when there are more than 10 pages and pages with ids more that 9 (ex. p11) use Template Mode. The fix will be included in the next release.
Thanks a lot for your time and great software Sergey :pray:
fixed v2.1.6