2011-12-23 53 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,这是上面预期的四倍。但你的虚拟主机可能仍然允许你增加。如果没有,可能是时候移动网络主机。祝你好运。

相关问题