WordPress问题:“Allowed memory size of 33554432 bytes exhausted”

有时候在WordPress控制面板更新插件、更新wp版本、恢复数据库时会显示下面的错误信息:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in

解决这个的方法是:

方法一:

1、打开网站文件wp-settings.php,找到下面这段代码

 

1
2
   if ( !defined('ffa_MEMORY_LIMIT') )
     define('ffa_MEMORY_LIMIT', '32M');

2、将ffa_MEMORY_LIMIT的值改为64M或128M

方法二:

如果你主机控制面板是cpanel,可以使用下面这个方法

1、在cpanel面板选择php Config,选择PHP5(Single php.ini) 单击保存

2、进入File Manager,进入public_html,找到php.ini,修改 memory_limit = 32M 为 memory_limit = 128M

 

参考引用:Allowed memory size of 33554432 bytes exhausted

Post a Comment

Your email is never published nor shared. Required fields are marked *

*

*

Type your comment out: