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

Composer install Error #1719

Closed
mariusik88 opened this issue Feb 24, 2020 · 2 comments
Closed

Composer install Error #1719

mariusik88 opened this issue Feb 24, 2020 · 2 comments
Assignees
Labels

Comments

@mariusik88
Copy link

Preconditions

PHP 7.3

Magento Version : 2.3.4

ElasticSuite Version : 2.8.x

Environment : Default mode

Steps to reproduce

omposer require smile/elasticsuite ~2.8.0
./composer.json has been updated

Fatal error: Uncaught TypeError: Return value of Magento\InventoryComposerInstaller\Plugin_composer_tmp1::initModuleDeployment() must be an instance of Magento\InventoryComposerInstaller\void, none returned in phar:///opt/cpanel/composer/bin/composer/src/Composer/Plugin/PluginManager.php(195) : eval()'d code:69
Stack trace:
#0 [internal function]: Magento\InventoryComposerInstaller\Plugin_composer_tmp1->initModuleDeployment(Object(Composer\Script\Event))
#1 phar:///opt/cpanel/composer/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(176): call_user_func(Array, Object(Composer\Script\Event))
#2 phar:///opt/cpanel/composer/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(96): Composer\EventDispatcher\EventDispatcher->doDispatch(Object(Composer\Script\Event))
#3 phar:///opt/cpanel/composer/bin/composer/src/Composer/Installer.php(205): Composer\EventDispatcher\EventDispatcher->dispatchScript('pre-update-cmd', true)
#4 phar:///opt/cpanel/composer/bin/composer/src/Composer/Command/RequireCommand.php(20 in phar:///opt/cpanel/composer/bin/composer/src/Composer/Plugin/PluginManager.php(195) : eval()'d code on line 69

Expected result

Actual result

  1. [Screenshot, logs]
@rbayet
Copy link
Collaborator

rbayet commented Feb 25, 2020

Hello @mariusik88,

I don't have any issue with composer 1.9 and PHP 7.2.24.

I would go for a general PHP compatibility issue, nothing specific to Elasticsuite, considering where the error is thrown.
I know that

Magento recommends using PHP 7.3

But give it a shot to either upgrade to the last available PHP 7.3 flavour or downgrade to the latest PHP 7.2...
If you google that error, you will find that error in many different contexts.

Regards

@romainruaud
Copy link
Collaborator

Our Travis instance is running daily Elasticsuite install from scratch, for all Magento 2.3.x versions on PHP 7.2 and 7.3, and there is no issue on Composer.

As previously said, you might have an issue related to using a too old Composer version (not supporting PHP 7.3) or something like this.

Since it's not related to Elasticsuite, I close.

regards

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

No branches or pull requests

3 participants