我試圖在臨時環境中將我們的 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 中作業正常,唯一的變化是升級
有任何想法嗎?
uj5u.com熱心網友回復:
試試這些,測驗每個,/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
uj5u.com熱心網友回復:
你檢查elasticsearch嗎?
就我而言,當我遠程修復與 elasticsearch 服務器的連接時,我解決了這個問題。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/362416.html
標籤:php 马恩托 土坯 产品 magento2.4
上一篇:ValueError:呼叫層“max_pooling2d_26”(型別MaxPooling2D)時遇到例外
下一篇:預推git鉤子沒有被拿起
