Hallo! Ich habe auch dieses Problem mit Version 4.10.4, aber kein require in der composer.
Ich habe beim Provider auf PHP 8 gestellt. Es läuft alles bis auf die Con4gis Map. Und ein Update funktioniert nicht. Was könnte da noch der Fehler sein?
Druckbare Version
Hallo! Ich habe auch dieses Problem mit Version 4.10.4, aber kein require in der composer.
Ich habe beim Provider auf PHP 8 gestellt. Es läuft alles bis auf die Con4gis Map. Und ein Update funktioniert nicht. Was könnte da noch der Fehler sein?
Was genau funktioniert nicht?
Ich kann keine Pakete updaten.
Das musst du näher beschreiben. Poste bspw. die komplette Konsolenausgabe wenn du "Composer Update ausführen" ausführst.
Code:> Resolving dependencies using Composer Cloud v3.5.1
[7.1MiB/0.21s] Loading composer repositories with package information
[67.7MiB/8.52s] Updating dependencies
[87.5MiB/8.71s] Your requirements could not be resolved to an installable set of packages.
[87.5MiB/8.71s]
Problem 1
- blioxxx/contao-tosrus is locked to version 2.0.2 and an update of this package was not requested.
- blioxxx/contao-tosrus 2.0.2 requires php ^7.1 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 2
- Root composer.json requires contao/calendar-bundle 4.10.4 -> satisfiable by contao/calendar-bundle[4.10.4].
- contao/calendar-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 3
- Root composer.json requires contao/comments-bundle 4.10.4 -> satisfiable by contao/comments-bundle[4.10.4].
- contao/comments-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 4
- Root composer.json requires contao/faq-bundle 4.10.4 -> satisfiable by contao/faq-bundle[4.10.4].
- contao/faq-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 5
- Root composer.json requires contao/listing-bundle 4.10.4 -> satisfiable by contao/listing-bundle[4.10.4].
- contao/listing-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 6
- contao/manager-bundle is locked to version 4.10.4 and an update of this package was not requested.
- contao/manager-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 7
- Root composer.json requires contao/news-bundle 4.10.4 -> satisfiable by contao/news-bundle[4.10.4].
- contao/news-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 8
- Root composer.json requires contao/newsletter-bundle 4.10.4 -> satisfiable by contao/newsletter-bundle[4.10.4].
- contao/newsletter-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 9
- contao/core-bundle[4.10.1, ..., 4.10.4] require php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
- oveleon/contao-cookiebar 1.12.6 requires contao/core-bundle ^4.9.28 -> satisfiable by contao/core-bundle[4.9.28, ..., 4.13.14].
- oveleon/contao-cookiebar is locked to version 1.12.6 and an update of this package was not requested.
[87.5MiB/8.72s] Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
[37.7MiB/8.75s] Memory usage: 37.74MB (peak: 189.77MB), time: 8.76s.
[37.7MiB/8.75s] Finished Composer Cloud resolving.
# Cloud Job ID X6kZqurOGPjYKy38iOFiVxzS7qmgwTR1SNYMtWwBTKU1A8jZDsIRVsdoFHawVeGHRU6IHbISlkeP9z4l6vcKuPjvDOiCpDi0Rw3ShmAMOY failed
Zwei Probleme:
- Du hast nicht "Composer Update ausführen" genutzt.
- Du hast das Paket blioxxx/contao-tosrus required, welches aber nicht mit deiner PHP Version kompatibel ist.
Moderation: Posts in eigenen Thread verschoben.
Das Update gibr mir folgendes aus:
Code:> Resolving dependencies using Composer Cloud v3.5.1
[7.1MiB/0.17s] Loading composer repositories with package information
[91.0MiB/9.09s] Updating dependencies
[198.1MiB/9.88s] Your requirements could not be resolved to an installable set of packages.
[198.1MiB/9.88s]
Problem 1
- Root composer.json requires contao/calendar-bundle 4.10.4 -> satisfiable by contao/calendar-bundle[4.10.4].
- contao/calendar-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 2
- Root composer.json requires contao/comments-bundle 4.10.4 -> satisfiable by contao/comments-bundle[4.10.4].
- contao/comments-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 3
- Root composer.json requires contao/faq-bundle 4.10.4 -> satisfiable by contao/faq-bundle[4.10.4].
- contao/faq-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 4
- Root composer.json requires contao/listing-bundle 4.10.4 -> satisfiable by contao/listing-bundle[4.10.4].
- contao/listing-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 5
- Root composer.json requires contao/manager-bundle 4.10.4 -> satisfiable by contao/manager-bundle[4.10.4].
- contao/manager-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 6
- Root composer.json requires contao/news-bundle 4.10.4 -> satisfiable by contao/news-bundle[4.10.4].
- contao/news-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 7
- Root composer.json requires contao/newsletter-bundle 4.10.4 -> satisfiable by contao/newsletter-bundle[4.10.4].
- contao/newsletter-bundle 4.10.4 requires php ^7.2 -> your php version (8.0.27.0) does not satisfy that requirement.
Problem 8
- con4gis/core[v4.0.17, ..., v4.1.5] require php ^7.1 -> your php version (8.0.27.0) does not satisfy that requirement.
- Root composer.json requires con4gis/core ^4.0.17 -> satisfiable by con4gis/core[v4.0.17, ..., v4.1.5].
[198.1MiB/9.88s] Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
[55.8MiB/9.97s] Memory usage: 55.79MB (peak: 214.31MB), time: 9.98s.
[55.8MiB/9.97s] Finished Composer Cloud resolving.
# Cloud Job ID qEJDVuk76LcU0ceVZEwYl4wdj2Em2W5zC44hmP7UUZQYsXcrrbpUPGCs7EaUAcMy7MTJweQmCuO7xhvKgKmLx1Mqq3eltP1Roh4fWGznZgeZsdwLbJAuzZ failed
Du hast con4gis/core ^4.0.17 required, welches nicht mit PHP 8 kompatibel ist.
Mit ein bisschen mehr Eigeninitiative kannst du das aber selbst aus der Meldung ablesen ;)
Hm ok. Irgendwo gab es doch einmal eine Erklärung, was das z.B: "^7.1" exakt bedeutet. Das ich ja Con4gis brauche muss ich dann wieder auf PHP 7 retour um das zu installieren?
https://getcomposer.org/doc/articles/versions.md
Oder auf eine neuere Version aktualisieren. PHP 8 ist ab Version 5.0.0 freigeschalten: https://packagist.org/packages/con4gis/core
Unabhängig davon solltest du auch dringend Contao aktualisieren. Contao 4.10 hat schon lange das Lebensende erreicht.
Bei mir steht überall "Es ist eine neuere Version ausserhalb der Versionsbedingung verfügbar." Was meint das hier?
Wenn du zB ^1.0 von einem Paket installiert hast, aber das Paket schon eine 2.*, 3.* etc. zur Verfügung hat.
Hm, und wie kann ich die installieren?
Was willst du installieren?
Updaten meine ich natürlich.
Du musst das Requirement des jeweiligen Pakets ändern.
Also manuell in der composer.json.
Oder im Contao Manager.
Kann ich was falsch machen? Welche Version nehme ich jeweils am besten?
Bei einer Aktualisierung auf neue Major Versionen kann es nicht-rückwärtskompatible Änderungen geben (sofern sich die jeweiligen Pakete an Semantic Versioning halten). Hier bleibt dir nichts anderes über als bspw. die Changelogs oder sonstigen Dokumentationen der jeweiligen Pakete zu durchforsten.
Hallo!
dank der freundlichen Hilfe und Anregung hat alles ganz gut geklappt. Eine Sache ist alledings noch offen.
Die zwei folgenden DB-Änderungen gehen nicht durch.
Datenbank-Migrationen 2 ausstehende Schema-Änderungen
Feld tl_dlh_geocode.longitude ändernDOUBLE PRECISION UNSIGNED DEFAULT '0.000000' NOT NULL
Feld tl_dlh_geocode.latitude ändernDOUBLE PRECISION UNSIGNED DEFAULT '0.000000' NOT NULL
ALTER TABLE tl_dlh_geocode CHANGE longitude longitude DOUBLE PRECISION UNSIGNED DEFAULT '0.000000' NOT NULL
ALTER TABLE tl_dlh_geocode CHANGE latitude latitude DOUBLE PRECISION UNSIGNED DEFAULT '0.000000' NOT NULL
Kannst du ignorieren.
Ok, dann schleppe ich das immer mit? Soll ich das in der DB direkt machen?
Du kannst in der DB nichts machen, weil es dort nichts zu tun gibt.
Du könntest das DCA dieser (alten und nicht mehr weiter entwickelten) Extension entsprechend ändern, sodass Contao erkennt, dass es in Wirklichkeit nichts zu tun gibt.
Aber wie das aussehen muss kann ich dir auch nicht sagen. Könnte man über gewisse SQL Queries herausfinden. Vermutlich muss die Definition des Defaults geändert werden.