Body: <p>Ive been thrust into trying to help a buddy fix his civicrm deployment and I cannot find a way to generate this template necessary to populate that page.</p>
  <p>Looking at the errors it is looking for the following file but it isn't there. The directory is there and empty.</p>
  <pre><code>templates_c/en_US//%%45/45F/45F354E8%%ICalendar.tpl.php
  </code></pre>
  <p>I can figure out that there is a ICal.tpl file in the default templates folder, but I can't figure out how to regenerate the tpl.php file anywhere, nor did my poor attempts to hacking at php templates and copy it over work.</p>
  <p>What generates the pre-pended ID? Is there a way to regenerate this file directly? I have no idea if its a custom template or not, but I dont think it is.</p>
  <p>I have searched and have found nothing</p>
  <p>Thanks</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-02-12T21:56:05.997Z
Comments.Text: Turns out, it was permissions. I have no idea how that got broken since no one should have been touching this. Thanks @JonG-MegaphoneTech
Comments.UserDisplayName: NikolaeVarius
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-02-06T17:56:45.527Z
Comments.Text: Can you post the error message? With a stack trace if you have it (see https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories). The templates_c folder is a cache folder that holds compiled templates and will regenerate as needed, assuming the web server has write access.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-02-08T04:31:25.740Z
Comments.Text: To add on to what @Demerit said - `templates_c` can be deleted at any time and it will be automatically regenerated.  If a file isn't there, it's generally a permissions issue; check the file permissions and the file owner.  The file owner should be the same user that PHP runs under - e.g. `www-data` on Debian w/ `mod_php`, or the user specified by your `pool.d` if running `php-fpm`.
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <civievent><drupal><error><php><templates>
Title: "Current and Upcoming Events" is missing and trying to ICalendar.tpl.php file that does not exist
ThreadText: # "Current and Upcoming Events" is missing and trying to ICalendar.tpl.php file that does not exist
  
  (Asked by: username_0 on 2022-02-06)
  
  Ive been thrust into trying to help a buddy fix his civicrm deployment and I cannot find a way to generate this template necessary to populate that page.
  Looking at the errors it is looking for the following file but it isn't there. The directory is there and empty.
  templates_c/en_US//%%45/45F/45F354E8%%ICalendar.tpl.php
  
  I can figure out that there is a ICal.tpl file in the default templates folder, but I can't figure out how to regenerate the tpl.php file anywhere, nor did my poor attempts to hacking at php templates and copy it over work.
  What generates the pre-pended ID? Is there a way to regenerate this file directly? I have no idea if its a custom template or not, but I dont think it is.
  I have searched and have found nothing
  Thanks
  
  **Tags:** civievent, drupal, error, php, templates
  
  > **Comments:**
  > **username_1**: Can you post the error message? With a stack trace if you have it (see https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories). The templates_c folder is a cache folder that holds compiled templates and will regenerate as needed, assuming the web server has write access.  
  > **username_2**: To add on to what @username_1 said - `templates_c` can be deleted at any time and it will be automatically regenerated.  If a file isn't there, it's generally a permissions issue; check the file permissions and the file owner.  The file owner should be the same user that PHP runs under - e.g. `www-data` on Debian w/ `mod_php`, or the user specified by your `pool.d` if running `php-fpm`.  
  > **username_0**: Turns out, it was permissions. I have no idea how that got broken since no one should have been touching this. Thanks @JonG-MegaphoneTech  
  
  ---
  
  ## 0 answers
  
  