2011-12-23 52 views
1

好吧,也許這是一個錯誤,試圖激活一個半打左右的插件。但是現在我被卡住了,這是我在嘗試訪問我的WP-Admin頁面時看到的所有內容。我不再熟悉Wordpress,也不知道這是什麼,爲什麼這是,以及我如何去解決它。任何幫助將不勝感激。WordPress的致命錯誤允許的內存plugin.php

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /home/monkey/public_html/sites/mysiteurl.com/wp-admin/includes/plugin.php on line 883

+0

也許你的虛擬主機有限制PHP的內存可以使用? – paislee 2011-12-23 01:40:27

回答

1

取消激活所有插件並逐個激活以找到有問題的插件。

這是我會做的。

  • 重命名插件文件夾說/ plugin_off/
  • 嘗試登錄到WP-admin和問題是否有插件,你將能夠登錄。
  • 轉到插件頁面,所有插件將被停用(因爲文件不存在)。
  • 將Plugin文件夾重新命名爲/ plugin/
  • 一個接一個地激活插件,直到遇到同樣的問題。
  • 之前激活的最後一個引起麻煩。 (您可以決定不使用或檢查插件論壇上看到類似的問題,或者增加內存限制說64MB,並嘗試或調試插件自己。)
+0

然後,我會重新開始,並首先激活一個「給你帶來麻煩」的問題。如果這次沒有失敗,那麼您的虛擬主機可能會強制執行合法的內存限制。 – paislee 2011-12-23 01:44:44

2

要增加WordPress的內存64MB以下內容添加到WP -config.php:

define('WP_MEMORY_LIMIT', '64M'); 

從WordPress官方documentation上增加內存限制:

WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as "Allowed memory size of xxxxxx bytes exhausted".

...

Please note, this setting may not work if your host does not allow for increasing the PHP memory limit--in that event, contact your host to increase the PHP memory limit. Also, note that many hosts set the PHP limit at 8MB

如果不斷添加插件,最終會導致內存不足。在你的情況下,33554432字節正好是32MB,這是上面預期的四倍。但你的虛擬主機可能仍然允許你增加。如果沒有,可能是時候移動網絡主機。祝你好運。

相關問題