Answers.Body: <p>You can't use Smarty and Mosaico together.  Tim Otten <a href="https://github.com/veda-consulting/uk.co.vedaconsulting.mosaico/pull/252#issuecomment-392979047" rel="nofollow noreferrer">presents a long answer why</a> if you want details!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-27T19:22:43.780Z
Answers.Text: OK, good to know.  Should there be a warning in system status?    Painful error to find after the fact.
Answers.UserDisplayName: Dave T
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-27T22:42:47.893Z
Answers.Text: Not a bad idea - but to be clear - are you using Smarty logic in Mosaico? Or do you have curly brackets that make Mosaico *think* you're using Smarty? Since Mosaico users can still send traditional CiviMails, it'd be good to make sure they could use Smarty when doing so.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-28T23:05:26.367Z
Answers.Text: No Smarty logic to my knowledge in Mosaico maling template - only whatever Mosaico would use in its templates.  Agree that it would be too bad to have to disable Smarty for all uses even if not Mosaico.
Answers.UserDisplayName: Dave T
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-28T23:14:23.777Z
Answers.Text: Hmm - @DaveT are you using the latest version of Mosaico 2.x?  I would have assumed that Flexmailer would have prevented these errors.  Do you have "View on Website" in use?  Is it possible that the Smarty errors appear when someone views a Mosaico mailing on the website?  I believe there's an open issue for that.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-03T12:56:41.413Z
Answers.Text: Hmmm, Hmmm - just updated to most recent (stable) version of Mosaico - 2.0.1556289017 - Initial (very limited) testing does not show smarty errors.  Perhaps fixed?
Answers.UserDisplayName: Dave T
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-26T18:41:19.340Z
Answers.LastActivityDate: 2019-02-26T18:41:19.340Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>I found this: <a href="https://github.com/mjwconsult/civicrm-mosaico_smarty" rel="nofollow noreferrer">https://github.com/mjwconsult/civicrm-mosaico_smarty</a>
  I need to upgrade my system to try it out, let me know if it works.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-16T18:05:13.433Z
Answers.LastActivityDate: 2020-12-16T18:05:13.433Z
Answers.UserDisplayName: Zachary
Body: <p>Seeing a lot of smarty errors in Drupal log file for mailings using Mosaico template - looks like an error for every message sent so thousands filling log files.</p>
  
  <p>Nothing obvious in Mosaico template but thinking it must be a conflict with use of { } in each case.  Smarty logic in the template that I can see.</p>
  
  <p>should smarty be turned off in civicrm.settings.php if using Mosaico?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-14T08:31:39.523Z
Comments.Text: What is the version of Mosaico and flexmailer ext ? Are they on latest?
Comments.UserDisplayName: jitendra - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-14T20:30:24.867Z
Comments.Text: yes, I believe these are current - flexmailer 0.2-alpha5 and mosaico 2.0-beta4.1528762072
Comments.UserDisplayName: Dave T
Tags: <smarty><mosaico>
Title: Smarty and Mosaico - compatibility?
ThreadText: # Smarty and Mosaico - compatibility?
  
  (Asked by: username_0 on 2019-02-14)
  
  Seeing a lot of smarty errors in Drupal log file for mailings using Mosaico template - looks like an error for every message sent so thousands filling log files.
  
  Nothing obvious in Mosaico template but thinking it must be a conflict with use of { } in each case. Smarty logic in the template that I can see.
  
  should smarty be turned off in civicrm.settings.php if using Mosaico?
  
  **Tags:** smarty, mosaico
  
  > **Comments:**
  > **username_1**: What is the version of Mosaico and flexmailer ext ? Are they on latest?  
  > **username_0**: yes, I believe these are current - flexmailer 0.2-alpha5 and mosaico 2.0-beta4.1528762072  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2019-02-26. Score: 1
  
  You can't use Smarty and Mosaico together. Tim Otten [presents a long answer why](https://github.com/veda-consulting/uk.co.vedaconsulting.mosaico/pull/252#issuecomment-392979047) if you want details!
  
  > **Comments:**
  > **username_0**: OK, good to know.  Should there be a warning in system status?    Painful error to find after the fact.  
  > **username_2**: Not a bad idea - but to be clear - are you using Smarty logic in Mosaico? Or do you have curly brackets that make Mosaico *think* you're using Smarty? Since Mosaico users can still send traditional CiviMails, it'd be good to make sure they could use Smarty when doing so.  
  > **username_0**: No Smarty logic to my knowledge in Mosaico maling template - only whatever Mosaico would use in its templates.  Agree that it would be too bad to have to disable Smarty for all uses even if not Mosaico.  
  > **username_2**: Hmm - @DaveT are you using the latest version of Mosaico 2.x?  I would have assumed that Flexmailer would have prevented these errors.  Do you have "View on Website" in use?  Is it possible that the Smarty errors appear when someone views a Mosaico mailing on the website?  I believe there's an open issue for that.  
  > **username_0**: Hmmm, Hmmm - just updated to most recent (stable) version of Mosaico - 2.0.1556289017 - Initial (very limited) testing does not show smarty errors.  Perhaps fixed?  
  
  ---
  
  ### Answer by username_3 on 2020-12-16. Score: 0
  
  I found this: <https://github.com/mjwconsult/civicrm-mosaico_smarty>
  I need to upgrade my system to try it out, let me know if it works.
  
  
  ---
  
  