面临的问题更新magento云,更新magento到最新版本的magento 2.3.2

yquaqz18  于 2022-12-13  发布在  其他
关注(0)|答案(3)|浏览(383)

现在我们正在更新magento到最新版本的magento 2.3.2现在我们正在运行2.2.7。
我遵循https://devdocs.magento.com/guides/v2.3/cloud/project/project-upgrade.html处找到的2.3分支指南
我已采取以下步骤:
步骤1:更新ece-tools版本
1.在本地工作站上,使用Composer执行更新
编辑器更新magento/ece-工具
1.添加、提交和推送代码更改。
git add -A && git commit -m“更新magento/ece-tools”&& git推送源文件
步骤2:备份数据库
1.创建远程数据库的本地备份。
magento-cloud数据库:转储
当我在我的终端运行这个命令时,我得到的“magento-cloud”不被识别为内部或外部命令,可操作的程序或批处理文件。
1.备份代码和媒体。
php bin/magento设置:备份-代码[-media]
在部署之前备份临时或生产环境数据库
php供应商/bin/ece-tools数据库转储
步骤3:完成升级
我有PHP 7.1.30版本
1.在完成升级之前,请按照www.example.com中提供的所有步骤更新autoload属性https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html#update-autoload
1.设置升级版本使用
composer 需要magento/产品社区版本2.3.2 -无更新
1.然后更新项目
编写器更新
composer 更新后,我得到一些错误
无法将您的需求解析为可安装的套件集。
问题一

- magento/magento-cloud-metapackage 2.2.7 requires magento/product-enterprise-edition 2.2.7 -> satisfiable by magento/product-enterprise-edition[2.2.7] but these conflict with your requirements or minimum-stability.

- magento/magento-cloud-metapackage 2.2.7 requires magento/product-enterprise-edition 2.2.7 -> satisfiable by magento/product-enterprise-edition[2.2.7] but these conflict with your requirements or minimum-stability.

- Installation request for magento/magento-cloud-metapackage >=2.2.7 <2.2.8 -> satisfiable by magento/magento-cloud-metapackage[2.2.7].

你能指导我如何解决这个问题吗?

  • 谢谢-谢谢
    我的composer.json喜欢作为
{
"name": "magento/project-enterprise-edition",
"description": "eCommerce Platform for Growth (Enterprise Edition)",
"type": "project",
"version": "2.3.2",
"license": [
    "OSL-3.0",
    "AFL-3.0"
],
"repositories": {
    "repo": {
        "type": "composer",
        "url": "https://repo.magento.com"
    },
    "amasty": {
        "type": "composer",
        "url": "https://composer.amasty.com/enterprise/"
    }
},
"require": {
    "magento/magento-cloud-metapackage": ">=2.2.7 <2.2.8",
    "gene/bluefoot": "^1.0",
    "amasty/promo": "^2.2",
    "sashas/bug-from-email": "^2.0",
    "amasty/shopby": "^2.11",
    "amasty/label": "^1.10",
    "connectpos/rest-api": "^1.1",
    "magento/product-community-edition": "2.3.2",
    "magento/product-enterprise-edition": "2.3.2"
},
"config": {
    "use-include-path": true
},
"autoload": {
    "psr-4": {
        "Magento\\Framework\\": "lib/internal/Magento/Framework/",
        "Magento\\Setup\\": "setup/src/Magento/Setup/",
        "Magento\\": "app/code/Magento/",
        "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
    },
    "psr-0": {
        "": [
            "app/code/",
            "generated/code/"
        ]
    },
    "files": [
        "app/etc/NonComposerComponentRegistration.php"
    ],
    "exclude-from-classmap": [
        "**/dev/**",
        "**/update/**",
        "**/Test/**"
    ]
},
"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,
"extra": {
    "magento-force": true,
    "magento-deploystrategy": "copy"
},
"require-dev": {
    "allure-framework/allure-phpunit": "~1.2.0",
    "friendsofphp/php-cs-fixer": "~2.13.0",
    "lusitanian/oauth": "~0.8.10",
    "magento/magento-coding-standard": "~1.0.0",
    "magento/magento2-functional-testing-framework": "~2.3.14",
    "pdepend/pdepend": "2.5.2",
    "phpunit/phpunit": "~6.5.0",
    "sebastian/phpcpd": "~3.0.0",
    "squizlabs/php_codesniffer": "3.3.1"
}}

error command line screenshot

2ic8powd

2ic8powd1#

您需要删除

"magento/product-community-edition": "2.3.2",
 "magento/product-enterprise-edition": "2.3.2"

将作为magento-cloud-metapackage的依赖项安装
并更改元包版本

ee7vknir

ee7vknir2#

尝试将php切换到php 7.2或更高版本。因为从magento 2.3.2开始,它需要php版本〉= 7.2

2vuwiymt

2vuwiymt3#

我认为你需要更新magento/magento-cloud-metapackage以及与兼容版本的Magento 2.3.2。
我发现一篇文章https://technicallysound.in/magento-2-upgrade-and-composer-issues/试图解决Magento升级过程中的类似问题。但它是针对社区版的。无论如何, composer 的问题是相似的。如果这篇文章可以帮助你检查Magento/magento-cloud-metapackage的更新版本。

相关问题