MDVA-43414:运行“inventory.reservations.updateSalabilityStatus”时出现PHP错误

MDVA-43414修补程序解决了在数字SKU上运行inventory.reservations.updateSalabilityStatus队列使用者时发生的PHP严重错误。 安装Quality Patches Tool (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
该修补程序可能适用于具有新的Quality Patches Tool版本的其他版本。 要检查修补程序是否与您的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

应用修补程序

要应用单独的修补程序,请根据您的部署方法使用以下链接:

相关阅读

要了解有关Quality Patches Tool的更多信息,请参阅:

有关QPT中提供的其他修补程序的信息,请参阅我们的开发人员文档中的QPT中提供的修补程序。

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a