Ergebnis 1 bis 11 von 11

Thema: Contao 4.4.2 und PHP 7.1

  1. #1
    Contao-Nutzer Avatar von Dillinja
    Registriert seit
    13.07.2009.
    Ort
    Dresden
    Beiträge
    113

    Standard Contao 4.4.2 und PHP 7.1

    Hi Leute,

    kann es sein, dass seit Version 4.4.2, PHP 7.1 von Nöten ist?

    Code:
    Problem 1
        - Installation request for doctrine/annotations v1.5.0 -> satisfiable by doctrine/annotations[v1.5.0].
        - doctrine/annotations v1.5.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
      Problem 2
        - Installation request for doctrine/cache v1.7.0 -> satisfiable by doctrine/cache[v1.7.0].
        - doctrine/cache v1.7.0 requires php ~7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
      Problem 3
        - Installation request for doctrine/collections v1.5.0 -> satisfiable by doctrine/collections[v1.5.0].
        - doctrine/collections v1.5.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
      Problem 4
        - Installation request for doctrine/common v2.8.0 -> satisfiable by doctrine/common[v2.8.0].
        - doctrine/common v2.8.0 requires php ~7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
      Problem 5
        - Installation request for doctrine/dbal v2.6.0 -> satisfiable by doctrine/dbal[v2.6.0].
        - doctrine/dbal v2.6.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
      Problem 6
        - doctrine/dbal v2.6.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
        - doctrine/doctrine-bundle 1.6.8 requires doctrine/dbal ~2.3 -> satisfiable by doctrine/dbal[v2.6.0].
        - Installation request for doctrine/doctrine-bundle 1.6.8 -> satisfiable by doctrine/doctrine-bundle[1.6.8].
    offensichtlich, oder?

    Viele Grüße
    Micha

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.179
    Partner-ID
    10107

    Standard

    Version 4.4.2 ist noch gar nicht heraußen. Die PHP Version wird davon abgesehen erst ab Contao 4.5.0 auf PHP 7.1 angehoben.

    // ah, ist tatsächlich schon heraußen

    Wie hast du Contao 4.4.2 installiert? Oder hast du ein composer update gemacht?

  3. #3
    Contao-Nutzer Avatar von Dillinja
    Registriert seit
    13.07.2009.
    Ort
    Dresden
    Beiträge
    113

    Standard

    composer update

    erst lokal (da läuft 7.1) hab C4.4.2 bemerkt

    dann beim Hoster (HE) da liefs schief (gibts max. 7.0)

    ... Die PHP Version wird davon abgesehen erst ab Contao 4.5.0 auf PHP 7.1 angehoben.
    und ja, genau... darum frag ich.

  4. #4
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.179
    Partner-ID
    10107

    Standard

    Also ich habe mir mal
    Code:
        "config": {
            "component-dir": "assets",
            "platform": {
                "php": "7.1"
            }
        },
    eingetragen, plus
    Code:
        "conflict": {
            "contao/core-bundle": "<4.4.2"
        },
    und ein composer update gemacht. Es wurde ohne Probleme auf Contao 4.4.2 aktualisiert.

  5. #5
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.179
    Partner-ID
    10107

    Standard

    Verwendet man PHP <=7.0 sollte composer automatisch diese Versionen installieren:
    Code:
      - Updating doctrine/collections v1.4.0
      - Updating doctrine/cache v1.6.2
      - Updating doctrine/annotations v1.4.0
      - Updating doctrine/common v2.7.3
      - Updating doctrine/dbal v2.5.13
    Verwendet man PHP >=7.1 sollte composer automatisch diese Versionen installieren:
    Code:
      - Updating doctrine/collections v1.5.0
      - Updating doctrine/cache v1.7.0
      - Updating doctrine/annotations v1.5.0
      - Updating doctrine/common v2.8.0
      - Updating doctrine/dbal v2.6.0
    Zeige mal deine composer.json

  6. #6
    Contao-Nutzer Avatar von Dillinja
    Registriert seit
    13.07.2009.
    Ort
    Dresden
    Beiträge
    113

    Standard

    ist ein Neuistallation über den CM, eben über contao.org (da steht auch noch 4.4.1) herunter geladen.

    phpinfo(); zeigt mit PHP Version 7.0.21-he.0

    da gibts ja die composer.json noch gar nicht? Stimmt das?

  7. #7
    Contao-Nutzer Avatar von Dillinja
    Registriert seit
    13.07.2009.
    Ort
    Dresden
    Beiträge
    113

    Standard

    vielleicht ist man auch gerade noch dabei das anzupassen. Heute Vormittag hat er auch noch innerhalb der 4.4.1 aktualisiert.

  8. #8
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.179
    Partner-ID
    10107

    Standard

    Zitat Zitat von Dillinja Beitrag anzeigen
    ist ein Neuistallation über den CM
    Das wird wohl das Problem sein. Mit composer create-project wird die composer.lock des projects verwendet - und diese ist vermutlich mit PHP 7.1 erzeugt worden. Ticket: https://github.com/contao/managed-edition/issues/25

  9. #9
    Contao-Nutzer Avatar von Dillinja
    Registriert seit
    13.07.2009.
    Ort
    Dresden
    Beiträge
    113

    Standard

    danke dir. und ja, ich hätte das Ticket auch aufmachen können

  10. #10
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.179
    Partner-ID
    10107

    Standard

    Als Workaround müsstest du einstweilen Contao 4.4.1 als Archiv von contao.org runterladen und dann ein composer update machen (entweder selbst oder über den Contao Manager).

  11. #11
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.179
    Partner-ID
    10107

    Standard

    Oder auch einfach nur
    Code:
    composer create-project contao/managed-edition . 4.4.1
    composer update

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •