dongshadu4498 2014-12-14 15:32
浏览 49
已采纳

允许的X字节内存大小耗尽(尝试分配X字节)

I saw this question, but the answer did not help me to solve the problem. So I'm sending a new question.

It drupal 6 site, that in this part it use the flot javascript to open files. It's work when I open few files but when I increase it, I get a blank page and in the error_log I get:

PHP Fatal error:  Allowed memory size of 524288000 bytes exhausted (tried to allocate 107678417 bytes) in /path/to/site/includes/common.inc on line 167, referer: http://server/spectra/list

I tried to increase the size of memory_limit in php.ini & .htaccess, I saw that the size changed with phpinfo() but when I load the page I get exactly the same error with the same number. I increase the size from 128M to 1024M and it still give the same error with the same number 524288000. Where this number is set? Thanks.

  • 写回答

2条回答 默认 最新

  • douben7260 2014-12-15 04:44
    关注

    I cannot tell you directly where to find the setting but I can tell you how.

    If you're using a *nix system, do

    grep -r memory_limit /path/to/drupal/installation 
    

    If you're on Windows, use a(n advanced) text editor to search in the path.

    I suspect you'll find the setting in either index.php or settings.php.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?