PHP允許的存儲容量Exchausted致命錯誤

當它exchausted并且用盡8 MB內存分配的缺省內存要求,一個功能PHP劇本退回以下錯誤在網頁或在亞帕基印第安人錯誤日誌文件:

PHP致命錯誤: 8388608個字節的允許的存儲容量用盡(設法分配…字節)在…

錯誤通常生成,當PHP設法處理大數據庫紀錄時或,當進口或出口。 要解決錯誤,有二個決議。 你是通過增加或包括一條另外的線改變和增加特殊PHP劇本的記憶極限在劇本的上面:

ini_set (」 memory_limit」」, 16M」);

您能分配記憶極限到您通過改變16M喜歡到其他數字的任何數額,例如12M或24M。 16M將定記憶極限到16兆字節。 如果這不運作和PHP錯誤仍然出現,增加記憶極限,直到PHP完全寫電影腳本賽跑或您的系統硬件極限。

為跑在服務器的所有PHP劇本要永久地改變內存分配極限,修改服務器(地點的PHP.INI配置文件根據您的OS和設施方法)。 搜尋memory_limit在打開在編輯的文件以後。 如果memory_limit不存在,增加以下線。 如果它那裡,修改memory_limit的價值:

memory_limit = 12M

12M定極限到12兆字節(12582912個字節)。 改變到價值您中意。

一個可供選擇的方法將修改引起錯誤為更多效率并且改善數據處理的您的PHP劇本。

重要: 這是現狀提供,不用保單的機器翻譯的頁。 計算機翻譯也許是難瞭解。 參見 原始的英國文章 每當可能。

分享并且貢獻或者得到技術支持并且幫助在 我的數字式生活論壇.



7 Responses to “PHP Allowed Memory Size Exchausted Fatal Error”

  1. freelovers
    December 19th, 2007 09:58
    1

    I have same problem with yours. Can this problem solved by editing any wordpress file? or….
    without configuring php.ini?
    thanks before

  2. Angel
    January 27th, 2008 17:35
    2

    I follow your instruction by modifying php.ini and it works. Thanks for sharing this information.

  3. Relieved
    January 31st, 2008 11:20
    3

    Exactly what I was looking for to solve my problems! Thanks for the simple and clear instruction!

  4. jawarh
    February 16th, 2008 19:50
    4

    thanks

  5. Peter
    March 6th, 2008 10:32
    5

    After trying many solutions in order to get Wordpress to co-operate with Microsoft live writer. I finally came here and after editing “/wp-admin/includes/image.php”, the problem was solved.

    I just needed to add…

    ini_set(”memory_limit”,”12M”);

    … right under the <?php tag

  6. albachtimi
    May 1st, 2008 13:34
    6

    where is PHP.INI location???

  7. online information
    May 22nd, 2008 11:15
    7

    I have ever got the same problem, but this ini_set(”memory_limit”,”12M”); line could not solved my problems. I just removed all waste plugin. And walah, It worked.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

ini_set memory limit - ini_set memory - php ini_set memory - php memory size - php allowed memory size - memory php - PHP Fatal error: Allowed memory size of - php memory - Fatal error: Allowed memory size wordpress - php allowed memory size exhausted - php ini_set memory limit - php set memory limit - Wordpress Fatal error: Allowed memory size - php memory limit ini_set - PHP fatal error: Allowed memory size of - Allowed memory size php - php set memory size - Fatal error: Allowed memory size of 12582912 bytes exhausted - increase php memory - set memory limit php - PHP Fatal error: Allowed memory size - ini set memory limit - ini_set memory_limit - increase php memory size - PHP Fatal error: Allowed memory size - Memory allocated for PHP script - Fatal error: Allowed memory size of wordpress - php Fatal error: Allowed memory size of - php Allowed memory size of - wordpress Fatal error - PHP Fatal error: Allowed memory size of - php allowed memory - php set memory - ini_set memory php - Allowed memory size exhausted php - php increase memory - ini set memory - php increase memory size - wordpress Fatal error: Allowed memory size of - Allowed memory size of 12582912 bytes exhausted - "PHP Fatal error: Allowed memory size of" - wordpress Fatal error: Allowed memory size of 8388608 bytes exhausted - wordpress Fatal error: Allowed memory size of - Fatal error: Allowed memory size of 12582912 bytes exhausted - ini_set php memory - php Allowed memory size - php Allowed memory size of - Fatal error: Allowed memory size of wordpress - PHP Fatal error: Allowed memory size of 8388608 bytes exhausted - memory size php - wordpress Fatal error: Allowed memory size - ini_set memory size - increasing PHP memory - set memory php - wordpress fatal error allowed memory size - php "Allowed memory size of" - ini_set("MEMORY_LIMIT" - php Fatal error: Allowed memory size - php memory ini_set - php ini_set memory size - wordpress Allowed memory size of 8388608 bytes exhausted - wordpress "Fatal error: Allowed memory size" - php "allowed memory size" - PHP Fatal error: Allowed memory size - Allowed memory size of php - increase memory size php - "Fatal error: Allowed memory size" wordpress - Fatal error: Allowed memory size - set memory size php - Fatal error: Allowed memory size php - increase memory php - php increase allowed memory - php memory exhausted - Allowed memory size exhausted - wordpress Fatal error: Allowed memory size of 8388608 bytes exhausted -