wordpress致命错误:内存不足 [英] wordpress Fatal error: Out of memory

查看:121
本文介绍了wordpress致命错误:内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已通过WHM> PHP配置编辑器将php内存限制从whm设置为256M. 即便如此,我的wordpress网站和管理员仍在向我显示如下错误.

I have set php memory limit from whm to 256M from WHM > PHP Configuration Editor. Even so, my wordpress website and admin is showing me an error like below.

Fatal error: Out of memory (allocated 36175872) (tried to allocate 30720 bytes) in /home/XXXX/public_html/wp-includes/class-simplepie.php on line 14272
Fatal error: Out of memory (allocated 35127296) (tried to allocate 1966080 bytes) in /home/XXXX/public_html/wp-includes/class-simplepie.php on line 5427

我还尝试将以下行添加到wp-config.php的顶部,但是没有运气和相同的错误.

I also tried to add following line to the top of wp-config.php, but no luck and same error.

define('WP_MEMORY_LIMIT', '128M');

任何人都可以建议我或告诉我解决方案吗?

can anyone suggest me or tell me what may be the solution?

推荐答案

我终于认为我已经从内存不足致命错误中解决了PHP的死亡白屏".

I finally think I've solved the White Screen of Death from PHP out of memory Fatal Errors.

此处提供完整详细信息: http://www.isthisyourhomework.com/how-to-fix-the-wordpress-white-screen-of-death/

Full details here: http://www.isthisyourhomework.com/how-to-fix-the-wordpress-white-screen-of-death/

如果设置WordPress和PHP内存限制对您不起作用,请尝试在您的Apache conf文件中添加/编辑以下行.我无权访问这些文件,因此我在WP服务器的文档根目录中的.htaccess文件中添加了以下行:

If setting the WordPress and PHP memory limits doesn't work for you, try adding/edditing the following line in either your Apache conf files. I didn't have access to those, so I added the following line to the .htaccess file in my WP server's document root:

RLimitMEM max

许多主机对共享使用服务器上的每个用户都设置了限制.上面的设置将限制您的服务器并消除WSOD.

Many hosts have set limits on each user on shared-use servers. The above setting will unfetter your server and banish the WSOD.

这篇关于wordpress致命错误:内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆