Hi,
i want to use Twig on a development website.
Link in secure note.
I get this error message:
Could not render Twig template :
Unable to create the cache directory (/tmp/cornerstone/twig/d7).
Thank you,
Hannes
Hello @salilou,
Thanks for writing to us.
Based on the error you shared, it appears there’s a permissions issue preventing PHP from creating the required Twig cache directory. I recommend setting the correct file permissions on your server—specifically, ensure /tmp (or your custom cache path) has write access. Please review this helpful article for detailed steps on setting file permissions properly.
I would suggest you go to the WordPress dashboard ->Cornerstone->Theme Options ->Twig->Extensions->Cache, disable the Cache toggle, and recheck it.
Hope it helps
Thanks