Ergebnis 1 bis 5 von 5

Thema: Fehler beim Update von Contao 4.13 auf 5.34

  1. #1
    Contao-Nutzer
    Registriert seit
    07.09.2011.
    Beiträge
    25

    Standard Fehler beim Update von Contao 4.13 auf 5.34

    Ich möchte ein Update einer Contao-Installation von Version 4.9 auf 5.3 durchführen. Bis 4.13 habe ich es geschafft. Nun aber werde ich vom Contaomanager seit Stunden mit Fehlerausschriften geärgert. Ich finde einfach die Ursache nicht. Hat jemand eine Idee und kann mir helfen? Danke im Voraus :-)

    Fehlerausschriften:

    [7.0MiB/0.27s] Loading composer repositories with package information
    [84.7MiB/13.86s] Updating dependencies
    [113.2MiB/14.84s] Your requirements could not be resolved to an installable set of packages.
    [113.2MiB/14.84s]
    Problem 1
    - Root composer.json requires contao/calendar-bundle 5.3.* -> satisfiable by contao/calendar-bundle[5.3.0, ..., 5.3.34].
    - contao/calendar-bundle 5.3.0 requires contao/core-bundle 5.3.0 -> found contao/core-bundle[5.3.0] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.1 requires contao/core-bundle 5.3.1 -> found contao/core-bundle[5.3.1] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.10 requires contao/core-bundle 5.3.10 -> found contao/core-bundle[5.3.10] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.11 requires contao/core-bundle 5.3.11 -> found contao/core-bundle[5.3.11] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.12 requires contao/core-bundle 5.3.12 -> found contao/core-bundle[5.3.12] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.13 requires contao/core-bundle 5.3.13 -> found contao/core-bundle[5.3.13] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.14 requires contao/core-bundle 5.3.14 -> found contao/core-bundle[5.3.14] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.15 requires contao/core-bundle 5.3.15 -> found contao/core-bundle[5.3.15] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.16 requires contao/core-bundle 5.3.16 -> found contao/core-bundle[5.3.16] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.17 requires contao/core-bundle 5.3.17 -> found contao/core-bundle[5.3.17] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.18 requires contao/core-bundle 5.3.18 -> found contao/core-bundle[5.3.18] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.19 requires contao/core-bundle 5.3.19 -> found contao/core-bundle[5.3.19] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.2 requires contao/core-bundle 5.3.2 -> found contao/core-bundle[5.3.2] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.20 requires contao/core-bundle 5.3.20 -> found contao/core-bundle[5.3.20] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.21 requires contao/core-bundle 5.3.21 -> found contao/core-bundle[5.3.21] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.22 requires contao/core-bundle 5.3.22 -> found contao/core-bundle[5.3.22] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.23 requires contao/core-bundle 5.3.23 -> found contao/core-bundle[5.3.23] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.24 requires contao/core-bundle 5.3.24 -> found contao/core-bundle[5.3.24] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.25 requires contao/core-bundle 5.3.25 -> found contao/core-bundle[5.3.25] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.26 requires contao/core-bundle 5.3.26 -> found contao/core-bundle[5.3.26] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.27 requires contao/core-bundle 5.3.27 -> found contao/core-bundle[5.3.27] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.28 requires contao/core-bundle 5.3.28 -> found contao/core-bundle[5.3.28] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.29 requires contao/core-bundle 5.3.29 -> found contao/core-bundle[5.3.29] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.3 requires contao/core-bundle 5.3.3 -> found contao/core-bundle[5.3.3] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.30 requires contao/core-bundle 5.3.30 -> found contao/core-bundle[5.3.30] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.31 requires contao/core-bundle 5.3.31 -> found contao/core-bundle[5.3.31] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.32 requires contao/core-bundle 5.3.32 -> found contao/core-bundle[5.3.32] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.33 requires contao/core-bundle 5.3.33 -> found contao/core-bundle[5.3.33] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.34 requires contao/core-bundle 5.3.34 -> found contao/core-bundle[5.3.34] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.4 requires contao/core-bundle 5.3.4 -> found contao/core-bundle[5.3.4] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.5 requires contao/core-bundle 5.3.5 -> found contao/core-bundle[5.3.5] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.6 requires contao/core-bundle 5.3.6 -> found contao/core-bundle[5.3.6] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.7 requires contao/core-bundle 5.3.7 -> found contao/core-bundle[5.3.7] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.8 requires contao/core-bundle 5.3.8 -> found contao/core-bundle[5.3.8] but these were not loaded, likely because it conflicts with another require.
    - contao/calendar-bundle 5.3.9 requires contao/core-bundle 5.3.9 -> found contao/core-bundle[5.3.9] but these were not loaded, likely because it conflicts with another require.
    [113.2MiB/14.84s] <warning>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.</warning>
    [56.0MiB/14.91s] Memory usage: 56MB (peak: 203.81MB), time: 14.92s.
    [56.0MiB/14.91s] Finished Composer Cloud resolving.

    Im Forum habe ich auch schon geschaut - ohne Erfolg.
    Meine config.yml habe ich geleert ebenso alle Caches. PHP-Version 8.1.32 ist aktiv.

    Die composer.json sieht so aus:

    HTML-Code:
    {
        "type": "project",
        "require": {
            "contao/calendar-bundle": "4.13.*",
            "contao/comments-bundle": "4.13.*",
            "contao/conflicts": "*@dev",
            "contao/faq-bundle": "4.13.*",
            "contao/listing-bundle": "4.13.*",
            "contao/manager-bundle": "4.13.*",
            "contao/manager-plugin": "2.13.*",
            "contao/news-bundle": "4.13.*",
            "contao/newsletter-bundle": "4.13.*",
            "do-while/contao-backupdb-bundle": "^1.5",
            "madeyourday/contao-rocksolid-antispam": "^2.0",
            "madeyourday/contao-rocksolid-columns": "^2.0",
            "madeyourday/contao-rocksolid-custom-elements": "^2.3",
            "madeyourday/contao-rocksolid-frontend-helper": "^2.1",
            "madeyourday/contao-rocksolid-icon-picker": "^2.0",
            "madeyourday/contao-rocksolid-mega-menu": "^2.1",
            "madeyourday/contao-rocksolid-slider": "^2.1",
            "madeyourday/contao-rocksolid-theme-assistant": "^2.0",
            "oveleon/contao-cookiebar": "^1.12",
            "terminal42/notification_center": "^1.6"
        },
        "extra": {
            "contao-component-dir": "assets",
            "public-dir": "web"
        },
        "scripts": {
            "post-install-cmd": [
                "@php vendor/bin/contao-setup"
            ],
            "post-update-cmd": [
                "@php vendor/bin/contao-setup"
            ]
        }
    }

  2. #2
    Community-Moderator & Contao-Urgestein Avatar von derRenner
    Registriert seit
    23.10.2012.
    Ort
    hoRn|waldviertel
    Beiträge
    2.980
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Hallo,
    versuche mal die korrekten Versionen der Erweiterungen im Contao Manager mit einzutragen.
    z.B.
    "oveleon/contao-cookiebar": "^2.2"
    oder
    "do-while/contao-backupdb-bundle": "^2.0"

    Bei den anderen müsstest du noch selbst nachschauen ...
    Grüsse
    Bernhard


  3. #3
    Alter Contao-Hase
    Registriert seit
    24.02.2021.
    Beiträge
    1.477
    Partner-ID
    11715
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Du musst alle deine Abhängigkeiten kontrollieren.

    • Notification Center in 1.6 ist nicht für Contao 5 freigegeben, auch nicht in 1.7 - kontrolliere also über die package-list oder via packagist, welche Version du nutzen musst -> Also ^2.0
    • Backup DB Bundle in Version 1 ist nicht für Contao 5 freigegeben, nutze also Version ^2.0
    • Contao Cookiebar in Version 1 ist nicht für Contao 5 freigegeben, nutze also Version ^2.0

  4. #4
    Contao-Nutzer
    Registriert seit
    07.09.2011.
    Beiträge
    25

    Standard

    Vielen Dank für die Hinweise. Ich habe es daraufhin geschafft auf Version 5.3.34 zu updaten. Allerdings bringt die Seite jetzt "Es ist ein Fehler aufgetreten": https://53.gospelholydays-com. Die Datenbank kann nicht vollständig aktualisiert werden. Folgende Operationen konnten nicht ausgeführt werden:

    Feld tl_search_index.termId hinzufügen
    An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0-52' for key 'PRIMARY'

    Feld tl_search_index.language löschen
    Feld tl_search_index.word löschen
    Feld tl_search_index.pid ändern
    Feld tl_search_index.relevance ändern
    Feld tl_search_index.PRIMARY hinzufügen

    ALTER TABLE tl_search_index pid)

    ALTER TABLE tl_search_index ADD termId INT UNSIGNED NOT NULL, DROP language, DROP word, CHANGE pid pid INT UNSIGNED NOT NULL, CHANGE relevance relevance SMALLINT UNSIGNED NOT NULL, ADD PRIMARY KEY (termid, pid)
    --------------

    Das Problem ist wohl das Plugin Datenbanksicherung. Es ist auch noch nicht von 2.0.1 auf 2.1.1. aktualisiert worden.

    In der log-Datei steht folgendes:

    [2025-07-03T22:21:37.570299+00:00] request.CRITICAL: Uncaught PHP Exception Error: "Class "Config" not found" at rsce_oneo_boxes_config.php line 102 {"exception":"[object] (Error(code: 0): Class "Config" not found at /var/www/vhosts/35.gospelholydays.com/gospelholydays.com/contao53/templates/oneo/rsce_oneo_boxes_config.php:102)"} {"request_uri":"https://53.gospelholydays.com/favicon.ico","request_method":"GET"}
    [2025-07-04T00:21:37.749728+02:00] messenger.INFO: Stopping worker. {"transport_names":["contao_prio_high"]} {"request_uri":"https://53.gospelholydays.com/favicon.ico","request_method":"GET"}

    Die composer.json sieht so aus:

    HTML-Code:
    {
        "type": "project",
        "require": {
            "contao/calendar-bundle": "5.3.*",
            "contao/comments-bundle": "5.3.*",
            "contao/conflicts": "*@dev",
            "contao/faq-bundle": "5.3.*",
            "contao/listing-bundle": "5.3.*",
            "contao/manager-bundle": "5.3.*",
            "contao/manager-plugin": "2.13.*",
            "contao/news-bundle": "5.3.*",
            "contao/newsletter-bundle": "5.3.*",
            "do-while/contao-backupdb-bundle": "^2.0",
            "madeyourday/contao-rocksolid-antispam": "^2.0",
            "madeyourday/contao-rocksolid-columns": "^2.0",
            "madeyourday/contao-rocksolid-custom-elements": "^2.3",
            "madeyourday/contao-rocksolid-frontend-helper": "^2.1",
            "madeyourday/contao-rocksolid-icon-picker": "^2.0",
            "madeyourday/contao-rocksolid-mega-menu": "^2.1",
            "madeyourday/contao-rocksolid-slider": "^2.1",
            "madeyourday/contao-rocksolid-theme-assistant": "^2.0",
            "oveleon/contao-cookiebar": "^2.0",
            "terminal42/notification_center": "^2.0"
        },
        "extra": {
            "contao-component-dir": "assets",
            "public-dir": "web"
        },
        "scripts": {
            "post-install-cmd": [
                "@php vendor/bin/contao-setup"
            ],
            "post-update-cmd": [
                "@php vendor/bin/contao-setup"
            ]
        }
    }
    Im Debug-Modus wird folgendes angezeigt:

    Attempted to load class "Config" from the global namespace.
    Did you forget a "use" statement for "League\Flysystem\Config"?

    Symfony\Component\ErrorHandler\Error\
    ClassNotFoundError
    in templates/oneo/rsce_oneo_boxes_config.php (line 102)
    ),
    'inputType' => 'fileTree',
    'eval' => array( 'fieldType' => 'radio',
    'filesOnly' => true,
    'extensions' => \Config::get('validImageTypes'),
    ),
    ),
    'label' => array( 'label' => array( 'en' => array('Label', ''),

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

    Standard

    Du musst auch das Theme und dessen Dateien bzw. Templates aktualisieren.
    » sponsor me via GitHub or Revolut

Aktive Benutzer

Aktive Benutzer

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

Berechtigungen

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