cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrading Magento 2.4.6 (CE) error with module-inventory-sales-async-order

Upgrading Magento 2.4.6 (CE) error with module-inventory-sales-async-order

Hello community.

I would like to report an issue related to the "bin/magento setup:di:compile" command.

Since upgrading to version 2.4.6, I have encountered the following error:

 

Error message: /vendor/magento/module-inventory-sales-async-order/Model/ReservationExecution.php on line 19 Interface "Magento\InventorySales\Model\ReservationExecutionInterface" not found.

#0 /Users/x/PhpstormProjects/development/src/vendor/composer/ClassLoader.php(582): include()

 

Steps to reproduce the error:

  1. Update Magento to version 2.4.6.
  2. Execute the "composer upgrade" command.
  3. Execute the "bin/magento setup:di:compile" command.

Expected behavior: The "bin/magento setup:di:compile" command should execute successfully without any errors.

 

Current behavior: When executing the "bin/magento setup:di:compile" command, an error occurs indicating a missing interface. The interface "Magento\InventorySales\Model\ReservationExecutionInterface" in the file "/vendor/magento/module-inventory-sales-async-order/Model/ReservationExecution.php" cannot be found.

 

This error prevents me from successfully running the compilation script and impacts the functionality of the Magento installation.

 

Thank you for your assistance in addressing this issue. I look forward to your response and working together to resolve the error.

 

 
1 REPLY 1

Re: Upgrading Magento 2.4.6 (CE) error with module-inventory-sales-async-order

Hello @mschauerhe132f 

 

You can work around the issue by manually creating the interface "Magento\InventorySales\Model\ReservationExecutionInterface". To do this, open the file "/vendor/magento/module-inventory-sales-async-order/Model/ReservationExecution.php" and add the following code to the top of the file:

 

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now