Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
By riorick17 on
Problem 1
- Root composer.json requires drupal/social_auth_microsoft ^4.0 -> satisfiable by drupal/social_auth_microsoft[4.0.0-beta1, 4.0.0, 4.0.x-dev].
- drupal/social_auth_microsoft[4.0.0-beta1, ..., 4.0.x-dev] require drupal/social_auth ^4.0 -> found drupal/social_auth[dev-4.0.x, dev-4.1.x, 4.0.0-beta1, ..., 4.1.x-dev (alias of dev-4.1.x)] but it conflicts with your root composer.json require (^3.0).
(from composer.json)
"drupal/social_auth_microsoft": "^4.0",
...so why " it conflicts with your root composer.json require (^3.0)" ??? Where is that "3.0" coming from ? Is it pulling it from the database or something?
Comments
No, it does not pull from the
No, it does not pull from the database. What does your composer.json look like?
Contact me to contract me for D7 -> D10/11 migrations.
composer.json
Your composer has this line
Your composer has this line
Maybe you should either install upgrade_status to get a good overview of issues when you're not used to deal with composer, or you try to bring the existing 9.5.x installation modules to the latest version(s) by running composer update -W --dry-run
If the --dry-run doesn't complain about anything, omit it and run composer update -W
If drupal/social_auth doesn't get updated, you can require its update during the updating process with
composer require "drupal/social_auth:^4.0" --no-update
Once you issue composer update, all the updates which got postponed by --no-update will be considered by composer.
If you haven't yet, find the page "Upgrading Drupal 9 to 10" on drupal.org and follow the procedure to the comma.
Norbert
-- form follows function
The error message you are
The error message you are seeing is saying that drupal/social_auth_microsoft depends on drupal/social_auth:^4, however composer.json is locked to social_auth_microsoft version 3, which is why it is failing:
You'll need to update that module first to be able to install version 4 of the drupal/social_auth_microsoft module.
Contact me to contract me for D7 -> D10/11 migrations.
drupal/social_auth_microsoft
As you can see from my initial posting, I edited composer.json to include the 4.0 version. I ended up removing the module completely so my current composer.json doesn't include that module at all.
Yes, but your problem is that
Yes, but your problem is that a module it depends on, the social_auth module, was pegged to version 3.0 in your composer.json, while the socail_auth_microsoft module requires version 4 or above. This conflict was preventing your upgrade.
Contact me to contract me for D7 -> D10/11 migrations.
The conflict happens because
The conflict happens because your
composer.jsonrequiresdrupal/social_auth_microsoftat^4.0, which depends ondrupal/social_auth ^4.0, but another module is pulling indrupal/social_auth ^3.0. Runcomposer why drupal/social_authto find the source of the3.0requirement. Update dependencies to align with^4.0. Similar to when packages arrive at the linehaul office in the UK—it’s all about proper routing!