CakePHP:致命错误:允许的内存大小为 536870912 字节已用完(尝试分配 52 字节)
我有一个在 CakePHP v 1.3
上运行的应用程序.我已将 wamp
服务器更新为 v2.4
.更新后我收到此错误消息.我对 php.ini 设置进行了这些更改.
Hi i have a apps running on CakePHP v 1.3
. I've updated my wamp
server to v2.4
.After updating i got this error message.I did these changes into my php.ini settings.
- memory_limit = 128M
- file_uploads = 开启
- upload_max_filesize = 128M
- max_input_time
- 最大执行时间 = 300
- post_max_size = 128M
- realpath_cache_size = 16k
- realpath_cache_ttl = 120
但我仍然收到这些错误消息:
But i'm still getting these Error message :
CakePHP : Fatal error: Allowed memory size of 536870912 bytes exhausted
(tried to allocate 52 bytes) in C:wampwwwgtgcrmcakelibsmodel
datasourcesdbodbo_mysql.php on line 775
我错过了什么?任何建议将不胜感激!
What i missed ? Any Suggestion will be appreciated !
推荐答案
您可以通过在控制器操作中使用来增加内存限制
You can increase memory limit by using in your controller action
ini_set('memory_limit', '256M');
你也可以增加超时限制
set_time_limit(0); Infinite
相关文章