Can not upgrade to 4.0

Created on 2 January 2025, about 1 month 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.

Production build 0.71.5 2024