Drupal update 8 auf 9 mit Composer update 1 auf 2
am 28.02.2022 - 21:38 Uhr in
Hallo,
ich versuche gerade ein Upgrade einer älteren Drupal Seite von Version 8 auf Version 9. Auf meinem System hatte ich schon ein Composer mit der Version 2.1.9. Das fand aber die Seite nicht gut, weil auf der Seite wohl alles noch mit einem Composer 1 installiert wurde.
Weil in den Anleitungen die ich dazu im Internat fand stand, dass man von einem Composer 1 upgraden soll, hab ich mir wieder Composer 1 installiert. Anleitungen habe ich folgende:
https://gorannikolovski.com/blog/upgrading-drupal-9-and-composer-2
https://patrickmichael.co.za/drupal-88-9-upgrade-resolving-composer-1-2-...
Wenn in der Anleitung zum Beispiel steht "Update composer/installers and cweagans/composer-patches" wie mache ich das?
Hatte jetzt einfach mal folgendes versucht:
"composer require composer/installers:^1.9 cweagans/composer-patches:^1.7"
Darauf bekomme ich folgende Fehler:
Problem 1
- Installation request for drupal/entity_usage ^2.0 -> satisfiable by drupal/entity_usage[2.0.0-beta3].
- Removal request for drupal/entity_usage == 2.0.0.0-beta3
Problem 2
- Installation request for drupal/inline_entity_form ^1.0 -> satisfiable by drupal/inline_entity_form[1.0.0-rc3].
- Removal request for drupal/inline_entity_form == 1.0.0.0-RC3
Problem 3
- Installation request for drupal/metatag ^1.19 -> satisfiable by drupal/metatag[1.19.0].
- drupal/metatag 1.19.0 requires drupal/core ^9 -> satisfiable by drupal/core[9.0.0, 9.0.0-alpha1, 9.0.0-alpha2, 9.0.0-beta1, 9.0.0-beta2, 9.0.0-beta3, 9.0.0-rc1, 9.0.1, 9.0.10, 9.0.11, 9.0.12, 9.0.13, 9.0.14, 9.0.2, 9.0.3, 9.0.4, 9.0.5, 9.0.6, 9.0.7, 9.0.8, 9.0.9, 9.0.x-dev, 9.1.0, 9.1.0-alpha1, 9.1.0-beta1, 9.1.0-rc1, 9.1.0-rc2, 9.1.0-rc3, 9.1.1, 9.1.10, 9.1.11, 9.1.12, 9.1.13, 9.1.14, 9.1.15, 9.1.2, 9.1.3, 9.1.4, 9.1.5, 9.1.6, 9.1.7, 9.1.8, 9.1.9, 9.1.x-dev, 9.2.0, 9.2.0-alpha1, 9.2.0-beta1, 9.2.0-beta2, 9.2.0-beta3, 9.2.0-rc1, 9.2.1, 9.2.10, 9.2.11, 9.2.12, 9.2.13, 9.2.2, 9.2.3, 9.2.4, 9.2.5, 9.2.6, 9.2.7, 9.2.8, 9.2.9, 9.2.x-dev, 9.3.0, 9.3.0-alpha1, 9.3.0-beta1, 9.3.0-beta2, 9.3.0-beta3, 9.3.0-rc1, 9.3.1, 9.3.2, 9.3.3, 9.3.4, 9.3.5, 9.3.6, 9.3.x-dev, 9.4.x-dev] but these conflict with your requirements or minimum-stability.
Problem 4
- Installation request for drupal/zurb_foundation ^6.0 -> satisfiable by drupal/zurb_foundation[6.0.0-alpha5].
- Removal request for drupal/zurb_foundation == 6.0.0.0-alpha5
Problem 5
- webflo/drupal-core-require-dev 8.8.5 requires behat/mink 1.7.x-dev -> satisfiable by behat/mink[1.7.x-dev].
- webflo/drupal-core-require-dev 8.8.5 requires behat/mink 1.7.x-dev -> satisfiable by behat/mink[1.7.x-dev].
- webflo/drupal-core-require-dev 8.8.5 requires behat/mink 1.7.x-dev -> satisfiable by behat/mink[1.7.x-dev].
- Removal request for behat/mink == 1.7.9999999.9999999-dev
- Installation request for webflo/drupal-core-require-dev (locked at 8.8.5) -> satisfiable by webflo/drupal-core-require-dev[8.8.5].
Ich bin jetzt erst einmal bei Problem 1 und Problem 2. Soll ich die Module jetzt entfernen, habe ich das richtig verstanden? Würde ich aber sehr ungern tun.
Oder soll ich die einfach nur updaten? Wäre für jeden Tip sehr dankbar.
Meine veraltete composer.json:
{
"name": "drupal-composer/drupal-project",
"description": "Project template for Drupal 8 projects with composer",
"type": "project",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "",
"role": ""
}
],
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"php": ">=7.0.8",
"behat/mink-selenium2-driver": "dev-master as 1.3.x-dev",
"composer/installers": "^1.9",
"cweagans/composer-patches": "^1.7",
"drupal/adminimal_admin_toolbar": "^1.10",
"drupal/adminimal_theme": "^1.5",
"drupal/aet": "2.x-dev@dev",
"drupal/backup_migrate": "^4.0",
"drupal/business_rules": "2.x-dev@dev",
"drupal/ckeditor_accordion": "1.x-dev@dev",
"drupal/ckeditor_font": "1.x-dev@dev",
"drupal/commerce": "^2.16",
"drupal/commerce_feeds": "^1.0@alpha",
"drupal/context": "4.x-dev",
"drupal/core": "^8.8",
"drupal/datatables": "1.x-dev",
"drupal/devel": "^2.1",
"drupal/diff": "^1.0",
"drupal/ds": "^3.4",
"drupal/entity_print": "2.x-dev",
"drupal/entity_usage": "^2.0",
"drupal/fancy_login": "^2.2",
"drupal/feeds": "3.x-dev",
"drupal/feeds_para_mapper": "1.x-dev",
"drupal/feeds_tamper": "^2.0@beta",
"drupal/field_group": "^3.0",
"drupal/flag": "^4.0@alpha",
"drupal/foundation_layouts": "^6.0",
"drupal/go_back": "^1.5",
"drupal/go_back_history": "^1.0",
"drupal/inline_entity_form": "^1.0",
"drupal/isbn": "^1.1",
"drupal/libraries": "^3.0@alpha",
"drupal/menu_token": "1.x-dev@dev",
"drupal/metatag": "^1.19",
"drupal/module_filter": "^3.1",
"drupal/node_token": "^1.1",
"drupal/pagebreak": "^1.0",
"drupal/paragraphs": "^1.12",
"drupal/paragraphs_inline_entity_form": "^1.0@beta",
"drupal/patchinfo": "^1.1",
"drupal/pathauto": "^1.8",
"drupal/php": "1.x-dev@dev",
"drupal/printfriendly": "^3.4",
"drupal/reference_table_formatter": "1.x-dev",
"drupal/revision_log": "1.x-dev@dev",
"drupal/revision_log_default": "^1.2",
"drupal/rules": "3.x-dev@dev",
"drupal/rules_ban": "^3.0@alpha",
"drupal/rules_conditional": "1.x-dev@dev",
"drupal/show_title": "^1.5",
"drupal/super_login": "^1.3",
"drupal/svg_image": "^1.15",
"drupal/tablefield": "^2.1",
"drupal/token": "^1.9",
"drupal/token_custom": "^1.0@alpha",
"drupal/token_filter": "1.x-dev@dev",
"drupal/total_control": "^2.0@beta",
"drupal/tr_rulez": "1.x-dev@dev",
"drupal/vardumper": "^1.5",
"drupal/vbo_export": "^3.1",
"drupal/view_mode_page": "3.x-dev",
"drupal/view_modes_display": "^2.2",
"drupal/views_bulk_operations": "^3.3",
"drupal/views_cumulative_field": "^1.5",
"drupal/views_data_export": "1.x-dev",
"drupal/views_simple_math_field": "2.x-dev@dev",
"drupal/zurb_foundation": "^6.0",
"drush/drush": "^9.0.0",
"firephp/firephp-core": "^0.5.3",
"mikehaertl/phpwkhtmltopdf": "~2.1",
"phpoffice/phpexcel": "1.8.0",
"phpoffice/phpspreadsheet": "^1.6",
"phpoffice/phpword": "^0.17.0",
"tecnickcom/tcpdf": "~6",
"vlucas/phpdotenv": "^2.4",
"webflo/drupal-finder": "^1.0.0",
"webmozart/path-util": "^2.3",
"zaporylie/composer-drupal-optimizations": "^1.0"
},
"require-dev": {
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"sort-packages": true
},
"autoload": {
"classmap": [
"scripts/composer/ScriptHandler.php"
],
"files": ["load.environment.php"]
},
"scripts": {
"pre-install-cmd": [
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
],
"pre-update-cmd": [
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
],
"post-install-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
],
"post-update-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
]
},
"extra": {
"composer-exit-on-patch-failure": true,
"patchLevel": {
"drupal/core": "-p2"
},
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/libraries/{$name}": ["type:drupal-library"],
"web/modules/contrib/{$name}": ["type:drupal-module"],
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
"web/themes/contrib/{$name}": ["type:drupal-theme"],
"drush/Commands/contrib/{$name}": ["type:drupal-drush"]
},
"drupal-scaffold": {
"initial": {
".editorconfig": "../.editorconfig",
".gitattributes": "../.gitattributes"
}
}
}
}
Danke und Grüsse Bavra
- Anmelden oder Registrieren um Kommentare zu schreiben
Ich habe in solchen Fällen
am 28.02.2022 - 23:44 Uhr
Ich habe in solchen Fällen die Module, die Probleme machen, in den custom-Ordner verschoben und mit composer remove den Eintrag aus dem composer.json entfernt. Damit Drupal darüber nicht aufschlägt, hilft ein drush cr. Du mußt Dich dann allerdings selbst um die zukünftigen Updates dieser Module kümmern, aber wenn eine mit 9 kompatible Version existiert, nach dem Update auf 9 die neue Version wieder mit composer installieren und das alte Modul aus dem custom Ordner löschen. Danach wieder drush cr ausführen, damit die neue Location des Moduls wieder gefunden wird.
.
Werner
drupal-training.de
Moderator und Drupal Trainer
* - - - - - - - - - - - - - - - - - - - - - - - - - - - *