解决 WordPress 2.9 运行时的一个 bug
最近,我把 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,问题解决。
感觉php开源的东西都发展的很快