简体   繁体   English

wordpress致命错误:内存不足

[英]wordpress Fatal error: Out of memory

I have set php memory limit from whm to 256M from WHM > PHP Configuration Editor. 我已经从WHM> PHP配置编辑器中将php内存限制从whm设置为256M。 Even so, my wordpress website and admin is showing me an error like below. 即使这样,我的wordpress网站和管理员仍在向我显示如下错误。

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

I also tried to add following line to the top of wp-config.php, but no luck and same error. 我还尝试将以下行添加到wp-config.php的顶部,但是没有运气和相同的错误。

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

can anyone suggest me or tell me what may be the solution? 谁能建议我或告诉我可能的解决方案?

I finally think I've solved the White Screen of Death from PHP out of memory Fatal Errors. 我终于认为我已经从内存不足的致命错误中解决了PHP的“死亡白屏”。

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

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. 如果设置WordPress和PHP内存限制对您不起作用,请尝试在您的Apache conf文件中添加/删除以下行。 I didn't have access to those, so I added the following line to the .htaccess file in my WP server's document root: 我无权访问这些文件,因此我在WP服务器的文档根目录中的.htaccess文件中添加了以下行:

RLimitMEM max

Many hosts have set limits on each user on shared-use servers. 许多主机为共享使用服务器上的每个用户设置了限制。 The above setting will unfetter your server and banish the WSOD. 上面的设置将限制您的服务器并取消WSOD。

The SimplePie people reckon that this is caused by a bug in PHP . SimplePie人们认为这是PHP中错误引起的。 It was fixed in PHP version 5.3. 它已在PHP版本5.3中修复。 Upgrading might help. 升级可能会有所帮助。

Newer versions of SimplePie use less memory but still suffer from the same PHP bug that causes lots of cached items to cause you to use loads of memory. 较新版本的SimplePie使用较少的内存,但仍然遭受相同的PHP错误,该bug导致大量缓存项导致您使用内存负载。

Did you change the memory limit in php.ini(or through WHM service configuration page)? 您是否更改了php.ini中的内存限制(或通过WHM服务配置页面)? If so, try rebooting Apache 如果是这样,请尝试重新启动Apache

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM