[僅限PaaS]{class="badge informative" title="僅適用於雲端專案(Adobe管理的PaaS基礎結構)和內部部署專案的Adobe Commerce 。"}

MDVA-43414:執行「inventory.reservations.updateSalabilityStatus」時發生PHP嚴重錯誤

MDVA-43414修補程式可解決在數值SKU上執行inventory.reservations.updateSalabilityStatus佇列取用者時所發生的PHP嚴重錯誤。 安裝品質修補工具(QPT) 1.1.12時,即可使用此修補程式。 修補程式ID為MDVA-43414。 請注意,問題已在Adobe Commerce 2.4.2中修正。

受影響的產品和版本

已為Adobe Commerce版本建立修補程式:

  • Adobe Commerce (所有部署方法) 2.3.6-p1

與Adobe Commerce版本相容:

  • Adobe Commerce (所有部署方法) 2.3.6 - 2.3.7-p2
NOTE
此修補程式可能適用於其他發行了「品質修補程式」工具的版本。 若要檢查修補程式是否與您的Adobe Commerce版本相容,請將magento/quality-patches套件更新至最新版本,並在Quality Patches Tool上檢查相容性:搜尋修補程式頁面。 使用修補程式ID作為搜尋關鍵字,以尋找修補程式。

問題

在數值SKU上執行「inventory.reservations.updateSalabilityStatus」佇列使用者時發生PHP嚴重錯誤。

必要條件

已安裝清查模組。

要再現的步驟

  1. 建立自訂存貨來源,並將其指派給新的存貨存貨。
  2. 使用自訂詳細目錄來源建立產品。
  3. 請確定產品SKU是整數值。
  4. 下訂單。
  5. 執行bin/magento queue:consumer:start inventory.reservations.updateSalabilityStatus命令。

預期結果

佇列會順利啟動。

實際結果

發生PHP嚴重錯誤:

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Magento\InventoryIndexer\Model\Queue\UpdateIndexSalabilityStatus\IndexProcessor::getIndexSalabilityStatus() must be of the type string, int given, called in /vendor/magento/module-inventory-indexer/Model/Queue/UpdateIndexSalabilityStatus/IndexProcessor.php on line 119 and defined in /vendor/magento/module-inventory-indexer/Model/Queue/UpdateIndexSalabilityStatus/IndexProcessor.php:136

套用修補程式

若要套用個別修補程式,請根據您的部署方法使用下列連結:

相關閱讀

若要進一步瞭解「品質修補程式」工具,請參閱:

如需QPT中其他修補程式的詳細資訊,請參閱Quality Patches Tool指南中的:搜尋修補程式Quality Patches Tool。

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3