无法从 Magento2.0.7 更新到 Magento2.1.0
Cannot update to Magento2.1.0 from Magento2.0.7
我通过网页安装界面安装了magento2.0.7。现在我正在尝试使用作曲家将其升级到 Magento 2.1.0。但问题是,作曲家识别了错误的 php 版本,因此升级停止了。
我已经应用了补丁 MVD 532
错误是
Problem 1
- The requested package magento/product-community-edition (locked at 2.0.7, required as 2.1.0) is satisfiable by magento/product-community-edition[2.0.7] but these conflict with your requirements or minimum-stability.
Problem 2
- The requested package magento/module-bundle-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-bundle-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 3
- The requested package magento/module-theme-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-theme-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 4
- The requested package magento/module-widget-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-widget-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 5
- The requested package magento/module-catalog-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-catalog-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 6
- The requested package magento/module-customer-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-customer-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 7
- The requested package magento/module-cms-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-cms-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 8
- The requested package magento/module-tax-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-tax-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
.....
最后我通过更新 composer.json 解决了这个问题。从 2.0.x,
升级到 2.1.x
- 编辑composer.json,尤其是这些
"require": {
"magento/product-community-edition": "2.1.x",
}
和
"magento/module-bundle-sample-data": "100.1.*",
"magento/module-theme-sample-data": "100.1.*",
"magento/module-widget-sample-data": "100.1.*",
"magento/module-catalog-sample-data": "100.1.*",
"magento/module-customer-sample-data": "100.1.*",
"magento/module-cms-sample-data": "100.1.*",
"magento/module-tax-sample-data": "100.1.*",
"magento/module-review-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-swatches-sample-data": "100.1.*",
"magento/sample-data-media": "100.1.*",
"magento/module-offline-shipping-sample-data": "100.1.*",
M2.1.x 需要组件为 100.1 而不是 100.0
现在休息部分和我们之前做的一样
composer update
php bin/magento setup:upgrade
这对我来说会很有效。享受升级:)
我通过网页安装界面安装了magento2.0.7。现在我正在尝试使用作曲家将其升级到 Magento 2.1.0。但问题是,作曲家识别了错误的 php 版本,因此升级停止了。 我已经应用了补丁 MVD 532
错误是
Problem 1
- The requested package magento/product-community-edition (locked at 2.0.7, required as 2.1.0) is satisfiable by magento/product-community-edition[2.0.7] but these conflict with your requirements or minimum-stability.
Problem 2
- The requested package magento/module-bundle-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-bundle-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 3
- The requested package magento/module-theme-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-theme-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 4
- The requested package magento/module-widget-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-widget-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 5
- The requested package magento/module-catalog-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-catalog-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 6
- The requested package magento/module-customer-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-customer-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 7
- The requested package magento/module-cms-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-cms-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
Problem 8
- The requested package magento/module-tax-sample-data (locked at 100.0.5, required as 100.1.0) is satisfiable by magento/module-tax-sample-data[100.0.5] but these conflict with your requirements or minimum-stability.
.....
最后我通过更新 composer.json 解决了这个问题。从 2.0.x,
升级到 2.1.x- 编辑composer.json,尤其是这些
"require": {
"magento/product-community-edition": "2.1.x",
}
和
"magento/module-bundle-sample-data": "100.1.*",
"magento/module-theme-sample-data": "100.1.*",
"magento/module-widget-sample-data": "100.1.*",
"magento/module-catalog-sample-data": "100.1.*",
"magento/module-customer-sample-data": "100.1.*",
"magento/module-cms-sample-data": "100.1.*",
"magento/module-tax-sample-data": "100.1.*",
"magento/module-review-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-swatches-sample-data": "100.1.*",
"magento/sample-data-media": "100.1.*",
"magento/module-offline-shipping-sample-data": "100.1.*",
M2.1.x 需要组件为 100.1 而不是 100.0
现在休息部分和我们之前做的一样
composer update
php bin/magento setup:upgrade
这对我来说会很有效。享受升级:)