【问题标题】:How to increase memory_limit in wordpress?如何增加 wordpress 中的 memory_limit?
【发布时间】:2015-05-05 00:48:53
【问题描述】:

最近我在我的服务器上设置了我的网站(http://abc.hostname.com/sitename/),我收到以下错误:

It seems like the memory_limit on the server is too low for the fade on load feature. 

我在 wp-config.php 中添加以下代码来解决这个错误:

define( 'WP_MEMORY_LIMIT', '96M' ); also
ini_set("memory_limit","60M");

但错误仍然存​​在。

【问题讨论】:

    标签: wordpress web-config memory-limit


    【解决方案1】:

    要增加内存限制。你所要做的就是在 wp-config 文件中找到第 36 或 37 行并在其中添加以下代码。

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

    问题将得到解决。我认为您将上述代码放在 wp-config 文件中的其他位置。请仅在第 36 行或第 37 行添加上述代码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-04-07
      • 2022-06-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-12
      • 1970-01-01
      相关资源
      最近更新 更多