Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMichal Broniewicz
6,681 PointsSlim application Error: Unable to write in the cache directory
Yesterday everything was working fine. All pages of my website are working but this one is not. Error looks like:
Type: RuntimeException
Message: Unable to write in the cache directory (/home/treehouse/workspace/cache/3f/11).
File: /home/treehouse/workspace/vendor/twig/twig/lib/Twig/Environment.php
Line: 1278
As i was reading thru most people talk about premission issue.. But why it stopped working while i was not even editing code since it worked. Anyone could help?
2 Answers
Iain Simmons
Treehouse Moderator 32,305 PointsI'd suggest reporting that to Treehouse Support directly. Sounds like a bug, perhaps they were working on Workspaces?
Zeljko Porobija
11,491 PointsI suppose that somewhere in your index.php you have a block like this: ```$view = $app->view(); $view->parserOptions = array( 'debug' => true, 'cache' => dirname(FILE) . '/cache' );
Just delete the line ```'cache' => dirname(__FILE__) . '/cache'```
That was my problem, we copied the code from SLIM (and it was a sort of different code than it was during the
making of this tutorial
simon iribarren
7,909 Pointssimon iribarren
7,909 PointsSame problem! did you fix it??