Answers.Body: <p>I would remove the AUTOLOAD line from civicrm.settings.php until those extensions have updates available. They'll need to re-run <code>civix upgrade</code> and put out a release.</p>
  <p>But the <code>Error: Call to a member function getOutputByName()</code> in the dataprocessor extension is something unrelated to smarty. But it might be something temporary while cache was being cleared and if you're not seeing that error anymore it's probably ok.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-12T16:14:22.297Z
Answers.LastActivityDate: 2024-04-12T16:14:22.297Z
Answers.UserDisplayName: Demerit
Body: <p>I've followed the instructions in recent versions of CiviCRM and added this line to civicrm.settings.php:</p>
  <pre><code>define('CIVICRM_SMARTY3_AUTOLOAD_PATH',
  '/home/&lt;username&gt;/public_html/sites/all/modules/civicrm/packages/smarty3/vendor/autoload.php');
  </code></pre>
  <p>It seemed to be running fine, so I ran the latest update and this happened:</p>
  <pre><code>$ cv upgrade:db
  PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/uk.co.vedaconsulting.gdpr/gdpr.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/uk.co.vedaconsulting.gdpr/gdpr.civix.php on line 100
  PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/org.civicrm.shoreditch-1.0.0-beta.12/shoreditch.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/org.civicrm.shoreditch-1.0.0-beta.12/shoreditch.civix.php on line 100
  PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/easycopy/easycopy.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/easycopy/easycopy.civix.php on line 100
  Found CiviCRM database version 5.71.1.
  Found CiviCRM code version 5.72.1.
  Checking pre-upgrade messages...
  (No messages)
  Dropping SQL triggers...
  Preparing upgrade...
  Executing upgrade...
  ...............Error: Call to a member function getOutputByName() on null in Civi\DataProcessor\Output\UIOutputHelper::buildNavigationMenuItems() (line 93 of /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/dataprocessor/Civi/DataProcessor/Output/UIOutputHelper.php).
  </code></pre>
  <p>Assuming the update had failed, I commented the Smarty update lines out and ran it again, but cv said I was already running 5.72.1. So I uncommented it again and everything still seemed fine.</p>
  <p>But I've just noticed that I'm getting most of the same errors every time cron runs:</p>
  <pre><code>PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/uk.co.vedaconsulting.gdpr/gdpr.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/uk.co.vedaconsulting.gdpr/gdpr.civix.php on line 100
  PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/org.civicrm.shoreditch-1.0.0-beta.12/shoreditch.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/org.civicrm.shoreditch-1.0.0-beta.12/shoreditch.civix.php on line 100
  PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/easycopy/easycopy.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/&lt;username&gt;/public_html/sites/default/files/civicrm/ext/easycopy/easycopy.civix.php on line 100
  </code></pre>
  <p>Have I done something wrong, or do I just need to wait until those extensions get updates?</p>
  
Tags: <smarty><gdpr><shoreditch><data-processor>
Title: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect
ThreadText: # Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect
  
  (Asked by: username_0 on 2024-04-12)
  
  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/civicrm/packages/smarty3/vendor/autoload.php');
  
  ```
  
  It seemed to be running fine, so I ran the latest update and this happened:
  
  ```
  $ cv upgrade:db
  PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/uk.co.vedaconsulting.gdpr/gdpr.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/uk.co.vedaconsulting.gdpr/gdpr.civix.php on line 100
  PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/org.civicrm.shoreditch-1.0.0-beta.12/shoreditch.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/org.civicrm.shoreditch-1.0.0-beta.12/shoreditch.civix.php on line 100
  PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/easycopy/easycopy.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/easycopy/easycopy.civix.php on line 100
  Found CiviCRM database version 5.71.1.
  Found CiviCRM code version 5.72.1.
  Checking pre-upgrade messages...
  (No messages)
  Dropping SQL triggers...
  Preparing upgrade...
  Executing upgrade...
  ...............Error: Call to a member function getOutputByName() on null in Civi\DataProcessor\Output\UIOutputHelper::buildNavigationMenuItems() (line 93 of /home/<username>/public_html/sites/default/files/civicrm/ext/dataprocessor/Civi/DataProcessor/Output/UIOutputHelper.php).
  
  ```
  
  Assuming the update had failed, I commented the Smarty update lines out and ran it again, but cv said I was already running 5.72.1. So I uncommented it again and everything still seemed fine.
  
  But I've just noticed that I'm getting most of the same errors every time cron runs:
  
  ```
  PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/uk.co.vedaconsulting.gdpr/gdpr.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/uk.co.vedaconsulting.gdpr/gdpr.civix.php on line 100
  PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/org.civicrm.shoreditch-1.0.0-beta.12/shoreditch.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/org.civicrm.shoreditch-1.0.0-beta.12/shoreditch.civix.php on line 100
  PHP Notice:  Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/easycopy/easycopy.civix.php on line 100
  Notice: Indirect modification of overloaded property CRM_Core_Smarty::$template_dir has no effect in /home/<username>/public_html/sites/default/files/civicrm/ext/easycopy/easycopy.civix.php on line 100
  
  ```
  
  Have I done something wrong, or do I just need to wait until those extensions get updates?
  
  **Tags:** smarty, gdpr, shoreditch, data-processor
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-04-12. Score: 4 | Accepted answer
  
  I would remove the AUTOLOAD line from civicrm.settings.php until those extensions have updates available. They'll need to re-run `civix upgrade` and put out a release.
  
  But the `Error: Call to a member function getOutputByName()` in the dataprocessor extension is something unrelated to smarty. But it might be something temporary while cache was being cleared and if you're not seeing that error anymore it's probably ok.
  
  
  ---
  
  