Body: <p>An &quot;cv core:check-req&quot; after a fresh install of Drupal 9 and CiviCRM 5.60 showed</p>
  <blockquote>
  <p>The template compile dir
  &quot;.../home//public_html/web/web/sites/default/files/civ/templates_c&quot;
  can be created.</p>
  </blockquote>
  <p>but there is no path &quot;.../files/civ&quot;
  and templates_c exists in path</p>
  <blockquote>
  <p>.../public_html/web/sites/default/files/civicrm/templates_c</p>
  </blockquote>
  <p>Should I point &quot;template compile dir&quot; to this location?</p>
  <blockquote>
  <p>cv core:check-req
  --templateCompilePathWritable=
  &quot;/public_html/web/sites/default/files/civicrm&quot;</p>
  </blockquote>
  <p>What happens when &quot;template compile dir&quot; is not properly set?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-04-24T21:16:54.500Z
Comments.Text: I'm not sure how that would happen on a fresh install but check what template compile dir is set to in civicrm.settings.php
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-04-25T07:19:52.673Z
Comments.Text: @Demerit, thks for reply.
  In civicrm.settings.php:
  
  if (!defined('CIVICRM_TEMPLATE_COMPILEDIR')) {
    define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/<account>/public_html/web/sites/default/files/civicrm/templates_c');
  }
Comments.UserDisplayName: MarkDQ
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-04-25T19:35:29.050Z
Comments.Text: That looks right. I don't know where else the "civ" would be coming from.
Comments.UserDisplayName: Demerit
Tags: <settings><cv>
Title: var "template compile dir" not set properly
ThreadText: # var "template compile dir" not set properly
  
  (Asked by: username_0 on 2023-04-24)
  
  An "cv core:check-req" after a fresh install of Drupal 9 and CiviCRM 5.60 showed
  
  > The template compile dir
  > ".../home//public\_html/web/web/sites/default/files/civ/templates\_c"
  > can be created.
  
  but there is no path ".../files/civ"
  and templates\_c exists in path
  
  > .../public\_html/web/sites/default/files/civicrm/templates\_c
  
  Should I point "template compile dir" to this location?
  
  > cv core:check-req
  > --templateCompilePathWritable=
  > "/public\_html/web/sites/default/files/civicrm"
  
  What happens when "template compile dir" is not properly set?
  
  **Tags:** settings, cv
  
  > **Comments:**
  > **username_1**: I'm not sure how that would happen on a fresh install but check what template compile dir is set to in civicrm.settings.php  
  > **username_0**: @username_1, thks for reply. In civicrm.settings.php:  if (!defined('CIVICRM_TEMPLATE_COMPILEDIR')) {   define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/<account>/public_html/web/sites/default/files/civicrm/templates_c'); }  
  > **username_1**: That looks right. I don't know where else the "civ" would be coming from.  
  
  ---
  
  ## 0 answers
  
  