中文版升级到 2.9以后,每当你按下“发布”文章键,系统提示:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 500001 bytes) in /…/wp-includes/class-snoopy.php on line 894

这个故障在“控制板”首页显示有关wp的相关信息时也会出现,类似于:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 491520 bytes) in /…/wp-includes/class-simplepie.php on line 4184

在自动升级插件和 WordPress 系统本身时,都会出现类似的提示。而我在使用英文版的时候完全没有问题。

解决办法是:

修改 wordpress 根目录下的 wp-settings.php 文件,在文件最开始查找:

if ( !defined(‘WP_MEMORY_LIMIT’) )
define(‘WP_MEMORY_LIMIT’, ’32M’);

将 define(‘WP_MEMORY_LIMIT’, ‘32M’); 当中的32改写成64或者更高,

if ( !defined(‘WP_MEMORY_LIMIT’) )
define(‘WP_MEMORY_LIMIT’, ’64M’);

转载请注明文章来自糗世界博客

«上一篇 交互式投影仪将改变我们的生活 | 微软为我们勾画的未来 下一篇»

Tags:

2 Responses to “解决wordpress 2.9中文版内存溢出Bug”

  1. ziniba 说道:

    谢谢你的文章,解决了我的问题.
    加油!很好的网站

    [回复]

    admin 回复:

    谢谢。

    [回复]

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> <pre lang="" line="" escaped="" highlight="">