Ergebnis 1 bis 9 von 9

Thema: Bei Update Installation von 4.9 auf 5.3 Fehler in tl_page.php

  1. #1
    Contao-Nutzer Avatar von Claudi
    Registriert seit
    14.07.2009.
    Beiträge
    65

    Standard Bei Update Installation von 4.9 auf 5.3 Fehler in tl_page.php

    Hallo,

    folgender Fehler bei Installation des Updates von 4.9 auf 5.3
    Frontend und Backend sind momentan nicht erreichbar.

    Kann wer weiterhelfen?
    Soll ich mal die /vendor/contao/core-bundle/contao/dca/tl_page.php posten?

    danke!


    Code:
    $ /usr/bin/php8.5 -q -dmax_execution_time=0 -dmemory_limit=-1 -ddisplay_errors=0 -ddisplay_startup_errors=0 -derror_reporting=0 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Vienna /www/rehazentrum/html/public/contao-manager.phar.php composer install --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader
    Deprecation Notice: ContaoCommunityAlliance\Composer\Plugin\Plugin::__construct(): Implicitly marking parameter $runonceManager as nullable is deprecated, the explicit nullable type must be used instead in /www/rehazentrum/html/vendor/contao-community-alliance/composer-plugin/src/Plugin.php:65
    More deprecation notices were hidden, run again with `-v` to show them.
    Installing dependencies from lock file
    Verifying lock file contents can be installed on current platform.
    Nothing to install, update or remove
    Package doctrine/annotations is abandoned, you should avoid using it. No replacement was suggested.
    Package doctrine/cache is abandoned, you should avoid using it. No replacement was suggested.
    Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.
    Generating optimized autoload files
    contao/manager-plugin: Dumping generated plugins file...
    contao/manager-plugin: ...done dumping generated plugins file
    118 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    > @php vendor/bin/contao-setup
    Added the bin/console file.
    Added the public/index.php file.
    Added the public/preview.php file.
     Trying to install assets as relative symbolic links.
     --- ------------------------------- ------------------ 
          Bundle                          Method / Error    
     --- ------------------------------- ------------------ 
      ?   ContaoCoreBundle                relative symlink  
      ?   RockSolidCustomElementsBundle   relative symlink  
      ?   ContaoCookiebar                 relative symlink  
      ?   ContaoFaqBundle                 relative symlink  
      ?   RockSolidColumnsBundle          relative symlink  
      ?   ContaoNewsBundle                relative symlink  
      ?   ContaoCalendarBundle            relative symlink  
      ?   ContaoNewsletterBundle          relative symlink  
      ?   SoftleisterBackupDbBundle       relative symlink  
      ?   ContaoCommentsBundle            relative symlink  
      ?   RockSolidSliderBundle           relative symlink  
     --- ------------------------------- ------------------ 
     [OK] All assets were successfully installed.                                   
     --- ------------------------------------------- -------------------------------------------------- 
          Symlink                                     Target / Error                                    
     --- ------------------------------------------- -------------------------------------------------- 
      ?   public/files/rzs/webfonts                   files/rzs/webfonts                                
      ?   public/files/rzs/downloads                  files/rzs/downloads                               
      ?   public/files/rzs/js                         files/rzs/js                                      
      ?   public/files/rzs/img                        files/rzs/img                                     
      ?   public/files/rzs/css                        files/rzs/css                                     
      ?   public/files/rzs/videos                     files/rzs/videos                                  
      ?   public/files/rzs/stellenangebote            files/rzs/stellenangebote                         
      ?   public/files/rzs/leaflet                    files/rzs/leaflet                                 
      ?   public/system/modules/mobile_menu/assets    system/modules/mobile_menu/assets                 
      ?   system/themes/flexible                      vendor/contao/core-bundle/contao/themes/flexible  
      ?   public/assets                               assets                                            
      ?   public/system/themes                        system/themes                                     
      ?   system/logs                                 var/logs                                          
      ?   public/vendor/scrivo/highlight_php/styles   vendor/scrivo/highlight.php/styles                
     --- ------------------------------------------- -------------------------------------------------- 
     // Clearing the cache for the prod environment with debug false                
     [OK] Cache for the "prod" environment (debug=false) was successfully cleared.  
     // Clearing the cache for the dev environment with debug true                  
     [OK] Cache for the "dev" environment (debug=true) was successfully cleared.    
     // Warming up the cache for the prod environment with debug false              
    15:51:38 CRITICAL  [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "Class "Backend" not found" ["exception" => Error { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "Class "Backend" not found"]
    In tl_page.php line 420:
                                                                    
      Attempted to load class "Backend" from the global namespace.  
      Did you forget a "use" statement?                             
                                                                    
    cache:warmup [--no-optional-warmers]
    15:51:38 CRITICAL  [console] An error occurred while using the console. Message: "An error occurred while executing the "/usr/bin/php8.5 -dmemory_limit=-1 /www/rehazentrum/html/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command: 15:51:38 CRITICAL  [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "Class "Backend" not found" ["exception" => Error { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "Class "Backend" not found"]
    In tl_page.php line 420:
                                                                    
      Attempted to load class "Backend" from the global namespace.  
      Did you forget a "use" statement?                             
                                                                    
    cache:warmup [--no-optional-warmers]
    " ["exception" => RuntimeException { …},"message" => """  An error occurred while executing the "/usr/bin/php8.5 -dmemory_limit=-1 /www/rehazentrum/html/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command: 15:51:38 CRITICAL  [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "Class "Backend" not found" ["exception" => Error { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "Class "Backend" not found"]\n  \n  In tl_page.php line 420:\n                                                                  \n    Attempted to load class "Backend" from the global namespace.  \n    Did you forget a "use" statement?                             \n                                                                  \n  \n  cache:warmup [--no-optional-warmers]\n  \n  """]
    In ContaoSetupCommand.php line 142:
                                                                                   
      An error occurred while executing the "/usr/bin/php8.5 -dmemory_limit=-1 /w  
      ww/rehazentrum/html/vendor/contao/manager-bundle/bin/contao-console cache:w  
      armup --env=prod --no-ansi" command: 15:51:38 CRITICAL  [console] Error thr  
      own while running command "cache:warmup --env=prod --no-ansi". Message: "Cl  
      ass "Backend" not found" ["exception" => Error { …},"command" => "cache:war  
      mup --env=prod --no-ansi","message" => "Class "Backend" not found"]          
                                                                                   
      In tl_page.php line 420:                                                     
                                                                                   
        Attempted to load class "Backend" from the global namespace.               
        Did you forget a "use" statement?                                          
                                                                                   
                                                                                   
      cache:warmup [--no-optional-warmers]                                         
                                                                                   
    contao:setup
    Script @php vendor/bin/contao-setup handling the post-install-cmd event returned with error code 1
    # Process terminated with exit code 1
    # Result: General error

  2. #2
    Community-Moderatorin & Contao-Urgestein Avatar von mlweb
    Registriert seit
    10.07.2011.
    Beiträge
    7.846
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Bist Du direkt von 4.9 auf die 5.3?
    Wenn ja dann noch einmal mit Zwischenschritt 4.13 durchführen https://docs.contao.org/5.x/manual/d...n/#allgemeines
    Ich habe Dir mit meinen Hinweisen geholfen und Du möchtest Dich bedanken?
    Unterstütze bitte das Contao-Projekt (Button Links)
    Weitere Spendenmöglichkeiten
    ------------------------------------------------------------------------------------------------------
    Contao-Dokumentation: Contao-Handbuch und Contao-Entwickler-Doku
    Contao-Online-Video-Kurse: Contao Academy
    Funktionalität erweitern: Contao-Erweiterungen

    Für Dinge die man mit html5 und css3 lösen kann, braucht man kein javascript.




  3. #3
    Contao-Nutzer Avatar von Claudi
    Registriert seit
    14.07.2009.
    Beiträge
    65

    Standard

    Sorry - nein, war ein Tip-/Denkfehler ... bin von der aktuellsten 4.13.58 auf die 5.3.* via Contao Manager.

  4. #4
    Contao-Fan Avatar von Birden
    Registriert seit
    15.01.2011.
    Beiträge
    887

    Standard

    Ich bin mir nicht sicher, aber PHP 8.5 ist für Contao 5.3 möglicherweise zu neu. Kannst du es temporär auf PHP 8.2 oder 8.3 setzen, bis du den Schritt zu Contao 5.7 machst? Auch Contao 5.7 erst einmal nur PHP 8.4.

  5. #5
    Community-Moderatorin & Contao-Urgestein Avatar von mlweb
    Registriert seit
    10.07.2011.
    Beiträge
    7.846
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Zitat Zitat von Birden Beitrag anzeigen
    Ich bin mir nicht sicher, aber PHP 8.5 ist für Contao 5.3 möglicherweise zu neu. Kannst du es temporär auf PHP 8.2 oder 8.3 setzen, bis du den Schritt zu Contao 5.7 machst? Auch Contao 5.7 erst einmal nur PHP 8.4.
    Mit PHP 8.4 läuft Contao 5.3 definitiv. Damit habe ich alle Kundeninstallationen laufen. PHP 8.5 habe ich da noch nicht im Einsatz, da die meisten Provider 8.5 kürzlich noch nicht am Start hatten, denke aber nicht dass das Probleme macht.

    Hast Du auch alle Erweiterungen auf den aktuellen Stand gebracht ggf. manuell die Version erhöhen?
    Poste mal Deine composer.json
    Ich habe Dir mit meinen Hinweisen geholfen und Du möchtest Dich bedanken?
    Unterstütze bitte das Contao-Projekt (Button Links)
    Weitere Spendenmöglichkeiten
    ------------------------------------------------------------------------------------------------------
    Contao-Dokumentation: Contao-Handbuch und Contao-Entwickler-Doku
    Contao-Online-Video-Kurse: Contao Academy
    Funktionalität erweitern: Contao-Erweiterungen

    Für Dinge die man mit html5 und css3 lösen kann, braucht man kein javascript.




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

    Standard

    Du hast eine Extension installiert oder sonstige Anpassung in deiner Installation, die nicht mit Contao 5 kompatibel ist.

    Mit PHP hat der Fehler nichts zu tun.
    » sponsor me via GitHub or Revolut

  7. #7
    Contao-Nutzer Avatar von Claudi
    Registriert seit
    14.07.2009.
    Beiträge
    65

    Standard

    So sieht meine composer.json aus:

    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": {
        "christianbarkowsky/rel-canonical": "^3.3",
        "codefog/contao-mobile_menu": "^2.7",
        "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.*",
        "contao/newsletter-bundle": "5.3.*",
        "do-while/contao-backupdb-bundle": "^2.1",
        "madeyourday/contao-rocksolid-columns": "^2.0",
        "madeyourday/contao-rocksolid-custom-elements": "^2.2",
        "madeyourday/contao-rocksolid-slider": "^2.0",
        "netzmacht/contao-font-awesome-inserttag": "^2.0",
        "oveleon/contao-cookiebar": "^2.3"
      },
      "conflict": {
        "contao-components/installer": "<1.3"
      },
      "extra": {
        "branch-alias": {
          "dev-4.6": "4.6.x-dev"
        },
        "contao-component-dir": "assets",
        "public-dir": "public"
      },
      "autoload": {
        "psr-4": {
          "App\\": "src/"
        }
      },
      "scripts": {
        "post-install-cmd": [
          "@php vendor/bin/contao-setup"
        ],
        "post-update-cmd": [
          "@php vendor/bin/contao-setup"
        ]
      }
    }
    Wenn ich den Contao Manager aufrufe, sagt er mir, dass es Probleme mit dem Datenbank Server gibt:

    Code:
    Exception in file var/cache/prod/contao/dca/tl_page.php on line 420Class "Backend" not found
    
    #0 vendor/contao/core-bundle/contao/library/Contao/DcaLoader.php(107): include()
    #1 vendor/contao/core-bundle/contao/library/Contao/DcaLoader.php(82): Contao\DcaLoader->loadDcaFiles()
    #2 vendor/contao/core-bundle/contao/library/Contao/Controller.php(1237): Contao\DcaLoader->load()
    #3 var/cache/prod/contao/dca/tl_article.php(4): Contao\Controller::loadDataContainer()
    #4 vendor/contao/core-bundle/contao/library/Contao/DcaLoader.php(107): include('...')
    #5 vendor/contao/core-bundle/contao/library/Contao/DcaLoader.php(82): Contao\DcaLoader->loadDcaFiles()
    #6 vendor/contao/core-bundle/contao/library/Contao/Controller.php(1237): Contao\DcaLoader->load()
    #7 vendor/contao/core-bundle/src/Migration/Version500/BooleanFieldsMigration.php(83): Contao\Controller::loadDataContainer()
    #8 vendor/contao/core-bundle/src/Migration/Version500/BooleanFieldsMigration.php(38): Contao\CoreBundle\Migration\Version500\BooleanFieldsMigration->getTargets()
    #9 vendor/contao/core-bundle/src/Migration/MigrationCollection.php(41): Contao\CoreBundle\Migration\Version500\BooleanFieldsMigration->shouldRun()
    #10 vendor/contao/core-bundle/src/Migration/MigrationCollection.php(52): Contao\CoreBundle\Migration\MigrationCollection->getPending()
    #11 vendor/contao/core-bundle/src/Command/MigrateCommand.php(229): Contao\CoreBundle\Migration\MigrationCollection->getPendingNames()
    #12 vendor/contao/core-bundle/src/Command/MigrateCommand.php(192): Contao\CoreBundle\Command\MigrateCommand->executeMigrations()
    #13 vendor/contao/core-bundle/src/Command/MigrateCommand.php(92): Contao\CoreBundle\Command\MigrateCommand->executeCommand()
    #14 vendor/symfony/console/Command/Command.php(326): Contao\CoreBundle\Command\MigrateCommand->execute()
    #15 vendor/symfony/console/Application.php(1121): Symfony\Component\Console\Command\Command->run()
    #16 vendor/symfony/framework-bundle/Console/Application.php(126): Symfony\Component\Console\Application->doRunCommand()
    #17 vendor/symfony/console/Application.php(324): Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand()
    #18 vendor/symfony/framework-bundle/Console/Application.php(80): Symfony\Component\Console\Application->doRun()
    #19 vendor/symfony/console/Application.php(175): Symfony\Bundle\FrameworkBundle\Console\Application->doRun()
    #20 vendor/contao/manager-bundle/bin/contao-console(45): Symfony\Component\Console\Application->run()
    #21 {main}

  8. #8
    Contao-Urgestein
    Registriert seit
    24.02.2021.
    Beiträge
    2.094
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Das plenta/contao-rel-canonical-bundle ist nicht mit Contao 5 kompatibel. Eine alte Version hatte Contao nicht als Abhängigkeit eingetragen, sodass es "augenscheinlich" in einer sehr alten und nicht kompatiblen Version aktualisiert / gedowngraded wird.

    Das solltest du entfernen. Das Feature shippt Contao seit 4.13 von Haus aus.

  9. #9
    Contao-Nutzer Avatar von Claudi
    Registriert seit
    14.07.2009.
    Beiträge
    65

    Standard

    Danke, das plenta/contao-rel-canonical-bundle war der "Übeltäter". Deinstalliert und das Update ist durchgegangen.

Aktive Benutzer

Aktive Benutzer

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

Berechtigungen

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