前幾天我開始了新的Symfony2應用程序,我得到一些麻煩與緩存:致命錯誤:用盡33554432個字節允許內存大小(試圖分配72個字節)
$ rm -rf ./app/cache/*
$ rm -rf ./app/logs/*
$ ./app/console cache:clear
Clearing the cache for the dev environment with debug true
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /Users/simonegentili/Development/Www/shop_website/vendor/twig/twig/lib/Twig/Node/Text.php on line 23
而且......
$ ./app/console cache:clear --env=prod
工作正常。
只是簡單的'rm -rf app/cache/*'適合你嗎?你也可以打開Symfony GitHub頁面上的錯誤報告。 – smottt 2013-03-09 08:06:28
沒有抱歉,但泰克。我更新了問題。 – sensorario 2013-03-09 08:09:14
作爲一個quickfix,你可以嘗試和php_ini中的memory_limit說.. 64MB? – smottt 2013-03-09 08:41:20