Occasionally our staff users will screw up the tokens in mail; things like {event title} instead of {event.title}

When this happens in a scheduled reminder it causes the reminder to not go out and also seems to cause some other reminders to not go out. Some still go out, but it seems like a bunch don't... I haven't worked that one out yet. They are also really hard to track down. We are alerted that there was an error on the status page, what the failed token is but not what template caused the error. The only way I've figured out how to find them is to go through the civicrm_action_schedule table to find the bad token.

My question though is whether there is a way of having the smarty template process fail without stopping the email from going out. That is, I'd rather have the mail go out with "{event title}" than not go out at all. I'm not sure if this is really a Civi thing or. smarty thing though.

1 Answer 1


This behaviour is a choice and could be changed. See the error handler here. If you want to propose a change of this behaviour (which I think would be a good idea, we should log a warning, but not fail completely), you can do that at https://lab.civicrm.org/dev/core/-/issues/new

  • Great thanks! I think it would definitely be a good option if there was a UI option for this. Some cases I'm sure that a full failure is preferred, but it doesn't at all make sense for my use case.
    – zip
    Commented Oct 2, 2023 at 12:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.