Ergebnis 1 bis 9 von 9

Thema: Update 5.3 auf 5.7

  1. #1
    Contao-Nutzer Avatar von skuhrt
    Registriert seit
    30.06.2009.
    Beiträge
    75

    Standard Update 5.3 auf 5.7

    Hallo.

    Ich wollte in meiner Test-Instanz eine Version 5.3 auf 5.7 updaten. Leider komme ich immer zu folgender Fehlermeldung, wenn der Composer installieren will (der Testdurchlauf klappt). Mir ist aber nicht klar, woher der Fehler kommt. Eine Extension kann es nicht mehr sein

    Code:
    18:23:14 CRITICAL  [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "Cannot load resource "../src/Controller". Make sure there is a loader supporting the "annotation" type." ["exception" => Symfony\Component\Config\Exception\LoaderLoadException { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "Cannot load resource "../src/Controller". Make sure there is a loader supporting the "annotation" type."]
    In Loader.php line 67:
                                                                                   
      Cannot load resource "../src/Controller". Make sure there is a loader suppo  
      rting the "annotation" type.                                                 
                                                                                   
    cache:warmup [--no-optional-warmers]
    18:23:14 CRITICAL  [console] An error occurred while using the console. Message: "An error occurred while executing the "/usr/bin/php84 -dmemory_limit=-1 /www/htdocs/xzy/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command: 18:23:14 CRITICAL  [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "Cannot load resource "../src/Controller". Make sure there is a loader supporting the "annotation" type." ["exception" => Symfony\Component\Config\Exception\LoaderLoadException { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "Cannot load resource "../src/Controller". Make sure there is a loader supporting the "annotation" type."]
    In Loader.php line 67:
                                                                                   
      Cannot load resource "../src/Controller". Make sure there is a loader suppo  
      rting the "annotation" type.                                                 
                                                                                   
    cache:warmup [--no-optional-warmers]
    " ["exception" => RuntimeException { …},"message" => """  An error occurred while executing the "/usr/bin/php84 -dmemory_limit=-1 /www/htdocs/xzy/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command: 18:23:14 CRITICAL  [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "Cannot load resource "../src/Controller". Make sure there is a loader supporting the "annotation" type." ["exception" => Symfony\Component\Config\Exception\LoaderLoadException { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "Cannot load resource "../src/Controller". Make sure there is a loader supporting the "annotation" type."]\n  \n  In Loader.php line 67:\n                                                                                 \n    Cannot load resource "../src/Controller". Make sure there is a loader suppo  \n    rting the "annotation" type.                                                 \n                                                                                 \n  \n  cache:warmup [--no-optional-warmers]\n  \n  """]
    In ContaoSetupCommand.php line 156:
                                                                                   
      An error occurred while executing the "/usr/bin/php84 -dmemory_limit=-1 /ww  
      w/htdocs/xzy/vendor/contao/manager-bun  
      dle/bin/contao-console cache:warmup --env=prod --no-ansi" command: 18:23:14  
       CRITICAL  [console] Error thrown while running command "cache:warmup --env  
      =prod --no-ansi". Message: "Cannot load resource "../src/Controller". Make   
      sure there is a loader supporting the "annotation" type." ["exception" => S  
      ymfony\Component\Config\Exception\LoaderLoadException { …},"command" => "ca  
      che:warmup --env=prod --no-ansi","message" => "Cannot load resource "../src  
      /Controller". Make sure there is a loader supporting the "annotation" type.  
      "]                                                                           
                                                                                   
      In Loader.php line 67:                                                       
                                                                                   
                                                                                   
        Cannot load resource "../src/Controller". Make sure there is a loader sup  
      po                                                                           
        rting the "annotation" type.                                               
                                                                                   
                                                                                   
                                                                                   
                                                                                   
      cache:warmup [--no-optional-warmers]                                         
                                                                                   
    contao:setup
    Script @php vendor/contao/manager-bundle/bin/contao-setup handling the post-install-cmd event returned with error code 1
    # Process terminated with exit code 1
    # Result: General error

    Ich wäre für einen Tipp super dankbar!

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

    Standard

    Hast du evt. eigene Dateien im config/ Ordner bspw.?
    » sponsor me via GitHub or Revolut

  3. #3
    Contao-Fan Avatar von mandrake
    Registriert seit
    19.06.2009.
    Ort
    Düsseldorf
    Beiträge
    485

    Standard

    Und du hast wirklich keine einzige Erweiterung im System laufen?

  4. #4
    Contao-Nutzer Avatar von skuhrt
    Registriert seit
    30.06.2009.
    Beiträge
    75

    Standard

    Vielen Dank für eure Antworten.

    Zu den Fragen:
    Hast du evt. eigene Dateien im config/ Ordner bspw.?
    Im config-Ordner sind 2 Dateien:
    • parameters.yml
    • config.yaml




    Und du hast wirklich keine einzige Erweiterung im System laufen?
    Doch, sry, da hatte ich mich falsch ausgedrückt. Natürlich habe ich Erweiterungen, von denen ich der Meinung, war, dass sie 5.7 ready sind. In der Vergangenheit war bei solchen Minor-Updates eigentlich die Fehlermeldung immer eindeutig und hat auf die entsprechende Extension hingewiesen, die Ärger macht. Aber hier scheint das Problem tiefer zu liegen.

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

    Standard

    Poste deine config.yaml und composer.json
    » sponsor me via GitHub or Revolut

  6. #6
    Contao-Urgestein
    Registriert seit
    24.02.2021.
    Beiträge
    1.963
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Poste deine config.yaml und composer.json
    Um es nochmal für Spooky zu konkretisieren, poste bitte den Inhalt daraus.

  7. #7
    Contao-Nutzer Avatar von skuhrt
    Registriert seit
    30.06.2009.
    Beiträge
    75

    Standard

    Sehr gerne.

    config.yaml
    Code:
    # Contao configuration 
    contao:
       image:
          imagine_options:
             jpeg_quality: 75
    
    doctrine:
      dbal:
        connections:
          default:
            options:
              1002: "SET SESSION sql_mode=(SELECT CONCAT(@@sql_mode, ',TRADITIONAL'))"
    
    contao_cookiebar:
      consider_dnt: false
      anonymize_ip: true
      lifetime: 63072000
      storage_key: ccb_contao_token
      page_templates:
        - fe_page
      iframe_types:
        youtube: 
          - ce_youtube
        vimeo: 
          - ce_vimeo
        googlemaps:
          - ce_html_googlemaps
          - mod_html_googlemaps

    composer.json

    Code:
    {
        "name": "contao/managed-edition",
        "type": "project",
        "description": "Contao Open Source CMS",
        "license": "LGPL-3.0-or-later",
        "authors": [
            {
                "name": "Leo Feyer",
                "homepage": "https://github.com/leofeyer"
            }
        ],
        "require": {
            "bluebranch/bilder-alt": "^1.2",
            "cgoit/calendar-extended-bundle": "^2.4",
            "codefog/contao-social_images": "^4.1",
            "contao-themes-net/mate-theme-bundle": "^3.5",
            "contao-themes-net/theme-components-bundle": "^1.6",
            "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/news-bundle": "5.3.*",
            "cowegis/cowegis-contao-bundle": "^1.0",
            "fritzmg/contao-backend-documentation": "^1.0",
            "hofff/contao-content-navigation": "^2.0",
            "jonnysp/pannorama": "^1.0",
            "lukasbableck/contao-alt-editor-bundle": "^1.6",
            "lukasbableck/contao-better-elementgroups-bundle": "^1.2",
            "madeyourday/contao-rocksolid-frontend-helper": "^2.2",
            "numero2/contao-proper-filenames": "^2.2",
            "numero2/contao-structured-data": "^1.0",
            "oveleon/contao-cookiebar": "^2.2",
            "pdir/animated-timeline-bundle": "^1.3",
            "pdir/contao-seo-plugin": "^1.0",
            "pdir/social-feed-bundle": "^2.13",
            "terminal42/contao-node": "^1.5",
            "terminal42/contao-shortlink": "^1.5",
            "w3scout/contao-compareimagesslider-bundle": "^1.0",
            "w3scout/contao-youtubelitespeedembed-bundle": "^1.0"
        },
        "conflict": {
            "contao-components/installer": "<1.3",
            "kigkonsult/icalcreator": ">= 2.27",
            "doctrine/doctrine-bundle": "<1.12.8"
        },
        "extra": {
            "contao-component-dir": "assets",
            "public-dir": "public"
        },
        "autoload": {
            "psr-4": {
                "App\\": "src/"
            }
        },
        "scripts": {
            "post-install-cmd": [
                "@php vendor/contao/manager-bundle/bin/contao-setup"
            ],
            "post-update-cmd": [
                "@php vendor/contao/manager-bundle/bin/contao-setup"
            ]
        },
        "config": {
            "allow-plugins": {
                "contao-components/installer": true,
                "contao/manager-plugin": true,
                "contao-community-alliance/composer-plugin": true
            },
            "bin-dir": "vendor/contao/manager-bundle/bin"
        }
    }
    Die Version steht auf 5.3, weil die 5.7er Installation ja wegen des obigen Fehlers nicht durchläuft.


    Danke für eure Mühen.

  8. #8
    Contao-Fan Avatar von Birden
    Registriert seit
    15.01.2011.
    Beiträge
    862

    Standard

    Ändert sich was nach einem Composer update

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

    Standard

    Zitat Zitat von skuhrt Beitrag anzeigen
    config.yaml
    Die doctrine Einstellungen kannst du entfernen.


    Zitat Zitat von skuhrt Beitrag anzeigen
    Die Version steht auf 5.3, weil die 5.7er Installation ja wegen des obigen Fehlers nicht durchläuft.
    Du musst die composer.json posten, unter der der Fehler auftritt.
    » sponsor me via GitHub or Revolut

Aktive Benutzer

Aktive Benutzer

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

Berechtigungen

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