Allowed memory size of 33554432 bytes exhausted

有时候在WordPress控制面板更新插件、更新wp版本、恢复数据库时会显示下面的错误信息:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in

解决这个的方法是:

方法一:

1、打开网站文件wp-settings.php,找到下面这段代码

1
2
   if ( !defined('WP_MEMORY_LIMIT') )
     define('WP_MEMORY_LIMIT', '32M');

2、将WP_MEMORY_LIMIT的值改为64M或128M

方法二:

如果你主机控制面板是cpanel,可以使用下面这个方法

1、在cpanel面板选择php Config,选择PHP5(Single php.ini) 单击保存

2、进入File Manager,进入public_html,找到php.ini,修改 memory_limit = 32M 为 memory_limit = 128M

2009年7月1日 | 归档于 美国主机

  1. 2010年2月19日 14:51 | #1

    呵呵,方法2 CPANEL后台我没找到,估计是我没权限吧,用方法1解决了。3Q博主

  2. 2009年12月7日 23:01 | #2

    我是国外主机,不过好像没有这个设置功能啊。。

  3. 2009年11月29日 23:40 | #4

    已经达到忘我的境界了,呵呵

  4. 2009年11月29日 21:19 | #5

    来玩玩小游戏哦

  5. 2009年11月29日 18:44 | #6

    Hi, Interesting, did you plan to continue this article?
    SuperSonic

  6. 2009年11月27日 12:54 | #7

    你太有才了吧!还要和你好好学习!

  7. 2009年11月27日 00:13 | #9

    Interesting, I`ll quote it on my site later.
    Socco

发表评论

XHTML: 您可以使用这些标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">
:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)

Spam Protection by WP-SpamFree