mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-30 21:37:47 -05:00
Breaking errors when using some custom templates #5743
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nevaran on GitHub (Nov 27, 2024).
Vaultwarden Support String
After adding custom templates/email files with environment, the email and organization invitations cease to function. Tested most of the /email .hbs files and for now I found just the send_org_invite.hbs and send_org_invite.html.hbs to be breaking functionality in the /email folder. It would seem that it just simply cannot find a org_id variable from looking at the logs.
Adding the /admin templates breaks the admin panel as well, though I have not tested that one any further than "buttons does not even react and the web GUI is wrong colors".
Vaultwarden Build Version
v1.32.5
Deployment method
Official Container Image
Custom deployment method
Portainer compose with pre-made directories
Reverse Proxy
NPM v2.12.1
Host/Server Operating System
Linux
Operating System Version
Ubuntu 24.04 LTS
Clients
Web Vault, Browser Extension, Desktop, Android
Client Version
latest
Steps To Reproduce
Expected Result
Send invites to join vault and/or organization
Actual Result
Cannot send invite; Handlebars error.

Container logs:

Logs
Screenshots or Videos
Additional Context
Without the template file the invite is send and the link's org_id is just _ , attempting to modify the .hbs file with just that as well instead of variable fetching results in the same error.