wordpress 致命错误:内存不足

发布于 2024-11-27 01:46:19 字数 557 浏览 1 评论 0原文

我已将 php 内存限制从 WHM > 设置为 256M PHP 配置编辑器。 即便如此,我的 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

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

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

谁能建议我或告诉我解决方案是什么?

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

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

柠栀 2024-12-04 01:46:19

我终于认为我已经解决了 PHP 内存不足致命错误导致的白屏死机问题。

完整详细信息请参见:http://www. isthisyourhomework.com/how-to-fix-the-wordpress-white-screen-of-death/

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

RLimitMEM max

许多主机对共享使用服务器上的每个用户设置了限制。上述设置将解除您的服务器的束缚并消除 WSOD。

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

Full details here: 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. 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

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

七堇年 2024-12-04 01:46:19

SimplePie 人们认为这是由 PHP 中的错误。它已在 PHP 5.3 版本中修复。升级可能会有所帮助。

新版本的 SimplePie 使用较少的内存,但仍然遭受相同的 PHP 错误,该错误会导致大量缓存项目导致您使用大量内存。

The SimplePie people reckon that this is caused by a bug in PHP. It was fixed in PHP version 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.

音栖息无 2024-12-04 01:46:19

您是否更改了 php.ini 中的内存限制(或通过 WHM 服务配置页面)?如果是这样,请尝试重新启动 Apache

Did you change the memory limit in php.ini(or through WHM service configuration page)? If so, try rebooting Apache

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文