You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Magento_Webapi cannot be disabled even if the installer UI allows it.
Steps to reproduce:
Install a new instance of Magento 2 using the web installer
In the step4, "Customize your store", in the "Advanced Modules Configurations " section, I disable the Magento_Webapi module
Proceed with the installation
Expected result
Magento 2 installs without the Magento_Webapi module
Actual result
Installer stops at 69% with and error message
Cannot instantiate interface Magento\Framework\Cache\FrontendInterface in
lib/internal/Magento/Framework/ObjectManager/Factory/Dynamic/Developer.php
Additional info:
After digging in the code I found out the problem appears when trying to instaintiate \Magento\Customer\Model\Attribute.
The constructor (inherited from \Magento\Eav\Model\Entity\Attribute) expect and instance of Magento\Framework\Reflection\DataObjectProcessor that expects in its own constructor and instance of Magento\Framework\Reflection\MethodsMap that expects in the constructor and instance of \Magento\Framework\Cache\FrontendInterface called $cache.
There is no preference for \Magento\Framework\Cache\FrontendInterface declared anywhere (maybe because different implementations of this interface are used for different classes)
but the di.xml of the Magento_Webapi contains this:
Fixed issues:
- MAGETWO-75217: SKU parameter in capital letters on CSV ignored by database in Import but OK'd by validator
- MAGETWO-77840: [2.2.x] - Special/lowest price in child of a Configurable Product causes the entire product to show that price
- MAGETWO-70725: Admin token does not expire after 'Admin Token Lifetime (hours)'
The Magento_Webapi cannot be disabled even if the installer UI allows it.
Steps to reproduce:
Magento_Webapi
moduleExpected result
Magento_Webapi
moduleActual result
Installer stops at 69% with and error message
Additional info:
After digging in the code I found out the problem appears when trying to instaintiate
\Magento\Customer\Model\Attribute
.The constructor (inherited from
\Magento\Eav\Model\Entity\Attribute
) expect and instance ofMagento\Framework\Reflection\DataObjectProcessor
that expects in its own constructor and instance ofMagento\Framework\Reflection\MethodsMap
that expects in the constructor and instance of\Magento\Framework\Cache\FrontendInterface
called$cache
.There is no preference for
\Magento\Framework\Cache\FrontendInterface
declared anywhere (maybe because different implementations of this interface are used for different classes)but the
di.xml
of theMagento_Webapi
contains this:This makes the customer module depend on the webapi module and this dependency is not declared anywhere.
The text was updated successfully, but these errors were encountered: