Skip to content

schedule.tpl fix for Smarty Compiler: Syntax error#1440

Closed
amikoreh wants to merge 3 commits into
LibreBooking:developfrom
amikoreh:develop
Closed

schedule.tpl fix for Smarty Compiler: Syntax error#1440
amikoreh wants to merge 3 commits into
LibreBooking:developfrom
amikoreh:develop

Conversation

@amikoreh

@amikoreh amikoreh commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Cause: Smarty cannot parse the PHP enum expression ScheduleStyle::Standard->value (the -> inside {if ...}), so the template failed to compile.
Fix applied: Replaced the enum expressions with their integer values (0..3) in [schedule.tpl:100-140]

amikoreh and others added 3 commits August 15, 2025 07:38
Error: TypeError: Cannot access offset of type array on array

Ref the 'key' for each constant to look up the configured field
…value (the -> inside {if ...}), so the template failed to compile.
@JohnVillalovos

Copy link
Copy Markdown
Collaborator

I don't believe this is needed. You should just need to update your version of Smarty.

@JohnVillalovos

Copy link
Copy Markdown
Collaborator

@amikoreh

amikoreh commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

@JohnVillalovos You are correct. Smarty update fixed it. Thanks for the super quick response and all your work on LibreBooking!

@JohnVillalovos

Copy link
Copy Markdown
Collaborator

@JohnVillalovos You are correct. Smarty update fixed it. Thanks for the super quick response and all your work on LibreBooking!

You're welcome. Glad to hear it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants