Skip to content

Fatal Error: 'Uncaught Error: Call to a member function getSku() on array in Magento/InventorySourceSelection/Model/Algorithms/PriorityBasedAlgorithm.php:84 #1377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TomashKhamlai opened this issue Jun 14, 2018 · 2 comments
Assignees
Labels
Bug WEB API MSI web API failures and fixes

Comments

@TomashKhamlai
Copy link
Contributor

Preconditions

  1. Magento MSI

Steps to reproduce

  1. Run api-functional test app/code/Magento/InventorySourceSelectionApi/Test/Api/SourceSelectionServiceTest

Expected result

  1. TESTS_WEB_API_ADAPTER is defined or other reason

Actual result

  1. Server internal error.
"Fatal Error: 'Uncaught Error: Call to a member function getSku() on array in \/var\/www\/html\/msi\/app\/code\/Magento\/InventorySourceSelection\/Model\/Algorithms\/PriorityBasedAlgorithm.php:84
Stack trace:
#0 \/var\/www\/html\/msi\/app\/code\/Magento\/InventorySourceSelection\/Model\/SourceSelectionService.php(62): Magento\\InventorySourceSelection\\Model\\Algorithms\\PriorityBasedAlgorithm->execute(Object(Magento\\InventorySourceSelection\\Model\\Request\\InventoryRequest))
#1 [internal function]: Magento\\InventorySourceSelection\\Model\\SourceSelectionService->execute(Object(Magento\\InventorySourceSelection\\Model\\Request\\InventoryRequest), 'priority')
#2 \/var\/www\/html\/msi\/app\/code\/Magento\/Webapi\/Controller\/Rest\/SynchronousRequestProcessor.php(95): call_user_func_array(Array, Array)
#3 \/var\/www\/html\/msi\/app\/code\/Magento\/Webapi\/Controller\/Rest.php(188): Magento\\Webapi\\Controller\\Rest\\SynchronousRequestProcessor->process(Object(Magento\\Framework\\Webapi\\Rest\\Request\\Proxy))
#4 \/var\/www\/html\/msi\/lib\/internal\/Magento\/Framework\/Interception\/Interceptor.php' in '\/var\/www\/html\/msi\/app\/code\/Magento\/InventorySourceSelection\/Model\/Algorithms\/PriorityBasedAlgorithm.php' on line 84"
@larsroettig
Copy link
Member

larsroettig commented Jun 16, 2018

I will fix #1378 because i get this error there

@larsroettig
Copy link
Member

Is already fixed by magento/magento2#16137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug WEB API MSI web API failures and fixes
Projects
None yet
Development

No branches or pull requests

3 participants