Can not upgrade to 4.0

Created on 2 January 2025, 5 months ago

Problem/Motivation

Running drupal 10.4 and trying to update to Image effects 4.0.0. using composer

Update fails because of module "color backport":

Problem 1
- Root composer.json requires drupal/color ^1.0 -> satisfiable by drupal/color[1.0.1, 1.0.2, 1.0.3, 1.x-dev].
- Root composer.json requires drupal/image_effects ^4.0 -> satisfiable by drupal/image_effects[4.0.0-alpha1, ..., 4.0.x-dev].
- drupal/image_effects[4.0.0-alpha1, ..., 4.0.x-dev] conflict with drupal/color 1.0.3.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇧🇪Belgium bart lambert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bart lambert
  • 🇮🇳India vinayakmk47

    The error indicates a conflict between the Image Effects module (version 4.0.0) and the Color Backport module (drupal/color, version 1.0.3). This happens because the two modules have incompatible dependencies or explicitly declare conflicts.

    Steps to Resolve
    1. Identify Compatible Versions
    Check the release notes and documentation for both modules to identify compatible versions.
    Visit the module pages:
    Image Effects module
    Color Backport module
    Determine if downgrading or upgrading either module resolves the conflict.
    2. Resolve the Conflict with Composer

    Option 1: Use an Alternative Version If there is a known compatible version of the Color Backport module that works with Image Effects 4.0.0, specify it in your composer.json:

    composer require drupal/color:1.0.2

    Then, retry installing Image Effects:

    composer require drupal/image_effects:^4.0

    Option 2: Temporarily Remove the Conflicting Module If the Color Backport module is not critical, uninstall and remove it before updating Image Effects:

    drush pmu color
    composer remove drupal/color
    composer require drupal/image_effects:^4.0

    After updating, check if you can reinstall a compatible version of Color Backport.

  • 🇧🇪Belgium ericvl

    Try

    composer require "drupal/image_effects":"^4.0" "drupal/color":"^2.0" -W

  • 🇧🇪Belgium bart lambert

    That was helpfull!!!! this was the way to go!! Thanks!!!

  • 🇧🇪Belgium ericvl

    You're welcome.
    Check also my comment in this comment 🐛 TypeError in using Textoverlay Active if you don't want the issue that I had with the Textoverlay function. The comment is from yesterday and should still be implemented.

  • 🇺🇸United States dasginganinja Bethlehem, PA

    This is a big issue for me. I would love to upgrade to this module and get up to Drupal 11.

    Color module is not tagged for a 2.x release so this module brings in a dev-release for color.

    Correct me if I'm stepping out of bounds, but it feels incredibly wrong that this module is recommending a dev- module as a dependency for its recommended release...

    Thanks.

  • 🇮🇹Italy mondrake 🇮🇹

    From the release note:

    Known issues

    • The Color backport module does not have a Drupal 11 compatible release yet. If you are using the Farbtastic plugin for color selection, the 2.x-dev branch was tested and seems to work fine. If no Drupal 11 compatible release comes earlier, the Farbtastic plugin will be removed in next minor of Image Effects.

    Where do you see a recommendation to use the dev version?

    You can:

    • change the color selector plugin from Farbtastic to HTML via the config UI
    • upgrade to 4.0.0

    The reason why 4.0.0 is still kind of working with the Farbtastic plugin is that there were people using it, but given that Color backport is nowhere, support will be removed in 4.1.0. Hopefully everyone will have moved away (given the release notes...) by that time.

  • 🇨🇦Canada No Sssweat

    @mondrake I cannot since my site is in Drupal 10.

  • 🇺🇸United States dasginganinja Bethlehem, PA

    I can test for my use case on 10 if you change the composer targets. @mondrake

Production build 0.71.5 2024