首页 > Linux学习, 计算机&网络 > 解决 WordPress 2.9 运行时的一个 bug

解决 WordPress 2.9 运行时的一个 bug

2009年12月31日 发表评论 阅读评论

最近,我把 WordPress 升级到 2.9,发现在按下“发布”文章键之后,系统提示:

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

这个故障在点击“控制板”时也会看到:

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

在自动更新插件和 WordPress 系统自身时,也会出现。

经过分析,发现是内存限制上的问题。解决办法是:

修改 wordpress 根目录下的 wp-settings.php 文件,将 define(‘WP_MEMORY_LIMIT’, ’64M’); 中的 32 改成 64,问题解决。

  1. 穿拖鞋的鱼
    2010年6月5日21:03 | #1

    感觉php开源的东西都发展的很快

  1. 本文目前尚无任何 trackbacks 和 pingbacks.
您必须在 登录 后才能发布评论.