Magento installation via metapackage: checkExtensions fails #21136
Labels
Component: Framework/Composer
USE ONLY for FRAMEWORK RELATED BUG! E.g If bug occurs with Catalog use just Catalog
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
Preconditions (*)
Steps to reproduce (*)
I've installed aws/aws-sdk-php, for example, that has dependency on
sockets
extension as a dev requirement:Expected result (*)
Installation finishes successfully.
Actual result (*)
Installation failed with error:
Technical details (*)
There is implemented check on the required extensions in the method
\Magento\Setup\Model\Installer::checkExtensions
, that calls\Magento\Setup\Model\PhpReadinessCheck::checkPhpExtensions
, that calls\Magento\Framework\Composer\ComposerInformation::getRequiredExtensions
, that returns list of dependencies from composer.lock file:The root issue: method
$this->isMagentoRoot()
returnsFALSE
for current Magento installation, because its regular expression/magento\/magento2...?/
doesn't matchmagento/project-community-edition
, that comes from metapackage.Most likely it works OK for Magento, because current Magento package name is
magento/magento2ce
, that matches the regular expression above.The text was updated successfully, but these errors were encountered: