CakePHP中出现persistent is not writable等Warning的解决方法
生活随笔
收集整理的這篇文章主要介紹了
CakePHP中出现persistent is not writable等Warning的解决方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在新部署CakePHP項目或者從SVN中重新Update項目的時候,有時候會出現下面的警告:
Warning (512): D:\xampp\htdocs\xxxx\app\tmp\cache\ is not writable [CORE\cake\libs\cache\file.php, line 281] Warning (512): \persistent\ is not writable [CORE\cake\libs\cache\file.php, line 281] Warning (512): \models\ is not writable [CORE\cake\libs\cache\file.php, line 281] Warning (2): Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\xxxx\cake\libs\debugger.php:686) [APP\app_controller.php, line 52]
這是因為app下tmp文件丟失的原因,tmp文件夾中存放的是系統生成的臨時文件,在導出系統的時候一般會忽略。解決的辦法就新建tmp及其子文件夾,tmp的文件夾結構如下:
轉載于:https://www.cnblogs.com/pallee/p/4077992.html
總結
以上是生活随笔為你收集整理的CakePHP中出现persistent is not writable等Warning的解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 大家帮帮我,我该怎么办[已扎口]
- 下一篇: 考开头的成语有哪些啊?