Frage

Trying to do an update to Magento 2.1.0 via composer and getting this weird error.

Php version is 7.04 running on Ubuntu x64

composer require magento/product-community-edition 2.1.0 --no-update

./composer.json has been updated

composer update

Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1 - Installation request for magento/product-community-edition 2.1.0 -> satisfiable by magento/product-community-edition[2.1.0].

- magento/product-community-edition 2.1.0 requires php ~5.6.0|7.0.2|~7.0.6 -> your PHP version (7.0.4) does not satisfy that requirement.

War es hilfreich?

Lösung

There is no magento/product-community-edition 2.1.0 yet. Latest release is magento/product-community-edition 2.1.0-rc3. The wording in magento bulletins and notifications is misleading and tricky. You get the impression that there is a 2.1.0 GA, but there are only Release candidates.

Andere Tipps

The PHP version constraints of Magento 2.1 are ~5.6.0|7.0.2|~7.0.6 as shown in the error message. That means, it is compatible with all patch versions of PHP 5.6, with PHP 7.0.2 and with PHP 7.0 versions >= 7.0.6

The gap comes from some bugs in PHP 7.0.3-7.0.5 that caused problems with Magento and are fixed in 7.0.6.

More info: Why doesn't Magento 2.1 support PHP 7.0.3 to 7.0.5?

Solution: Update your PHP version.

The answer is that you have to completely uninstall php5 and components and then install php 7.0 using the process found here: https://askubuntu.com/questions/705880/how-to-install-php-7

then make sure to install the necessary modules and you will be back in business...if you check your phpinfo.php you will probably find that even though you have installed php7 it is not the default php being used and thus you are getting that error.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange
scroll top