Answers.Body: <p>We had the same issue. The cause of the membership creation issue is with the email template syntax. Look in your system-generated messages and change the receipt templates you are using with, any instance of:</p>
  
  <pre><code>{$line.unit_price|crmMoney:$currency}
  {$line.line_total|crmMoney:$currency}
  {$formValues.total_amount|crmMoney:$currency}
  </code></pre>
  
  <p>Needs to be changed to: </p>
  
  <pre><code>{$line.unit_price|crmMoney}
  {$line.line_total|crmMoney}
  {$formValues.total_amount|crmMoney}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-16T04:49:26.727Z
Answers.Text: Yes! That fixed it. Thank you so much!
Answers.UserDisplayName: zinn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-12T07:58:44.613Z
Answers.LastActivityDate: 2020-02-13T08:40:41.177Z
Answers.LastEditDate: 2020-02-13T08:40:41.177Z
Answers.UserDisplayName: adamdonnan
Body: <p>Running CiviCRM 5.22.0 with WordPress 5.3.2</p>
  
  <p>Whenever a user attempts to create a membership AND record membership payment AND send confirmation and receipt, an <strong>Invalid currency "$"</strong> error is generated. The membership and contribution are recorded in the database, but no e-mail is generated. CiviMail is working in all other contexts.</p>
  
  <p>If a user creates a membership AND records membership payment but does NOT check "Send Confirmation and Receipt?," the transaction completes without error. Editing the membership and selecting "Send Confirmation and Receipt?" will generate the invalid currency error.</p>
  
  <p>I enabled debugging and backtrace and the error displayed with the exception trace is:</p>
  
  <pre><code>CRM_Core_Exception: Invalid currency "$" in &lt;docroot&gt;/wp-content/plugins/civicrm/civicrm/CRM/Core/Smarty/plugins/modifier.crmMoney.php on line 35 
  </code></pre>
  
  <p>Any thoughts?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-10T12:11:01.470Z
Comments.Text: Do you have any custom extension enabled on your site? Also, it would help if you paste the complete backtrace to the post.
Comments.UserDisplayName: jitendra - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-13T20:06:55.007Z
Comments.Text: just a point that when you say "no e-mail is generated. CiviMail is working in all other contexts", it is not civimail which is handling the sending of receipts
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-16T04:46:45.953Z
Comments.Text: I have two extensions enabled: com.iatspayments.civicrm and eu.tttp.group2summary.
Comments.UserDisplayName: zinn
Tags: <wordpress><civicontribute><civimail><error><currency>
Title: Invalid currency "$" when sending confirmation and receipt
ThreadText: # Invalid currency "$" when sending confirmation and receipt
  
  (Asked by: username_0 on 2020-02-08)
  
  Running CiviCRM 5.22.0 with WordPress 5.3.2
  Whenever a user attempts to create a membership AND record membership payment AND send confirmation and receipt, an Invalid currency "$" error is generated. The membership and contribution are recorded in the database, but no e-mail is generated. CiviMail is working in all other contexts.
  If a user creates a membership AND records membership payment but does NOT check "Send Confirmation and Receipt?," the transaction completes without error. Editing the membership and selecting "Send Confirmation and Receipt?" will generate the invalid currency error.
  I enabled debugging and backtrace and the error displayed with the exception trace is:
  CRM_Core_Exception: Invalid currency "$" in /wp-content/plugins/civicrm/civicrm/CRM/Core/Smarty/plugins/modifier.crmMoney.php on line 35 
  
  Any thoughts?
  
  **Tags:** wordpress, civicontribute, civimail, error, currency
  
  > **Comments:**
  > **username_1**: Do you have any custom extension enabled on your site? Also, it would help if you paste the complete backtrace to the post.  
  > **username_2**: just a point that when you say "no e-mail is generated. CiviMail is working in all other contexts", it is not civimail which is handling the sending of receipts  
  > **username_0**: I have two extensions enabled: com.iatspayments.civicrm and eu.tttp.group2summary.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2020-02-12. Score: 4 | Accepted answer
  
  We had the same issue. The cause of the membership creation issue is with the email template syntax. Look in your system-generated messages and change the receipt templates you are using with, any instance of:
  {$line.unit_price|crmMoney:$currency}
  {$line.line_total|crmMoney:$currency}
  {$formValues.total_amount|crmMoney:$currency}
  
  Needs to be changed to: 
  {$line.unit_price|crmMoney}
  {$line.line_total|crmMoney}
  {$formValues.total_amount|crmMoney}
  
  > **Comments:**
  > **username_0**: Yes! That fixed it. Thank you so much!  
  
  ---
  
  