Skip to content
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

Error editing or creating inventory source #22093 #2128

Closed
djixas opened this issue Apr 2, 2019 · 3 comments
Closed

Error editing or creating inventory source #22093 #2128

djixas opened this issue Apr 2, 2019 · 3 comments
Assignees
Milestone

Comments

@djixas
Copy link

djixas commented Apr 2, 2019

Preconditions (*)

Magento: 2.3.1
PHP 7.2 + MySQL 5.6

The following extensions were disabled during fresh install

Amazon_Core
Amazon_Payment
Amazon_Login
Dotdigitalgroup_Email
Klarna_Core
Klarna_Kp
Klarna_Ordermanagement
Magento_Authorizenet
Magento_AuthorizenetAcceptjs
Magento_Braintree
Magento_Dhl
Magento_DownloadableGraphQl
Magento_DownloadableImportExport
Magento_Fedex
Magento_InventoryProductAlert
Magento_NewRelicReporting
Magento_OfflinePayments
Magento_OfflineShipping
Magento_ReleaseNotification
Magento_SampleData
Magento_SwaggerWebapi
Magento_SwaggerWebapiAsync
Magento_Swatches
Magento_SwatchesGraphQl
Magento_SwatchesLayeredNavigation
Magento_Ups
Magento_Usps
Magento_Weee
Magento_WeeeGraphQl
Magento_WishlistAnalytics
Magento_WishlistGraphQl
MSP_ReCaptcha
MSP_TwoFactorAuth
Temando_Shipping
Vertex_Tax

Steps to reproduce (*)

  1. Install Magento
  2. Hit edit inventory source
  3. Save new settings

Expected result (*)

  1. It should work :)
  2. Not sure if related to extensions disabling, but should not allow to disable something that throws fatal error

Actual result (*)

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\HTTP\ClientInterface in /home/xxxx/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50 Stack trace: #0 /home/xxxx/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewo...') #1 /home/xxxx/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Framewo...') #2 /home/xxxx/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\Framewo...', NULL, 'client', 'Magento\Invento...') #3 /home/xxxx/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\Invento...', Array, in /home/xxxx/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50

Notice:

The error appear after disabling module Magento_ReleaseNotification, please see comments below

@ishakhsuvarov
Copy link
Contributor

Hi @djixas
Please try the same with module Magento_ReleaseNotification enabled.

I suspect that there is an incorrect DI configuration, which is specified for ClientInterface only in that module. We will look into appropriate ways to fix it meanwhile

@smoskaluk
Copy link

smoskaluk commented Apr 3, 2019

Hi @djixas , thank you for report.
I was able to reproduce the same error by next steps:

Install Magento: 2.3.1
Disable module Magento_ReleaseNotification
Run bin/magento setup:di:compile

image

@tephereth tephereth self-assigned this Apr 5, 2019
tephereth added a commit to tephereth/msi that referenced this issue Apr 5, 2019
ishakhsuvarov added a commit that referenced this issue Apr 13, 2019
Fixed issue #2128 - Error editing or creating inventory source #22093
@ishakhsuvarov
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants