Answers.Body: <p>Put <a href="https://github.com/civicrm/civicrm-core/blob/80f02b363d0a5204f2744cc878c5a2562dcf7ef1/templates/CRM/common/civicrm.settings.php.template#L265" rel="nofollow noreferrer">this line from the latest civicrm.settings.php template</a> in civicrm.settings.php:</p>
  <p><code>define('CIVICRM_SMARTY_AUTOLOAD_PATH', $civicrm_root . '/packages/smarty5/Smarty.php');</code></p>
  <p>You said drupal 7 but note for drupal 10 it would be the other line below it because packages is in a different spot.</p>
  <p>Note in 5.73 you will get some errors that are fixed in later versions.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-06-17T08:16:39.647Z
Answers.Text: Thank you for you help
Answers.UserDisplayName: Jonny Toomey
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-06-14T11:23:43.400Z
Answers.LastActivityDate: 2024-06-14T11:23:43.400Z
Answers.UserDisplayName: Demerit
Body: <p>I'm running a Drupal 7 site with CiviCRM version 5.73.1</p>
  <p>I understand that CiviCRM will be upgrading Smarty from version 2 to 5 soon (re: <a href="https://lab.civicrm.org/dev/core/-/issues/4146" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/4146</a>) and I would like to test this ahead of time</p>
  <p>Can anyone detail the step by step process for switching to Smarty version 5?</p>
  <p>Many thanks :)</p>
  
Tags: <drupal><smarty>
Title: Enable Smarty Version 5
ThreadText: # Enable Smarty Version 5
  
  (Asked by: username_0 on 2024-06-14)
  
  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 like to test this ahead of time
  
  Can anyone detail the step by step process for switching to Smarty version 5?
  
  Many thanks :)
  
  **Tags:** drupal, smarty
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-06-14. Score: 1 | Accepted answer
  
  Put [this line from the latest civicrm.settings.php template](https://github.com/civicrm/civicrm-core/blob/80f02b363d0a5204f2744cc878c5a2562dcf7ef1/templates/CRM/common/civicrm.settings.php.template#L265) in civicrm.settings.php:
  
  `define('CIVICRM_SMARTY_AUTOLOAD_PATH', $civicrm_root . '/packages/smarty5/Smarty.php');`
  
  You said drupal 7 but note for drupal 10 it would be the other line below it because packages is in a different spot.
  
  Note in 5.73 you will get some errors that are fixed in later versions.
  
  > **Comments:**
  > **username_0**: Thank you for you help  
  
  ---
  
  