【问题标题】:Cant view products under categories in magento 2.4.3无法在 magento 2.4.3 中查看类别下的产品
【发布时间】:2021-10-24 20:24:56
【问题描述】:

我正在尝试在暂存环境中将我们的 magento 商务网站从 2.4.1 升级到 2.4.3 - 我几乎可以正常工作,但我发现在最低级别的类别树中导航时,没有产品仅显示留言

我们找不到符合选择的产品。

我以前看过这个并尝试了所有常见的建议

  • 重新索引
  • 清除缓存
  • 刷新缓存
  • 清除首页缓存

没有运气。搜索产品和查看结果工作正常。

我也尝试过这里发布的解决方案

https://community.magento.com/t5/Magento-2-x-Technical-Issues/products-not-showing-in-category-on-frontend-Magento-2-but/td-p/143481

https://magento.stackexchange.com/questions/135814/products-are-not-showing-in-category-magento-2

https://digitalstartup.co.uk/t/products-not-showing-in-categories-but-are-there-in-the-database-and-backend/1838/11

这导致我发现在管理部分编辑产品属性存在问题,加载属性时出现 js 错误,数据加载但无法保存。

Uncaught TypeError: Cannot read property 'show' of undefined
    at switchDefaultValueField ((index):1279)
    at bindAttributeInputType ((index):1120)
    at HTMLDocument.<anonymous> ((index):1389)
    at fire (jquery.min.js:212)
    at Object.add [as done] (jquery.min.js:215)
    at jQuery.fn.init.jQuery.fn.ready (jquery.min.js:223)
    at jQuery.fn.init (jquery.min.js:200)
    at new jQuery.fn.init (jquery-migrate.min.js:27)
    at jQuery (jquery.min.js:16)
    at (index):1388

我尝试在 SQL 级别将属性设置为不可过滤且不可搜索,但没有运气。

这在 2.4.1 中运行良好,唯一的变化是升级

有什么想法吗?

【问题讨论】:

    标签: php magento adobe product magento2.4


    【解决方案1】:

    你检查弹性搜索吗?

    就我而言,当我远程修复与 elasticsearch 服务器的连接时,我解决了这个问题。

    【讨论】:

    • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
    【解决方案2】:

    试试这些,测试每一个, /usr/bin/php74 bin/magento c:f) /usr/bin/php74 bin/magento 目录:图像:调整大小 /usr/bin/php74 bin/magento 索引器:重置 /usr/bin/php74 bin/magento 索引器:重新索引 /usr/bin/php74 bin/magento cache:clean full_page block_html /usr/bin/php74 bin/magento setup:static-content:deploy -f

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多