繁体   English   中英

无法在 magento 2.4.3 中查看类别下的产品

[英]Cant view products under categories in magento 2.4.3

我试图在临时环境中将我们的 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 中工作正常,唯一的变化是升级

有任何想法吗?

试试这些,测试每个,/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

你检查elasticsearch吗?

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM