[gelöst] Composer Update probleme
am 05.12.2020 - 10:05 Uhr in
Wenn ich versuche mit dem Composer Drupal 9.0.x upzudaten sieht alles gut aus, wenn ich dann ins backend gehe sehe ich dort alleriga immernoch die Version 9.0.7
was mache ich falsch?
- Anmelden oder Registrieren um Kommentare zu schreiben

Wie lautet Dein Befehl?
am 07.12.2020 - 08:13 Uhr
Wie lautet Dein Befehl?
*fg* Gibt es denn mehrere
am 07.12.2020 - 09:31 Uhr
*fg*
Gibt es denn mehrere Updatebefehle???
composer update natürlich ;)
So natürlich ist das
am 07.12.2020 - 10:36 Uhr
So natürlich ist das nicht.
Ich hatte schon häufiger das Problem mit Update und verwende dann require.
"
composer update drupal/core-recommended --with-dependenciesIf this doesn't work and you get Nothing to install or update you may need to run composer require.
Sites I have upgraded from Drupal 8 seem to face this issue, it's not really an issue though, use
composer require drupal/core-recommended:^9.0.0 --update-with-all-dependencies"https://designkojo.com/update-core-drupal
Ich gehe mal davon aus, Datenbank-Update hast Du gemacht. ;-)
Wenn ich versuche mit dem
am 07.12.2020 - 11:57 Uhr
Wenn ich versuche mit dem befehl composer update drupal/core-recommended --with-dependencies meine Drupal version upzudaten erhalte ich die meldung
Nothing to install or update
Also das kein Update für meine Installation verfügbar ist
Diese Meldung erhalte ich wenn ich versuche mit dem befehl composer require drupal/core-recommended:^9.1.0 --update-with-all-dependencies Drupal upzudaten
Problem 1
- drupal/core-recommended 9.1.0-rc3 requires drupal/core 9.1.0-rc3 -> satisfiable by drupal/core[9.1.0-rc3] but these conflict with your requirements or minimum-stability.
- drupal/core-recommended 9.1.0-rc2 requires drupal/core 9.1.0-rc2 -> satisfiable by drupal/core[9.1.0-rc2] but these conflict with your requirements or minimum-stability.
- drupal/core-recommended 9.1.0-rc1 requires drupal/core 9.1.0-rc1 -> satisfiable by drupal/core[9.1.0-rc1] but these conflict with your requirements or minimum-stability.
- drupal/core-recommended 9.1.0-beta1 requires drupal/core 9.1.0-beta1 -> satisfiable by drupal/core[9.1.0-beta1] but these conflict with your requirements or minimum-stability.
- drupal/core-recommended 9.1.0-alpha1 requires drupal/core 9.1.0-alpha1 -> satisfiable by drupal/core[9.1.0-alpha1] but these conflict with your requirements or minimum-stability.
- drupal/core-recommended 9.1.0 requires drupal/core 9.1.0 -> satisfiable by drupal/core[9.1.0] but these conflict with your requirements or minimum-stability.
- Conclusion: remove drupal/core 9.0.7
- Conclusion: don't install drupal/core 9.0.7
- drupal/core-recommended 9.1.x-dev requires drupal/core 9.1.x-dev -> satisfiable by drupal/core[9.1.x-dev].
- drupal/core-recommended 9.2.x-dev requires drupal/core 9.2.x-dev -> satisfiable by drupal/core[9.2.x-dev].
- Can only install one of: drupal/core[9.1.x-dev, 9.0.7].
- Can only install one of: drupal/core[9.2.x-dev, 9.0.7].
- Installation request for drupal/core 9.0.7 as 8.9.0 -> satisfiable by drupal/core[9.0.7].
- Installation request for drupal/core-recommended ^9.1.0 -> satisfiable by drupal/core-recommended[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.x-dev, 9.2.x-dev].
Also entweder ist die update funktion buggi oder mit meiner installierten version 9.0.7 stimmt etwas nicht
Ich habe die böse Vermutung
am 07.12.2020 - 12:06 Uhr
Ich habe die böse Vermutung das es am Theme liegt.
Andere Drupal installationen mit anderen Themes lassen sich nämlich anstandslos updaten.
Dass es am Theme liegt, kann
am 07.12.2020 - 12:16 Uhr
Dass es am Theme liegt, kann ich mir nicht so wirklich vorstellen.
Steht in Deiner composer.json noch drupal/core drinnen?
Das musste ich bei mir entfernen, bevor ich mit drupal/core-recommended kam.
Ich würde
drupal/core-recommended:9.1.0installieren, statt
drupal/core-recommended:^9.1.0Weil vermutlich willst Du keine Dev-Version.
Ich hoffe mal, Du hast Backup, bevor Du meinen geratenen Empfehlungen folgst. ;-)
Für mich ist da auch noch jedes Mal viel Try and Error dabei.
ich update immer eine
am 07.12.2020 - 12:32 Uhr
ich update immer eine testversion bevor ich die liveversion update ;)
das selbe ergebnis wie
am 07.12.2020 - 12:40 Uhr
das selbe ergebnis wie vorher
Nothing to install or update
und es ist definitiv nur die Version 9.0.7 installiert
Ich habe in meiner
am 07.12.2020 - 12:50 Uhr
Ich habe in meiner composer.json den folgenden eintrag
"drupal/core": "9.0.7 as 8.9.0"
Wenn ich diesen Eintrag entferne erhalte ich eine ellenlange Fehlermeldung :(
Ich raffe es solangsam nicht mehr
Ich habe soeben vom
am 07.12.2020 - 14:40 Uhr
Ich habe soeben vom Programmierer des Themes eine geänderte composer.json erhalten :)
jetzt hat das Update funktioniert ;)
Es lag an einem eintrag der geändert werden musste.
"drupal/core": "9.0.7 as 8.9.0" muste in "drupal/core": "9.1.0 as 8.9.0" geändert werden und siehe da das Update hat funktioniert ;)
Der Eintrag passt so. Er
am 07.12.2020 - 14:45 Uhr
Der Eintrag passt so. Er sagt: Liebl Composer, wenn du Drupal 9.0. 7 runterlädts, tue bei der Űberprüfung der Abhängigkeiten bitte so, als ob du Drupal 8.x heruntergeladen hättest, weil sich in meiner Installation noch Module befinden, die offiziell noch nicht mit Drupal 9 kompatibel sind.
Zu dem anderen Problem. Drupal 9-recommended ist der Name des Templates du willst doch aber nicht das template aktualisieren, sondern das Kernsystem.
Das geht mit composer update drupal/core:9.11 die Nummer hinter dem Doppelpunkt sollte dabei der Versionsnummer der gewünschten Release entsprechen. Alles wieder klar?