Welcome to the Treehouse Community
Looking to learn something new?
Michal Broniewicz6,669 Points
Slim 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:
Message: Unable to write in the cache directory (/home/treehouse/workspace/cache/3f/11).
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?
Zeljko Porobija11,490 Points
I 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