Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Composer reports that "drupal/term_merge 2.0.0-beta2 requires php ^7.4 -> your php version (8.1.3) does not satisfy that requirement."
Steps to reproduce
I had the drupal/term_merge ^2.0.0-beta1 installed before upgrading the server php from 7.4 to 8.1.
Run:
composer update drupal/term_merge:2.0.0-beta2 -W
Result:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/term_merge ^2.0@beta, 2.0.0-beta2 -> satisfiable by drupal/term_merge[2.0.0-beta2].
- drupal/term_merge 2.0.0-beta2 requires php ^7.4 -> your php version (8.1.3) does not satisfy that requirement.
Issue fork term_merge-3275374
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
GrahamShepherd CreditAttribution: GrahamShepherd commentedComment #3
GrahamShepherd CreditAttribution: GrahamShepherd commentedI have tried the installation on another site on which term_merge was not previously installed.
PHP version 8.1.4
composer require 'drupal/term_merge:^2.0.0-beta2'
Results in:
I have changed the title accordingly, to reflect that it is the beta2 version which introduces the php 8.1 incompatibility.
Comment #4
GrahamShepherd CreditAttribution: GrahamShepherd commentedI suspect that the problem is caused by the addition of a composer.json file in the beta2 version which includes:
This should be changed to:
Comment #5
idiaz.ronceroI can confirm this issue, and is troublesome even if you apply a patch because Composer will complain (and fail) before trying to apply the fix. This needs to be commited to the repo directly.
Comment #7
idiaz.ronceroSubmitted MR to quick fix this.
Comment #8
idiaz.ronceroComment #9
MauHG CreditAttribution: MauHG commentedTested the patch as a forked dependency and is working with PHP 8
Comment #10
MauHG CreditAttribution: MauHG commentedComment #11
Renrhaf+1 RTBC
Comment #13
daniel_j CreditAttribution: daniel_j at WebFirst, Inc. commentedFixed in beta4.
Comment #14
GrahamShepherd CreditAttribution: GrahamShepherd commentedMany thanks. Works fine.