Magento2 Composer ‘Module-Wishlist’ Error – How to Fix

composermagento2modulesample-dataupgrade

I'm trying to update my magento version to 2.2 (from 2.1.7) but had a "Content Dependency" error, but have narrowed down the issue a module, the "module-wishlist-sample-data" magento module.

When I try to update composer I get the following error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - magento/module-wishlist-sample-data 100.1.1 requires magento/module-wishlist 100.1.* -> satisfiable by magento/module-wishlist[100.1.4, 100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.5, 100.1.6].
    - magento/module-wishlist-sample-data 100.1.0-rc1 requires magento/module-wishlist 100.1.* -> satisfiable by magento/module-wishlist[100.1.4, 100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.5, 100.1.6].
    - magento/module-wishlist-sample-data 100.1.0-rc2 requires magento/module-wishlist 100.1.* -> satisfiable by magento/module-wishlist[100.1.4, 100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.5, 100.1.6].
    - magento/module-wishlist-sample-data 100.1.0-rc3 requires magento/module-wishlist 100.1.* -> satisfiable by magento/module-wishlist[100.1.4, 100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.5, 100.1.6].
    - magento/module-wishlist-sample-data 100.1.0 requires magento/module-wishlist 100.1.* -> satisfiable by magento/module-wishlist[100.1.4, 100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.5, 100.1.6].
    - magento/module-wishlist-sample-data 100.1.1 requires magento/module-wishlist 100.1.* -> satisfiable by magento/module-wishlist[100.1.4, 100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.5, 100.1.6].
    - Can only install one of: magento/module-wishlist[101.0.0, 100.1.4].
    - Can only install one of: magento/module-wishlist[101.0.0, 100.1.0-rc1].
    - Can only install one of: magento/module-wishlist[101.0.0, 100.1.0-rc2].
    - Can only install one of: magento/module-wishlist[101.0.0, 100.1.0-rc3].
    - Can only install one of: magento/module-wishlist[101.0.0, 100.1.0].
    - Can only install one of: magento/module-wishlist[101.0.0, 100.1.1].
    - Can only install one of: magento/module-wishlist[101.0.0, 100.1.2].
    - Can only install one of: magento/module-wishlist[101.0.0, 100.1.3].
    - Can only install one of: magento/module-wishlist[101.0.0, 100.1.4].
    - Can only install one of: magento/module-wishlist[101.0.0, 100.1.5].
    - Can only install one of: magento/module-wishlist[101.0.0, 100.1.6].
    - magento/product-community-edition 2.2.0 requires magento/module-wishlist 101.0.0 -> satisfiable by magento/module-wishlist[101.0.0].
    - Installation request for magento/product-community-edition 2.2.0 -> satisfiable by magento/product-community-edition[2.2.0].
    - Installation request for magento/module-wishlist-sample-data 100.1.* -> satisfiable by magento/module-wishlist-sample-data[100.1.1, 100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0].

Any ideas on how to solve this?

Best Answer

what you should do is:

  1. Remove from your composer.json all the sample data modules.
  2. Run composer update.
  3. Run "php -f bin/magento sampledata:deploy" this will add the latest sample data modules to your composer.json based on your M2 version.

That should be enough.

Related Topic