I have a clean Magento 2.2.6 with sample data that I installed using composer.
I am trying to update it to Magento 2.3 so following the steps outlined here by the Magento team.
After running composer update
I get the following:
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/module-wishlist-sample-data 100.2.0 requires magento/module-wishlist 101.0.* -> satisfiable by magento/module-wishlist[101.0.4, 101.0.0, 101.0.1, 101.0.2, 101.0.3, 101.0.5].
- magento/module-wishlist-sample-data 100.2.0 requires magento/module-wishlist 101.0.* -> satisfiable by magento/module-wishlist[101.0.4, 101.0.0, 101.0.1, 101.0.2, 101.0.3, 101.0.5].
- Can only install one of: magento/module-wishlist[101.1.0, 101.0.4].
- Can only install one of: magento/module-wishlist[101.1.0, 101.0.0].
- Can only install one of: magento/module-wishlist[101.1.0, 101.0.1].
- Can only install one of: magento/module-wishlist[101.1.0, 101.0.2].
- Can only install one of: magento/module-wishlist[101.1.0, 101.0.3].
- Can only install one of: magento/module-wishlist[101.1.0, 101.0.4].
- Can only install one of: magento/module-wishlist[101.1.0, 101.0.5].
- magento/product-community-edition 2.3.0 requires magento/module-wishlist 101.1.0 -> satisfiable by magento/module-wishlist[101.1.0].
- Installation request for magento/product-community-edition 2.3.0 -> satisfiable by magento/product-community-edition[2.3.0].
- Installation request for magento/module-wishlist-sample-data 100.2.* -> satisfiable by magento/module-wishlist-sample-data[100.2.0].
Best Answer
First be sure you are running PHP 7.1 or 7.2
Update your composer
run those commandes:
Specify additional packages for composer Run this
Remove unused packages
Update autoload
Open
composer.json
and edit the"autoload": "psr-4"
section to include"Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
:Apply updates
Clear caches and generated content
Update the database schema and data
Disable maintenance mode
Clear the cache, reindex, if you get a server error tray to deploy static content.
and that's all,
You can check the full explanation here
https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html