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劇本。
重要: 這是現狀提供,不用保單的機器翻譯的頁。 計算機翻譯也許是難瞭解。 參見 原始的英國文章 每當可能。
分享并且貢獻或者得到技術支持并且幫助在 我的數字式生活論壇.
相關文章
- PHP分析錯誤: 句法錯誤,意想不到的$end
- gmmktime錯誤在WordPress和MagpieRSS
- 如何定做,修改或改變WordPress數據庫連接錯誤頁
- PHP實際上寫電影腳本open_basedir制約錯誤
- Oracle EXP-00091錯誤,當出口數據庫
- 評論和評論塊在PHP
- Enable MySQL InnoDB Storage Engine Support in XAMPP Installation
- PHP 5 Unable to Open HTTP Request Stream with fopen or fsockopen Functions
- Spb Finance Synchronization Error in Microsoft ActiveSync
- Joomla Direct Access to This Location Is Not Allowed Error

































December 19th, 2007 09:58
I have same problem with yours. Can this problem solved by editing any wordpress file? or….
without configuring php.ini?
thanks before
January 27th, 2008 17:35
I follow your instruction by modifying php.ini and it works. Thanks for sharing this information.
January 31st, 2008 11:20
Exactly what I was looking for to solve my problems! Thanks for the simple and clear instruction!
February 16th, 2008 19:50
thanks
March 6th, 2008 10:32
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
May 1st, 2008 13:34
where is PHP.INI location???
May 22nd, 2008 11:15
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.