Fatal Smarty Filepath Error Making Thank-You Letters
On Civi 5.72.1, Drupal 7 (and we have Smarty 3 enabled): when previewing or creating Thank-You letters for a set of contributions, we get the following error on screen:
undefined extension class 'Smarty_Internal_Runtime_Get_Plugin_Filepath'
It works fine if I disable Smarty 3, but we need/want that enabled for all our extensions that have been upgraded.
The Civi error log shows the following:
2024-04-10 11:07:13-0700 [error]
$Fatal Error Details = array:3 [
"message" => "undefined extension class 'Smarty_Internal_Runtime_Get_Plugin_Filepath'"
"code" => null
"exception" => SmartyException {#3301
#message: "undefined extension class 'Smarty_Internal_Runtime_Get_Plugin_Filepath'"
#code: 0
#file: "/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php"
#line: 62
trace: {
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php:62 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php:133 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_data.php:290 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/Smarty/plugins/modifier.date_format.php:11 {
include_once
› */
› require_once $smarty->_get_plugin_filepath('shared', 'make_timestamp');
› /**
}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadplugin.php:90 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/Smarty.class.php:1065 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:841 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php:94 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:768 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:1501 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:565 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:2880 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:3481 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:3573 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php:128 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:481 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:402 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php:52 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:136 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:105 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:232 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:116 { …}
/var/www/civicrm/sites/all/modules/civicrm/CRM/Utils/String.php:1047 { …}
/var/www/civicrm/sites/all/modules/civicrm/Civi/Token/TokenCompatSubscriber.php:115 { …}
/var/www/civicrm/sites/all/modules/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php:251 { …}
/var/www/civicrm/sites/all/modules/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php:73 { …}
/var/www/civicrm/sites/all/modules/civicrm/Civi/Core/CiviEventDispatcher.php:263 { …}
/var/www/civicrm/sites/all/modules/civicrm/Civi/Token/TokenProcessor.php:397 { …}
/var/www/civicrm/sites/all/modules/civicrm/Civi/Token/TokenRow.php:327 { …}
/var/www/civicrm/sites/all/modules/civicrm/CRM/Core/TokenSmarty.php:67 { …}
/var/www/civicrm/sites/all/modules/civicrm/CRM/Contribute/Form/Task/PDFLetter.php:580 { …}
/var/www/civicrm/sites/all/modules/civicrm/CRM/Contribute/Form/Task/PDFLetter.php:428 { …}
/var/www/civicrm/sites/all/modules/civicrm/CRM/Contribute/Form/Task/PDFLetter.php:212 { …}
/var/www/civicrm/sites/all/modules/civicrm/CRM/Core/Form.php:646 { …}
/var/www/civicrm/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Submit.php:56 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php:203 { …}
/var/www/civicrm/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php:103 { …}
/var/www/civicrm/sites/all/modules/civicrm/CRM/Core/Controller.php:355 { …}
/var/www/civicrm/sites/all/modules/civicrm/CRM/Core/Invoke.php:325 { …}
/var/www/civicrm/sites/all/modules/civicrm/CRM/Core/Invoke.php:69 { …}
/var/www/civicrm/sites/all/modules/civicrm/CRM/Core/Invoke.php:36 { …}
/var/www/civicrm/sites/all/modules/civicrm/drupal/civicrm.module:470 { …}
/var/www/civicrm/includes/menu.inc:527 { …}
/var/www/civicrm/index.php:21 { …}
}
}
]
2024-04-10 11:07:13-0700 [debug] $backTrace = #0 /var/www/civicrm/sites/all/modules/civicrm/CRM/Core/Error.php(443): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /var/www/civicrm/sites/all/modules/civicrm/CRM/Core/Invoke.php(39): CRM_Core_Error::handleUnhandledException(Object(SmartyException))
#2 /var/www/civicrm/sites/all/modules/civicrm/drupal/civicrm.module(470): CRM_Core_Invoke::invoke((Array:3))
#3 /var/www/civicrm/includes/menu.inc(527): civicrm_invoke("contribute", "search")
#4 /var/www/civicrm/index.php(21): menu_execute_active_handler()
#5 {main}