Today i got this kind of error in my CakePHP 1.3. Here are the error code :
1 | tmp/cache/ is not writable [CORE/cake/libs/cache/file.php, line 267] app/tmp/cache/persistent/ is not writable [CORE/cake/libs/cache/ file.php, line 267] |
I tried to solve this by chmod and change permisssion recursive into app/tmp.
1 2 | cd app/ chmod 777 -R tmp |
Hey, after change permission, it’s still give me error. What happen here? After walking around and analyze the error, i found the problem. It’s because i use file caching built-in CakePHP. So, i better disable it’s by editing app/config/core.php :
1 2 3 4 5 | if($_SERVER[‘SERVER_NAME’] == ‘localhost’) { Configure::write(‘Cache.disable’, true); }else{ Configure::write(‘Cache.disable’, false); } |
This fixed my CakePHP in localhost. Now, time to works again and swipe another errors 🙂