1

我试图在暂存环境中将我们的 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 中运行良好,唯一的变化是升级

有任何想法吗?

4

2 回答 2

0

你检查弹性搜索吗?

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

于 2021-11-18T04:51:17.813 回答
0

试试这些,测试每个,/usr/bin/php74 bin/magento c:f) /usr/bin/php74 bin/magento catalog:images:resize /usr/bin/php74 bin/magento indexer:reset /usr/bin /php74 bin/magento indexer:reindex /usr/bin/php74 bin/magento cache:clean full_page block_html /usr/bin/php74 bin/magento setup:static-content:deploy -f

于 2021-09-19T11:43:38.323 回答