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.


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


  • 2
    Can you post the error message? With a stack trace if you have it (see civicrm.stackexchange.com/questions/15931/…). The templates_c folder is a cache folder that holds compiled templates and will regenerate as needed, assuming the web server has write access.
    – Demerit
    Feb 6, 2022 at 17:56
  • 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. Feb 8, 2022 at 4:31
  • Turns out, it was permissions. I have no idea how that got broken since no one should have been touching this. Thanks @JonG-MegaphoneTech Feb 12, 2022 at 21:56


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.