0

When using a checksum token in a receipt email like this:

http://example.org/?page=CiviCRM&q=civicrm/contribute/transact&reset=1&id=IDNUMBER&{contact.checksum}&cid={contact.contact_id}

A critical error is thrown in wc-logs but no specifics are included in the error message:

CRITICAL Smarty error: [in string

Are system emails parsed differently? My plan at the moment is to switch over to CiviRules which work with said tokens.

2
  • 1
    if you remove the link the receipt works? Commented Jul 23, 2021 at 13:36
  • Correct. Using these tokens breaks the system template emails: wordpress-website-example.com/my-account?{contact.checksum}&cid={contact.contact_id}&mid={membership.id}
    – dsmith63
    Commented Jul 24, 2021 at 1:26

1 Answer 1

1

According to the documentation they should look like

WordPress (with Clean URLs): http://example.org/civicrm/contribute/transact?reset=1&id=IDNUMBER&{contact.checksum}&cid={contact.contact_id}

WordPress (without Clean URLs): http://example.org/?civiwp=CiviCRM&q=civicrm/contribute/transact&reset=1&id=IDNUMBER&{contact.checksum}&cid={contact.contact_id}

There may be a good reason yours does not but thought I should record this.

1
  • The critical error doesn't have to do with how the links are structured but with how the tokens are parsed.
    – dsmith63
    Commented Jul 24, 2021 at 1:28

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.