Open iosos-excel opened 4 years ago
Hi @iosos-excel. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, please, review the Magento Contributor Assistant documentation.
@iosos-excel do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
@magento give me 2.3.4 instance
Hi @iosos-excel. Thank you for your request. I'm working on Magento 2.3.4 instance for you
Hi @iosos-excel, here is your Magento instance.
Admin access: https://i-27144-2-3-4.instances.magento-community.engineering/admin_eee7
Login: 840f8935
Password: 076d19a5b913
Instance will be terminated in up to 3 hours.
I cannot reproduce the issue in the Magento instance provided. However, the instance is missing the entire inventory source system, which is where the error seems to occur according to the logs. If I install a totally fresh/vanilla Magento 2.3.4 on my machine the inventory system is present and the issue is reproducible.
Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hi @iosos-excel ,
I have tested in Vanilla Magento 2.3.4 . I am able to reproduce the above said error.
Steps Followed : I have added bundle product in cart which contains both virtual product and simple product and dynamic price is set to No. After successful order place when i am trying to create a invoice for this order i am getting the error.
Got Following error :
Fatal error: Uncaught TypeError: Return value of Magento\InventorySourceSelection\Model\Request\InventoryRequest::getItems() must be of the type array, null returned in /var/www/html/magento234ee/vendor/magento/module-inventory-source-selection/Model/Request/InventoryRequest.php:102 Stack trace: #0 /var/www/html/magento234ee/vendor/magento/module-inventory-source-selection-api/Model/Algorithms/Result/GetDefaultSortedSourcesResult.php(97): Magento\InventorySourceSelection\Model\Request\InventoryRequest->getItems() magento/magento2#1 /var/www/html/magento234ee/vendor/magento/module-inventory-source-selection/Model/Algorithms/PriorityBasedAlgorithm.php(73): Magento\InventorySourceSelectionApi\Model\Algorithms\Result\GetDefaultSortedSourcesResult->execute(Object(Magento\InventorySourceSelection\Model\Request\InventoryRequest), Array) magento/magento2#2 /var/www/html/magento234ee/vendor/magento/module-inventory-source-selection-api/Model/SourceSelectionService.php(61): Magento\InventorySourceSelection\Model\Algorithms\PriorityBasedAlgorithm->execute(Object(M in /var/www/html/magento234ee/vendor/magento/module-inventory-source-selection/Model/Request/InventoryRequest.php on line 102
Due to the description and discussion under This issue seems related to Magento Inventory Project (a.k.a MSI) Transfer this issue into https://github.com/magento/inventory/issues
Hi @iosos-excel. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
Is there any update on this issue? I am still facing this issue in Magento 2.3.2 @sdzhepa @magento-engcom-team
Finally addressed this issue. Solution: https://magento.stackexchange.com/a/324163/21432
Preconditions (*)
Steps to reproduce (*)
In the admin, create a sample physical product (This item has weight)
Create a sample virtual product (This item has no weight)
Create a sample bundle product
In the front-end, add the sample bundle product to cart
Check out using any payment method
Back in the admin, invoice the sample order
Expected result (*)
Actual result (*)
Notice: Issue is not reproducible on 2.4-develop
Additional information