Не удается установить Data Migration Tool на Magento 2.1.7 с PHP 7.1.17 - PullRequest
0 голосов
/ 26 октября 2018

Мне нужно перенести данные из Magento 1.9.2.4 в 2.1.7 точно, используя php7.1

У меня есть Ubuntu 17.10

Php 7.1.17

Я установил Magento 2.1.7 уже на php7.1.17, но я не могу установить Data Migration Tool ..

Я управлял этим

composer config repositories.magento composer ttps://repo.magento.com

тогда это

composer require magento/data-migration-tool:2.1.7

    Authentication required (repo.magento.com):
      Username: xxxxxxxxxxxxxxxxxxxxxxxxx
      Password: yyyyyyyyyyyyyyyyyyyyyyyyy
Do you want to store credentials for repo.magento.com in /home/sky/.composer/auth.json ? [Yn] y
./composer.json has been updated                                  
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
    - magento/framework 100.1.7 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.17) does not satisfy that requirement.
    - magento/framework 100.1.7 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.17) does not satisfy that requirement.
    - magento/framework 100.1.7 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.17) does not satisfy that requirement.
    - magento/framework 100.1.7 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.17) does not satisfy that requirement.
    - Installation request for magento/framework (locked at 100.1.7) -> satisfiable by magento/framework[100.1.7].

но получите это исключение ...

Кто-нибудь может мне помочь, плз?

Это мой файл composer.json:

{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"version": "2.1.7",
"license": [
    "OSL-3.0",
    "AFL-3.0"
],
"require": {
    "magento/product-community-edition": "2.1.7",
    "composer/composer": "@alpha",
    "magento/module-bundle-sample-data": "100.1.*",
    "magento/module-theme-sample-data": "100.1.*",
    "magento/module-catalog-sample-data": "100.1.*",
    "magento/module-tax-sample-data": "100.1.*",
    "magento/phpmodule-customer-sample-data": "100.1.*",
    "magento/module-cms-sample-data": "100.1.*",
    "magento/module-widget-sample-data": "100.1.*",
    "magento/module-catalog-rule-sample-data": "100.1.*",
    "magento/module-sales-rule-sample-data": "100.1.*",
    "magento/module-sales-sample-data": "100.1.*",
    "magento/module-grouped-product-sample-data": "100.1.*",
    "magento/module-downloadable-sample-data": "100.1.*",
    "magento/module-msrp-sample-data": "100.1.*",
    "magento/module-configurable-sample-data": "100.1.*",
    "magento/module-product-links-sample-data": "100.1.*",
    "magento/module-wishlist-sample-data": "100.1.*",
    "magento/module-review-sample-data": "100.1.*",
    "magento/module-swatches-sample-data": "100.1.*",
    "magento/sample-data-media": "100.1.*",
    "magento/module-offline-shipping-sample-data": "100.1.*",
    "magento/data-migration-tool": "2.1.7"
},
"require-dev": {
    "phpunit/phpunit": "4.1.0",
    "squizlabs/php_codesniffer": "1.5.3",
    "phpmd/phpmd": "@stable",
    "pdepend/pdepend": "2.4.0",
    "fabpot/php-cs-fixer": "~1.2",
    "lusitanian/oauth": "~0.3 <=0.7.0",
    "sebastian/phpcpd": "2.0.0"
},
"config": {
    "use-include-path": true
},
"autoload": {
    "psr-4": {
        "Magento\\Framework\\": "lib/internal/Magento/Framework/",
        "Magento\\Setup\\": "setup/src/Magento/Setup/",
        "Magento\\": "app/code/Magento/"
    },
    "psr-0": {
        "": "app/code/"
    },
    "files": [
        "app/etc/NonComposerComponentRegistration.php"
    ]
},
"autoload-dev": {
    "psr-4": {
        "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
        "Magento\\Tools\\": "dev/tools/Magento/Tools/",
        "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
        "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
        "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
    }
},
"minimum-stability": "alpha",
"prefer-stable": true,
"repositories": {
    "0": {
        "type": "composer",
        "url": "https://repo.magento.com/"
    },
    "data-migration-tool": {
        "type": "git",
        "url": "https://github.com/magento/data-migration-tool"
    },
    "magento": {
        "type": "composer",
        "url": "https://repo.magento.com"
    }
},
"extra": {
    "magento-force": "override"
}
* *} Тысяча двадцать-один

1 Ответ

0 голосов
/ 26 октября 2018

Magento 2.1 не совместим с PHP 7.1 согласно официальным документам: https://devdocs.magento.com/guides/v2.1/install-gde/system-requirements-tech.html

В этом, наверное, проблема. Подумайте о переходе на более новую версию Magento (2.2 поддерживает PHP 7.1) или понизьте версию PHP. Лично я бы пошел на первое.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...