Appointments icon indicating copy to clipboard operation
Appointments copied to clipboard

Booking fails with 500 due missing template

Open hrdinka opened this issue 1 year ago • 6 comments

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.

hrdinka avatar Jun 28 '24 09:06 hrdinka

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.

SergeyMosin avatar Jun 28 '24 10:06 SergeyMosin

If there are no pages with multiple durations the a page with most time-slots. Thanks.

SergeyMosin avatar Jun 28 '24 11:06 SergeyMosin

Thank you for sending the Settings Dump but I can not replicate this bug. However, I have added the Log template durations debugging mode.

image

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.

image

SergeyMosin avatar Jul 02 '24 01:07 SergeyMosin

Here it is:

image

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

hrdinka avatar Jul 02 '24 07:07 hrdinka

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.

SergeyMosin avatar Jul 02 '24 13:07 SergeyMosin

Thanks a lot for your time and great software Sergey :pray:

hrdinka avatar Jul 02 '24 13:07 hrdinka

fixed v2.1.6

SergeyMosin avatar Jul 28 '24 20:07 SergeyMosin