查看文章
 
最新WordPress内存溢出解决方法
2011/06/29 15:16

非常不确定这样改是不是正确的,会不会有一些弊病。

希望有效吧。

文章来源于互联网

--------

 

今天登陆博客后台,出现如下错误提示:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /****/public_html/wp-admin/includes/***.php on line 199

试用了以前的三个解决方法(.htaccess、wp-settings.php、wp-config.php),发现都不行了,搜索了一下,在微点博客发现了最新的解决方法。目前此方法适用版本:3.01 – 3.13。

打开/wp-includes/default-constants.php文件,修改如下代码:

// set memory limits if ( !defined(‘WP_MEMORY_LIMIT’) ) { if( is_multisite() ) { define(‘WP_MEMORY_LIMIT’, ‘64M‘); } else { define(‘WP_MEMORY_LIMIT’, ‘32M‘); } }

修改成:

// set memory limits if ( !defined(‘WP_MEMORY_LIMIT’) ) { if( is_multisite() ) { define(‘WP_MEMORY_LIMIT’, ‘128M‘); } else { define(‘WP_MEMORY_LIMIT’, ‘64M‘); } }

可怜的WordPress,数据承载能力方面还是没什么提升。


类别:工作记||添加到搜藏 |分享到i贴吧|浏览(140)|评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
     

   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu