【问题标题】:WordPress Appearance -> Menus page is giving 504 gateway timeout errorWordPress 外观 -> 菜单页面出现 504 网关超时错误
【发布时间】:2019-10-02 18:10:09
【问题描述】:

这是一个全新的 WordPress 安装。一切正常,直到昨晚我为 WooCommerce 同步了大约 1500 种产品和 150 个类别(嵌套)。

当我进入管理下的外观 -> 菜单时,它会等待一段时间并给出 504 网关超时错误。之前运行良好,我确信这是因为产品和类别众多。

前端商店页面可以在几秒钟内正确加载,所有类别和产品都没有任何问题。所以,我确信这也不是一个无限的父类别循环,可能是 WooCommerce 本身允许这样做。

我尝试更改 NGINX -> php.ini 限制,但也没有用。

max_execution_time = 120
memory_limit = 1024M

我也尝试在wp-config.php 中创建define( 'WP_DEBUG', true );,但它没有输出任何有用的信息。

将 Chrome 请求复制为 CURL 并在同一台服务器上运行它,它也给出了同样的错误:

<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

我想知道我在这里缺少什么,可能任何 WordPress 专家都可以提供帮助。
我从一开始就在172.18.0.131本地IP安装/使用商店进行测试。仅 HTTP,暂时不使用 SSL。


编辑:补充一点,我使用的是 themeforest 的高级主题,将其更改为 29 主题,但问题仍然存在,所以我确信这也与主题无关。

这个问题更有可能与 WooCommerce 类别和产品有关。

【问题讨论】:

  • 您是否从菜单屏幕上的屏幕选项中更改了每页的记录数?
  • @AmitKumar:谢谢 Amit,但我通过禁用有问题的菜单插件解决了这个问题。

标签: php wordpress nginx woocommerce


【解决方案1】:

在发布此问题后,我尝试禁用 WordPress 的 If Menu 插件:https://wordpress.org/plugins/if-menu/

然后,瞧,菜单页面全速打开。 希望它可以帮助某人。

【讨论】:

    猜你喜欢
    • 2020-10-27
    • 2011-04-08
    • 2017-06-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多