As usual, upgrading is very difficult. After getting the upgrade requirements satisfied, I followed
https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-or-...
But it fails doing the test composer upgrade, even using
composer update --dry-run drupal/core-composer-scaffold drupal/core-project-message drupal/core-recommended -W
# composer prohibits drupal/core 11.2
Package "drupal/core" could not be found with constraint "11.2", results below will most likely be incomplete.
drupal/classy 1.0.2 requires drupal/core (^9 || ^10)
drupal/core-recommended 10.4.2 requires drupal/core (10.4.2)
drupal/gtranslate 2.x-dev requires drupal/core (^9.3 || ^10)
drupal/zurb_foundation 9.0.0-beta1 requires drupal/core (^9.3 || ^10)
Not finding what you were looking for? Try calling `composer update "drupal/core:11.2" --dry-run` to get another view on the problem.But, I uninstalled gtranslate and classy and removed them from .json and .lock files.
zurb_foundation has a patch in composer.json
"extra": {
"patches": {
"drupal/zurb_foundation": {
"temporary patch": "https://git.drupalcode.org/project/zurb-foundation/-/merge_requests/30.p..."
}
},
So where are these requirements lurking?
Comments
At the time of writing,
At the time of writing, Drupal 11.2 has not been released and does not exist. The current version is 11.1.2. Did you manually change your composer.json file?
Contact me to contract me for D7 -> D10/11 migrations.
Oops.
Composer.json says ^11. But how do I fix the core 10.4.2. I think I need aznew lock file.
# composer prohibits drupal/core 11.1
drupal/core-recommended 10.4.2 requires drupal/core (10.4.2)
drupal/core 11.1.0 requires symfony/console (^7.2)
drupal/recommended-project - does not require symfony/console (but v6.4.17 is installed)
drupal/core 11.1.0 requires symfony/dependency-injection (^7.2)
drupal/recommended-project - does not require symfony/dependency-injection (but v6.4.16 is installed)
drupal/core 11.1.0 requires symfony/event-dispatcher (^7.2)
drupal/recommended-project - does not require symfony/event-dispatcher (but v6.4.13 is installed)
drupal/core 11.1.0 requires symfony/filesystem (^7.2)
drupal/recommended-project - does not require symfony/filesystem (but v6.4.13 is installed)
drupal/core 11.1.0 requires symfony/finder (^7.2)
drupal/recommended-project - does not require symfony/finder (but v6.4.17 is installed)
drupal/core 11.1.0 requires symfony/http-foundation (^7.2)
drupal/recommended-project - does not require symfony/http-foundation (but v6.4.18 is installed)
drupal/core 11.1.0 requires symfony/http-kernel (^7.2)
drupal/recommended-project - does not require symfony/http-kernel (but v6.4.18 is installed)
drupal/core 11.1.0 requires symfony/mailer (^7.2)
drupal/recommended-project - does not require symfony/mailer (but v6.4.18 is installed)
drupal/core 11.1.0 requires symfony/mime (^7.2)
drupal/recommended-project - does not require symfony/mime (but v6.4.18 is installed)
drupal/core 11.1.0 requires symfony/routing (^7.2)
drupal/recommended-project - does not require symfony/routing (but v6.4.18 is installed)
drupal/core 11.1.0 requires symfony/serializer (^7.2)
drupal/recommended-project - does not require symfony/serializer (but v6.4.18 is installed)
drupal/core 11.1.0 requires symfony/validator (^7.2)
drupal/recommended-project - does not require symfony/validator (but v6.4.18 is installed)
drupal/core 11.1.0 requires symfony/process (^7.2)
drupal/recommended-project - does not require symfony/process (but v6.4.15 is installed)
drupal/core 11.1.0 requires symfony/yaml (^7.2)
drupal/recommended-project - does not require symfony/yaml (but v6.4.18 is installed)
drupal/core 11.1.0 requires doctrine/annotations (^2.0)
drupal/recommended-project - does not require doctrine/annotations (but 1.14.4 is installed)
drupal/core 11.1.0 requires symfony/psr-http-message-bridge (^7.2)
drupal/recommended-project - does not require symfony/psr-http-message-bridge (but v6.4.13 is in
I deleted composer.lock
zurb foundation has a patch in composer.json:
"extra": {
"patches": {
"drupal/zurb_foundation": {
"temporary patch": "https://git.drupalcode.org/project/zurb-foundation/-/merge_requests/30.p..."
}
},
And I still get
And somehow, now I am getting
got it finally.
I had to uninstall Zurb Foundation. I should not have had to. Then
composer update -W
worked and a new lock file was created. Why didn't my composer patch work?
Please see https://www.drupal
Please see https://www.drupal.org/forum/support/composer/2023-11-04/posting-in-this...