Answers.Body: <p>Its a known issue for Smarty3, I have pushed a PR for the <a href="https://lab.civicrm.org/extensions/group2summary/-/merge_requests/11" rel="nofollow noreferrer">https://lab.civicrm.org/extensions/group2summary/-/merge_requests/11</a></p>
  <p>You can apply the patch or comment <code>CIVICRM_SMARTY3_AUTOLOAD_PATH</code> line in your civicrm.settings.php</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-04T12:42:13.837Z
Answers.Text: thanks a lot for the quick reply @Pradeep Nayak! could you please specify what exactly would need to be done with `CIVICRM_SMARTY3_AUTOLOAD_PATH` variable in civicrm.settings.php? Currently it is set to 
  
  `define('CIVICRM_SMARTY3_AUTOLOAD_PATH', '/home/{****}/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/autoload.php');`
Answers.UserDisplayName: user3263849
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-04T13:34:10.357Z
Answers.Text: remove the whole line for now until the maintainer fixes the issue
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-04T15:28:14.103Z
Answers.Text: thank you, it solved the problem!
Answers.UserDisplayName: user3263849
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-04T21:54:39.797Z
Answers.Text: Are you okay to mark this post as answered thn to help others who will face similar problem
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-18T10:14:50.340Z
Answers.Text: We are having this too, but with `SmartyException: "Unable to load template 'file:CRM/common/TrackingFields.tpl' in 'CRM/Event/Form/Registration/Confirm.tpl'"`. In our `civicrm.settings.php` there is no `CIVICRM_SMARTY3_AUTOLOAD_PATH`, only `CIVICRM_SMARTY_AUTOLOAD_PATH`(without the `3`). Commenting out those lines did not help. Are there any other workarounds? Should this fix be applied to other Smarty mixins, such as `mixin/smarty-v2@1`?
Answers.UserDisplayName: thoni56
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-18T10:51:55.567Z
Answers.Text: The trackingField file has been removed since 5.66. https://github.com/civicrm/civicrm-core/pull/27233/files
  
  You may have custom template over-ride for CRM/Event/Form/Registration/Confirm.tpl file which you need to update to remove the reference.
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-19T14:28:40.887Z
Answers.Text: This reminded me that there was a warning when adding the recommended `CIVICRM_SMARTY3_AUTOLOAD_PATH` var in civicrm.settings.php that it could cause issues. I was getting a very similar to the above after adding this variable, with a MailChimp extension I had installed. Removing this setting fixed the template loading issue for the extension
Answers.UserDisplayName: dading84
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-04T11:22:18.427Z
Answers.LastActivityDate: 2024-03-04T11:22:18.427Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>related to this thread. I have the same 'issue' with the extension Contribution button label. I'll try to use the same patch</p>
  <pre><code>$Fatal Error Details = array:3 [
    &quot;message&quot; =&gt; &quot;Unable to load template 'file:CRM/ContributionButtonLabel/Label.tpl'&quot;
    &quot;code&quot; =&gt; null
    &quot;exception&quot; =&gt; SmartyException {#3235
      #message: &quot;Unable to load template 'file:CRM/ContributionButtonLabel/Label.tpl'&quot;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-21T08:51:03.527Z
Answers.LastActivityDate: 2024-08-21T08:51:03.527Z
Answers.UserDisplayName: Guillaume Sorel
Body: <p>I have a CiviCRM plugin in my worpdress website and am getting following exception while clicking on single &quot;View&quot; in contacts :</p>
  <pre><code>SmartyException: &quot;Unable to load template 'file:group2summary.tpl'&quot;
  </code></pre>
  <p>I updated my CiviCRM to 5.70.1, all extensions including &quot;group2summary&quot; seem to be up-to-date. I cleared CiviCRM cache but it did not help. My Wordpress and all plugins are up-to-date. Any ideas on what else can be done?</p>
  <p>Here is exception log:</p>
  <pre><code>#0 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template-&gt;render(FALSE, 0)
  #1 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase-&gt;_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
  #2 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Region.php(81): Smarty_Internal_TemplateBase-&gt;fetch(&quot;group2summary.tpl&quot;)
  #3 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Region.php(157): CRM_Core_Region-&gt;{closure}((Array:8))
  #4 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Smarty/plugins/block.crmRegion.php(26): CRM_Core_Region-&gt;render(&quot;          \n      \n  &lt;div&gt;&lt;input name=\&quot;entryURL\&quot; type=\&quot;hidden\&quot; value=\&quot;h...&quot;, TRUE)
  #5 /home/globalphil/public_html/wp-content/uploads/civicrm/templates_c/en_US/09/db/ee/09dbee8c8e3bca9eaff6bf395a1dbee9d7666bc5_0.file.CMSPrint.tpl.php(107): smarty_block_crmRegion((Array:1), &quot;          \n      \n  &lt;div&gt;&lt;input name=\&quot;entryURL\&quot; type=\&quot;hidden\&quot; value=\&quot;h...&quot;, Object(Smarty_Internal_Template), FALSE)
  #6 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65e502b040bc80_61552004(Object(Smarty_Internal_Template))
  #7 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
  #8 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
  #9 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(385): Smarty_Internal_Template-&gt;render()
  #10 /home/globalphil/public_html/wp-content/uploads/civicrm/templates_c/en_US/36/00/0d/36000d975f6d067785f581437bd6e0167ea5fa53_0.file.wordpress.tpl.php(31): Smarty_Internal_Template-&gt;_subTemplateRender(&quot;file:CRM/common/CMSPrint.tpl&quot;, NULL, NULL, 0, 3600, (Array:0), 0, FALSE)
  #11 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65e502b03ecbf0_29524232(Object(Smarty_Internal_Template))
  #12 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
  #13 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
  #14 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template-&gt;render(FALSE, 0)
  #15 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase-&gt;_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
  #16 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Page.php(273): Smarty_Internal_TemplateBase-&gt;fetch(&quot;CRM/common/wordpress.tpl&quot;)
  #17 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contact/Page/View/Summary.php(122): CRM_Core_Page-&gt;run()
  #18 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(322): CRM_Contact_Page_View_Summary-&gt;run((Array:3), NULL)
  #19 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem((Array:18))
  #20 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:3))
  #21 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm.php(1231): CRM_Core_Invoke::invoke((Array:3))
  #22 /home/globalphil/public_html/wp-includes/class-wp-hook.php(324): CiviCRM_For_WordPress-&gt;invoke(&quot;&quot;)
  #23 /home/globalphil/public_html/wp-includes/class-wp-hook.php(348): WP_Hook-&gt;apply_filters(&quot;&quot;, (Array:1))
  #24 /home/globalphil/public_html/wp-includes/plugin.php(517): WP_Hook-&gt;do_action((Array:1))
  #25 /home/globalphil/public_html/wp-admin/admin.php(259): do_action(&quot;toplevel_page_CiviCRM&quot;)
  #26 {main}
  </code></pre>
  <p>And here are warnings from debug.log (I did not see them before) :</p>
  <pre><code>[03-Mar-2024 23:11:23 UTC] PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/globalphil/public_html/wp-content/uploads/civicrm/ext/org.wikimedia.geocoder/geocoder.civix.php on line 107
  [03-Mar-2024 23:11:23 UTC] PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/globalphil/public_html/wp-content/uploads/civicrm/ext/coop.palantetech.exportprimaryemails/exportprimaryemails.civix.php on line 100
  [03-Mar-2024 23:11:23 UTC] PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/globalphil/public_html/wp-content/uploads/civicrm/ext/eu.tttp.group2summary/group2summary.civix.php on line 100
  [03-Mar-2024 23:11:23 UTC] PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/globalphil/public_html/wp-content/uploads/civicrm/ext/contactnotes/contactnotes.civix.php on line 100
  </code></pre>
  
Tags: <civicrm.settings.php>
Title: SmartyException: "Unable to load template 'file:group2summary.tpl'"
ThreadText: # SmartyException: "Unable to load template 'file:group2summary.tpl'"
  
  (Asked by: username_0 on 2024-03-03)
  
  I have a CiviCRM plugin in my worpdress website and am getting following exception while clicking on single "View" in contacts :
  SmartyException: "Unable to load template 'file:group2summary.tpl'"
  
  I updated my CiviCRM to 5.70.1, all extensions including "group2summary" seem to be up-to-date. I cleared CiviCRM cache but it did not help. My Wordpress and all plugins are up-to-date. Any ideas on what else can be done?
  Here is exception log:
  #0 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(FALSE, 0)
  #1 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
  #2 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Region.php(81): Smarty_Internal_TemplateBase->fetch("group2summary.tpl")
  #3 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Region.php(157): CRM_Core_Region->{closure}((Array:8))
  #4 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Smarty/plugins/block.crmRegion.php(26): CRM_Core_Region->render("          \n      \n  getRenderedTemplateCode(Object(Smarty_Internal_Template))
  #8 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
  #9 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(385): Smarty_Internal_Template->render()
  #10 /home/globalphil/public_html/wp-content/uploads/civicrm/templates_c/en_US/36/00/0d/36000d975f6d067785f581437bd6e0167ea5fa53_0.file.wordpress.tpl.php(31): Smarty_Internal_Template->_subTemplateRender("file:CRM/common/CMSPrint.tpl", NULL, NULL, 0, 3600, (Array:0), 0, FALSE)
  #11 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65e502b03ecbf0_29524232(Object(Smarty_Internal_Template))
  #12 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
  #13 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
  #14 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(FALSE, 0)
  #15 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
  #16 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Page.php(273): Smarty_Internal_TemplateBase->fetch("CRM/common/wordpress.tpl")
  #17 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contact/Page/View/Summary.php(122): CRM_Core_Page->run()
  #18 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(322): CRM_Contact_Page_View_Summary->run((Array:3), NULL)
  #19 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem((Array:18))
  #20 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:3))
  #21 /home/globalphil/public_html/wp-content/plugins/civicrm/civicrm.php(1231): CRM_Core_Invoke::invoke((Array:3))
  #22 /home/globalphil/public_html/wp-includes/class-wp-hook.php(324): CiviCRM_For_WordPress->invoke("")
  #23 /home/globalphil/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters("", (Array:1))
  #24 /home/globalphil/public_html/wp-includes/plugin.php(517): WP_Hook->do_action((Array:1))
  #25 /home/globalphil/public_html/wp-admin/admin.php(259): do_action("toplevel_page_CiviCRM")
  #26 {main}
  
  And here are warnings from debug.log (I did not see them before) :
  [03-Mar-2024 23:11:23 UTC] PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/globalphil/public_html/wp-content/uploads/civicrm/ext/org.wikimedia.geocoder/geocoder.civix.php on line 107
  [03-Mar-2024 23:11:23 UTC] PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/globalphil/public_html/wp-content/uploads/civicrm/ext/coop.palantetech.exportprimaryemails/exportprimaryemails.civix.php on line 100
  [03-Mar-2024 23:11:23 UTC] PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/globalphil/public_html/wp-content/uploads/civicrm/ext/eu.tttp.group2summary/group2summary.civix.php on line 100
  [03-Mar-2024 23:11:23 UTC] PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/globalphil/public_html/wp-content/uploads/civicrm/ext/contactnotes/contactnotes.civix.php on line 100
  
  **Tags:** civicrm.settings.php
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2024-03-04. Score: 3
  
  Its a known issue for Smarty3, I have pushed a PR for the <https://lab.civicrm.org/extensions/group2summary/-/merge_requests/11>
  
  You can apply the patch or comment `CIVICRM_SMARTY3_AUTOLOAD_PATH` line in your civicrm.settings.php
  
  > **Comments:**
  > **username_0**: thanks a lot for the quick reply @username_1! could you please specify what exactly would need to be done with `CIVICRM_SMARTY3_AUTOLOAD_PATH` variable in civicrm.settings.php? Currently it is set to   `define('CIVICRM_SMARTY3_AUTOLOAD_PATH', '/home/{****}/wp-content/plugins/civicrm/civicrm/packages/smarty3/vendor/autoload.php');`  
  > **username_1**: remove the whole line for now until the maintainer fixes the issue  
  > **username_0**: thank you, it solved the problem!  
  > **username_1**: Are you okay to mark this post as answered thn to help others who will face similar problem  
  > **username_2**: We are having this too, but with `SmartyException: "Unable to load template 'file:CRM/common/TrackingFields.tpl' in 'CRM/Event/Form/Registration/Confirm.tpl'"`. In our `civicrm.settings.php` there is no `CIVICRM_SMARTY3_AUTOLOAD_PATH`, only `CIVICRM_SMARTY_AUTOLOAD_PATH`(without the `3`). Commenting out those lines did not help. Are there any other workarounds? Should this fix be applied to other Smarty mixins, such as `mixin/smarty-v2@1`?  
  > **username_1**: The trackingField file has been removed since 5.66. https://github.com/civicrm/civicrm-core/pull/27233/files  You may have custom template over-ride for CRM/Event/Form/Registration/Confirm.tpl file which you need to update to remove the reference.  
  > **username_3**: This reminded me that there was a warning when adding the recommended `CIVICRM_SMARTY3_AUTOLOAD_PATH` var in civicrm.settings.php that it could cause issues. I was getting a very similar to the above after adding this variable, with a MailChimp extension I had installed. Removing this setting fixed the template loading issue for the extension  
  
  ---
  
  ### Answer by username_4 on 2024-08-21. Score: 0
  
  related to this thread. I have the same 'issue' with the extension Contribution button label. I'll try to use the same patch
  $Fatal Error Details = array:3 [
    "message" => "Unable to load template 'file:CRM/ContributionButtonLabel/Label.tpl'"
    "code" => null
    "exception" => SmartyException {#3235
      #message: "Unable to load template 'file:CRM/ContributionButtonLabel/Label.tpl'"
  
  
  ---
  
  