Questions tagged [smarty]
Questions relating to CiviCRM's use of the Smarty templating syntax.
126
questions
0
votes
1
answer
43
views
Enable Smarty Version 5
I'm running a Drupal 7 site with CiviCRM version 5.73.1
I understand that CiviCRM will be upgrading Smarty from version 2 to 5 soon (re: https://lab.civicrm.org/dev/core/-/issues/4146) and I would ...
0
votes
2
answers
80
views
CiviCRM update 5.73.1 appears to have broken smarty and we cannot generate letters
After a recent upgrade, we are not able to produce letters anymore. The error when trying is: Network Error Unable to reach the server. Please refresh this page in your browser and try again. This ...
1
vote
1
answer
38
views
Event registration error on confirmation. Probably Smarty, but I'm not consciously using it
I am having trouble with event registrations on an event that seemed to work fine a couple of months ago. The live event happened with no issues back in Jan and Feb. We've since re-activated the event ...
0
votes
0
answers
18
views
Apostrophes in Message Templates / Event Confirmation Email
Not a question per se, more a note of caution: if an additional text contains apostrophes (as in this year's, didn't, Alzheimer’s ) the whole bunch of the text disappears silently from emails. Be ...
2
votes
1
answer
86
views
SmartyException: "Unable to load template 'file:relationship2summary.tpl
I have a CiviCRM plugin in my worpdress website and I am getting following exception while clicking on single "View" in contacts :
SmartyException: "Unable to load template 'file:...
0
votes
2
answers
24
views
Mailing subject length when using Smarty
I am trying to make mailing subject lines automatically bilingual by using Smarty code, but I am running into an issue as the required code easily busts the 128 max character length for subject values....
0
votes
0
answers
20
views
Smarty issue with "conference_sessions" in confirmation email of event registration
Drupal 9.5.1 CiviCRM 5.68
I am preparing an event. There is a Smarty error which appears in the participant's confirmation email. I am not capable of correcting it. Is there some way I can suppress ...
1
vote
1
answer
87
views
Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect
I've followed the instructions in recent versions of CiviCRM and added this line to civicrm.settings.php:
define('CIVICRM_SMARTY3_AUTOLOAD_PATH',
'/home/<username>/public_html/sites/all/modules/...
2
votes
1
answer
48
views
Switch back from Smarty3 to Smarty2 - CiviCRM 5.71.1
Is there a way to switch back from Smarty3 to Smarty2
CiviCRM 5.71.1 + WordPress
0
votes
1
answer
78
views
Error-Message after update Smarty v2 => Smarty v3 (CiciCRM 5.71.1, Joomla)
following the instructions on the CiviCRM status page, I have added this code in civicrm.settings.php to update on Sparty v2 to v3:
define('CIVICRM_SMARTY_AUTOLOAD_PATH',
'/var/www/vhosts/mywebsite....
0
votes
1
answer
224
views
Smarty error after upgrading civicrm from 5.69.4 to 5.70.0
I'm still using smarty 2, PHP 7.4, drupal 7.99
(note: I have a test site for php 8 and smarty 3 and there are problems with both)
After upgrading from civicrm 5.69.4 to 5.70.0 getting the following ...
1
vote
0
answers
20
views
Assignment of related custom field occurs critical Error
I'm encountering an issue regarding the generation of salutations in message templates. The requirement is to first filter whether the contact is an individual or an organization, specifically ...
4
votes
1
answer
234
views
Message templates token replacement: is it {if membership_end_date} or {if {membership_end_date}}?
And similarly, would it be {membership_end_date|crmDate} or {{membership_end_date}|crmDate}?
1
vote
0
answers
91
views
Smarty 3: Unable to load template 'file:CRM/Airmail/Form/Airmail/Settings.tpl' in 'file:CRM/Form/default.tpl'
Drupal 7, CiviCRM 5.69.2, PHP 7.4, Smarty 3.
After civix upgrade run on some extensions (Airmail, Sendgrid) got two identical messages on the respective Settings URL/page:
Unable to load template '...
2
votes
1
answer
309
views
fatal error in "Smarty" after 5.69.2 upgrade
After upgrading CiviCRM to 5.69.2 (along with several extensions), I'm occasionally getting the following error:
Fatal error: Type of SmartyCompilerException::$line must be int (as in class Exception)...