WordPress 内存报错的解决方法

2009.05.14

刚刚在更新 Blog 的时候忽然发现 Archive 页面访问报错,提示字样为:

Fatal error: Allowed memory size of XXXXXXX bytes exhausted (tried to allocate XXXXXXX bytes) …

Google 一下解决方法,做一个简单的笔记留作备用:

打开 wp-setting.php 文件,找到如下代码

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

将代码中 “32M” 手动改为 “64M” 后提交保存,问题解决

在此向原作者致谢

If you enjoyed this post, make sure you subscribe to my RSS feed!
Categories : Tips
Tags :

Leave a comment