WordPress 中文版升级到 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: wordpress

谢谢你的文章,解决了我的问题.
加油!很好的网站
[回复]
admin 回复:
二月 17th, 2010 at 9:22 上午
谢谢。
[回复]