Answers.Body: <p>According to the <a href="https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#checksum" rel="nofollow noreferrer">documentation</a> they should look like</p>
  <blockquote>
  <p>WordPress (with Clean URLs): <a href="http://example.org/civicrm/contribute/transact?reset=1&amp;id=IDNUMBER&amp;%7Bcontact.checksum%7D&amp;cid=%7Bcontact.contact_id%7D" rel="nofollow noreferrer">http://example.org/civicrm/contribute/transact?reset=1&amp;id=IDNUMBER&amp;{contact.checksum}&amp;cid={contact.contact_id}</a></p>
  </blockquote>
  <blockquote>
  <p>WordPress (without Clean URLs): <a href="http://example.org/?civiwp=CiviCRM&amp;q=civicrm/contribute/transact&amp;reset=1&amp;id=IDNUMBER&amp;%7Bcontact.checksum%7D&amp;cid=%7Bcontact.contact_id%7D" rel="nofollow noreferrer">http://example.org/?civiwp=CiviCRM&amp;q=civicrm/contribute/transact&amp;reset=1&amp;id=IDNUMBER&amp;{contact.checksum}&amp;cid={contact.contact_id}</a></p>
  </blockquote>
  <p>There may be a good reason yours does not but thought I should record this.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-24T01:28:27.487Z
Answers.Text: The critical error doesn't have to do with how the links are structured but with how the tokens are parsed.
Answers.UserDisplayName: dsmith63
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-23T19:19:32.487Z
Answers.LastActivityDate: 2021-07-23T19:19:32.487Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>When using a checksum token in a receipt email like this:</p>
  <blockquote>
  <p><a href="http://example.org/?page=CiviCRM&amp;q=civicrm/contribute/transact&amp;reset=1&amp;id=IDNUMBER&amp;%7Bcontact.checksum%7D&amp;cid=%7Bcontact.contact_id%7D" rel="nofollow noreferrer">http://example.org/?page=CiviCRM&amp;q=civicrm/contribute/transact&amp;reset=1&amp;id=IDNUMBER&amp;{contact.checksum}&amp;cid={contact.contact_id}</a></p>
  </blockquote>
  <p>A critical error is thrown in wc-logs but no specifics are included in the error message:</p>
  <blockquote>
  <p>CRITICAL Smarty error: [in string</p>
  </blockquote>
  <p>Are system emails parsed differently? My plan at the moment is to switch over to CiviRules which work with said tokens.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-07-23T13:36:08.157Z
Comments.Text: if you remove the link the receipt works?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-07-24T01:26:32.570Z
Comments.Text: Correct. Using these tokens breaks the system template emails:
  
  https://www.wordpress-website-example.com/my-account/?{contact.checksum}&cid={contact.contact_id}&mid={membership.id}
Comments.UserDisplayName: dsmith63
Tags: <email><tokens><smarty><system-workflow-messages>
Title: Checksum token in system email "Memberships - Receipt (on-line)" causes critical error
ThreadText: # Checksum token in system email "Memberships - Receipt (on-line)" causes critical error
  
  (Asked by: username_0 on 2021-07-23)
  
  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}](http://example.org/?page=CiviCRM&q=civicrm/contribute/transact&reset=1&id=IDNUMBER&%7Bcontact.checksum%7D&cid=%7Bcontact.contact_id%7D)
  
  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.
  
  **Tags:** email, tokens, smarty, system-workflow-messages
  
  > **Comments:**
  > **username_1**: if you remove the link the receipt works?  
  > **username_0**: Correct. Using these tokens breaks the system template emails:  https://www.wordpress-website-example.com/my-account/?{contact.checksum}&cid={contact.contact_id}&mid={membership.id}  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2021-07-23. Score: 1
  
  According to the [documentation](https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#checksum) they should look like
  
  > WordPress (with Clean URLs): [http://example.org/civicrm/contribute/transact?reset=1&id=IDNUMBER&{contact.checksum}&cid={contact.contact\_id}](http://example.org/civicrm/contribute/transact?reset=1&id=IDNUMBER&%7Bcontact.checksum%7D&cid=%7Bcontact.contact_id%7D)
  
  > WordPress (without Clean URLs): [http://example.org/?civiwp=CiviCRM&q=civicrm/contribute/transact&reset=1&id=IDNUMBER&{contact.checksum}&cid={contact.contact\_id}](http://example.org/?civiwp=CiviCRM&q=civicrm/contribute/transact&reset=1&id=IDNUMBER&%7Bcontact.checksum%7D&cid=%7Bcontact.contact_id%7D)
  
  There may be a good reason yours does not but thought I should record this.
  
  > **Comments:**
  > **username_0**: The critical error doesn't have to do with how the links are structured but with how the tokens are parsed.  
  
  ---
  
  