Answers.Body: <p>Looks like you have your <strong>Events - Registration Confirmation and Receipt (on-line)</strong> message template customised which is causing the smarty issue</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-14T00:03:12.560Z
Answers.Text: Yes you probably have something like `|date_format:"%s"` in it. Note the date_format modifier is deprecated in php 8. Consider switching to `|crmDate`.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-13T21:05:30.030Z
Answers.LastActivityDate: 2024-03-13T21:05:30.030Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>When updating to ESR 5.69.x, we are running into errors with Smarty3 when updating the smarty path in civicrm.settings.php:</p>
  <p>define('CIVICRM_SMARTY3_AUTOLOAD_PATH',
  '/var/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/autoload.php');</p>
  <p>$Fatal Error Details = array:3 [
  &quot;message&quot; =&gt; &quot;undefined extension class 'Smarty_Internal_Runtime_Get_Plugin_Filepath'&quot;
  &quot;code&quot; =&gt; null
  &quot;exception&quot; =&gt; SmartyException {#8284
  #message: &quot;undefined extension class 'Smarty_Internal_Runtime_Get_Plugin_Filepath'&quot;
  ...</p>
  <p>We are still trying to diagnose why this is happening, but we have upgraded some clients with no issues, and other clients with varying degrees of issues (donations, registrations, contact creations, etc.). Has anyone else encountered this issue when upgrading to 5.69.x?</p>
  <p>System:
  Drupal 7.99
  CiviCRM 5.69.5
  PHP 8.1</p>
  <p>Full backtrace:</p>
  <p>$Fatal Error Details = array:3 [
  &quot;message&quot; =&gt; &quot;undefined extension class 'Smarty_Internal_Runtime_Get_Plugin_Filepath'&quot;
  &quot;code&quot; =&gt; null
  &quot;exception&quot; =&gt; SmartyException {#8284
  #message: &quot;undefined extension class 'Smarty_Internal_Runtime_Get_Plugin_Filepath'&quot;
  #code: 0
  #file: &quot;/var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php&quot;
  #line: 62
  trace: {
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php:62 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php:133 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_data.php:290 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/Smarty/plugins/modifier.date_format.php:11 {
  include_once
  ›  <em>/
  › require_once $smarty-&gt;_get_plugin_filepath('shared', 'make_timestamp');
  › /</em>*
  arguments: {
  $name: &quot;_get_plugin_filepath&quot;
  $args: array:2 [ …2]
  }
  }
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadplugin.php:90 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/Smarty.class.php:1065 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:841 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php:94 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:768 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:1501 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:565 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:2880 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:3481 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:3573 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php:128 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:481 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:402 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php:52 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:136 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:105 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:232 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:116 { …}
  /var/www/wwwadmin/data/www/example.com/sites/default/files/civicrm/templates_c/en_US/c3/de/cf/c3decff7ccfa9fdba7d3be9cc10e1d06f1108c3b_0.string.{eval var=$smartySingleUseString|smarty:nodefaults}.php:30 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:232 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:116 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Utils/String.php:1040 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/Civi/Token/TokenCompatSubscriber.php:108 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php:251 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php:73 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/Civi/Core/CiviEventDispatcher.php:263 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/Civi/Token/TokenProcessor.php:397 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/Civi/Token/TokenRow.php:327 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/TokenSmarty.php:67 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/BAO/MessageTemplate.php:374 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/BAO/MessageTemplate.php:422 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Event/BAO/Event.php:1254 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Event/Form/Registration/Confirm.php:895 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/Form.php:625 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/StateMachine.php:144 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php:43 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php:203 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php:103 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/Controller.php:355 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/Invoke.php:322 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/Invoke.php:69 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/Invoke.php:36 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/drupal/civicrm.module:472 { …}
  /var/www/wwwadmin/data/www/example.com/includes/menu.inc:527 { …}
  /var/www/wwwadmin/data/www/example.com/index.php:21 { …}
  }
  }
  ]</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-03-13T16:16:10.403Z
Comments.Text: Do you have backtrace?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-03-13T18:26:04.640Z
Comments.Text: I just updated my initial question with the full backtrace - thank you for taking a look @Pradeep Nayak
Comments.UserDisplayName: Chipleh
Tags: <smarty3>
Title: CiviCRM 5.69.x Smarty3 errors
ThreadText: # CiviCRM 5.69.x Smarty3 errors
  
  (Asked by: username_0 on 2024-03-13)
  
  When updating to ESR 5.69.x, we are running into errors with Smarty3 when updating the smarty path in civicrm.settings.php:
  
  define('CIVICRM\_SMARTY3\_AUTOLOAD\_PATH',
  '/var/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/autoload.php');
  
  $Fatal Error Details = array:3 [
  "message" => "undefined extension class 'Smarty\_Internal\_Runtime\_Get\_Plugin\_Filepath'"
  "code" => null
  "exception" => SmartyException {#8284
  #message: "undefined extension class 'Smarty\_Internal\_Runtime\_Get\_Plugin\_Filepath'"
  ...
  
  We are still trying to diagnose why this is happening, but we have upgraded some clients with no issues, and other clients with varying degrees of issues (donations, registrations, contact creations, etc.). Has anyone else encountered this issue when upgrading to 5.69.x?
  
  System:
  Drupal 7.99
  CiviCRM 5.69.5
  PHP 8.1
  
  Full backtrace:
  
  $Fatal Error Details = array:3 [
  "message" => "undefined extension class 'Smarty\_Internal\_Runtime\_Get\_Plugin\_Filepath'"
  "code" => null
  "exception" => SmartyException {#8284
  #message: "undefined extension class 'Smarty\_Internal\_Runtime\_Get\_Plugin\_Filepath'"
  #code: 0
  #file: "/var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_undefined.php"
  #line: 62
  trace: {
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_undefined.php:62 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_extension\_handler.php:133 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_data.php:290 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/Smarty/plugins/modifier.date\_format.php:11 {
  include\_once
  › */
  › require\_once $smarty->\_get\_plugin\_filepath('shared', 'make\_timestamp');
  › /*\*
  arguments: {
  $name: "\_get\_plugin\_filepath"
  $args: array:2 [ …2]
  }
  }
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_method\_loadplugin.php:90 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/Smarty.class.php:1065 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templatecompilerbase.php:841 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_compile\_private\_modifier.php:94 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templatecompilerbase.php:768 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templatecompilerbase.php:1501 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templatecompilerbase.php:565 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templateparser.php:2880 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templateparser.php:3481 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templateparser.php:3573 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_smartytemplatecompiler.php:128 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templatecompilerbase.php:481 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templatecompilerbase.php:402 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_resource\_recompiled.php:52 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_template\_compiled.php:136 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_template\_compiled.php:105 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_template.php:216 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templatebase.php:232 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templatebase.php:116 { …}
  /var/www/wwwadmin/data/www/example.com/sites/default/files/civicrm/templates\_c/en\_US/c3/de/cf/c3decff7ccfa9fdba7d3be9cc10e1d06f1108c3b\_0.string.{eval var=$smartySingleUseString|smarty:nodefaults}.php:30 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_template\_resource\_base.php:123 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_template\_compiled.php:114 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_template.php:216 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templatebase.php:232 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty\_internal\_templatebase.php:116 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Utils/String.php:1040 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/Civi/Token/TokenCompatSubscriber.php:108 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php:251 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php:73 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/Civi/Core/CiviEventDispatcher.php:263 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/Civi/Token/TokenProcessor.php:397 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/Civi/Token/TokenRow.php:327 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/TokenSmarty.php:67 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/BAO/MessageTemplate.php:374 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/BAO/MessageTemplate.php:422 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Event/BAO/Event.php:1254 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Event/Form/Registration/Confirm.php:895 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/Form.php:625 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/StateMachine.php:144 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php:43 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php:203 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php:103 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/Controller.php:355 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/Invoke.php:322 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/Invoke.php:69 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/CRM/Core/Invoke.php:36 { …}
  /var/www/wwwadmin/data/www/example.com/sites/all/modules/civicrm/drupal/civicrm.module:472 { …}
  /var/www/wwwadmin/data/www/example.com/includes/menu.inc:527 { …}
  /var/www/wwwadmin/data/www/example.com/index.php:21 { …}
  }
  }
  ]
  
  **Tags:** smarty3
  
  > **Comments:**
  > **username_1**: Do you have backtrace?  
  > **username_0**: I just updated my initial question with the full backtrace - thank you for taking a look @username_1  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-03-13. Score: 1
  
  Looks like you have your **Events - Registration Confirmation and Receipt (on-line)** message template customised which is causing the smarty issue
  
  > **Comments:**
  > **username_2**: Yes you probably have something like `|date_format:"%s"` in it. Note the date_format modifier is deprecated in php 8. Consider switching to `|crmDate`.  
  
  ---
  
  