Ergebnis 1 bis 6 von 6

Thema: Update auf Contao 4.13.29, Probleme mit Erweiterung codefog/contao-news_categories

  1. #1
    Contao-Nutzer
    Registriert seit
    02.09.2022.
    Beiträge
    14

    Standard Update auf Contao 4.13.29, Probleme mit Erweiterung codefog/contao-news_categories

    Liebes Contao-Forum

    Ich habe bei einer Contao 4.13-Installation, welche wir regelmässig updaten plötzlich das Problem, dass ich die Erweiterung codefog/contao-news_categories nicht mehr aktualisieren (und auch nicht löschen) kann. Festgestellt haben wir dies im Rahmen des neusten Updates auf Contao 4.13.29, haben dann aber sowohl den Contao-Core als auch alle übrigen Erweiterungen schlussendlich aktualisieren können. Übrig blieb codefog/contao-news_categories. Im Manager erscheint folgende Fehlermeldung:

    Code:
    $ /opt/plesk/php/8.1/bin/php -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/Zurich /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/contao-manager.phar.php composer install --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader
    
    Installing dependencies from lock file
    
    Verifying lock file contents can be installed on current platform.
    
    Nothing to install, update or remove
    
    Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.
    
    Generating optimized autoload files
    
    Class Contao\ManagerPlugin\PluginLoader located in ./vendor/contao/manager-plugin/src/Resources/PluginLoader.php does not comply with psr-4 autoloading standard. Skipping.
    
    110 packages you are using are looking for funding.
    
    Use the `composer fund` command to find out more!
    
    contao/manager-plugin: Dumping generated plugins file...
    
    contao/manager-plugin: ...done dumping generated plugins file
    
    
    
    Deprecated: Return type of Netzmacht\Contao\Leaflet\Frontend\Assets\LibrariesConfiguration::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/netzmacht/contao-leaflet-maps/src/Frontend/Assets/LibrariesConfiguration.php on line 74
    
    > @php vendor/bin/contao-setup
    
    Added the /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/app.php file.
    
    Added the /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/preview.php file.
    
    Added the /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/index.php file.
    
    
    
    Trying to install assets as relative symbolic links.
    
    
    
    --- ----------------------------------- ------------------
    
    Bundle Method / Error
    
    --- ----------------------------------- ------------------
    
    ? ContaoCoreBundle relative symlink
    
    ? ContaoFilesmanagerFileusageBundle relative symlink
    
    ? RockSolidCustomElementsBundle relative symlink
    
    ? LeafletGeocodeWidgetBundle relative symlink
    
    ? MultiColumnWizardBundle relative symlink
    
    ? ContaoFaqBundle relative symlink
    
    ? CodefogHasteBundle relative symlink
    
    ? RockSolidColumnsBundle relative symlink
    
    ? ContaoCommentsBundle relative symlink
    
    ? TrilobitAjaxPaginationBundle relative symlink
    
    ? ContaoNewsBundle relative symlink
    
    ? PdirContentMigrationBundle relative symlink
    
    ? RockSolidFrontendHelperBundle relative symlink
    
    ? RockSolidMegaMenuBundle relative symlink
    
    ? RockSolidThemeAssistantBundle relative symlink
    
    ? ContaoCalendarBundle relative symlink
    
    ? ContaoNewsletterBundle relative symlink
    
    ? RockSolidIconPickerBundle relative symlink
    
    ? SoftleisterBackupDbBundle relative symlink
    
    ? CodefogNewsCategoriesBundle relative symlink
    
    ? RockSolidSliderBundle relative symlink
    
    ? NetzmachtContaoLeafletBundle relative symlink
    
    --- ----------------------------------- ------------------
    
    [OK] All assets were successfully installed.
    
    --- -------------------------------------------------- ----------------------------------------------------------------
    
    Symlink Target / Error
    
    --- -------------------------------------------------- ----------------------------------------------------------------
    
    ! web/files/dokumente/intranet Skipped because files/dokumente will be symlinked.
    
    ! web/files/dokumente/intranet/News Skipped because files/dokumente will be symlinked.
    
    ! web/files/dokumente/intranet/Bettenbelegung Skipped because files/dokumente will be symlinked.
    
    ? web/files/bilder files/bilder
    
    ? web/files/media files/media
    
    ? web/files/oneo-intranet files/oneo-intranet
    
    ? web/files/dokumente files/dokumente
    
    ? web/files/oneo files/oneo
    
    ? web/files/design files/design
    
    ? web/system/modules/multicolumnwizard/html system/modules/multicolumnwizard/html
    
    ? web/system/modules/fullcalendar/assets system/modules/fullcalendar/assets
    
    ? web/system/modules/m17StickyBEFooter/assets system/modules/m17StickyBEFooter/assets
    
    ? web/system/modules/_conditionalformfields/assets system/modules/_conditionalformfields/assets
    
    ? web/system/modules/_haste/assets system/modules/_haste/assets
    
    ? web/system/modules/hofff_calendarfield/assets system/modules/hofff_calendarfield/assets
    
    ? web/system/modules/conditionalformfields/assets system/modules/conditionalformfields/assets
    
    ? system/themes/flexible vendor/contao/core-bundle/src/Resources/contao/themes/flexible
    
    ? web/assets assets
    
    ? web/system/themes system/themes
    
    ? system/logs var/logs
    
    ? web/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
    
    In tl_theme.php line 216:
    
    Compile Error: Cannot declare class tl_theme, because the name is already i
    
    n use
    
    cache:warmup [--no-optional-warmers]
    
    10:04:12 CRITICAL [console] An error occurred while using the console. Message: "An error occurred while executing the "/opt/plesk/php/8.1/bin/php -dmemory_limit=-1 /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command:
    
    In tl_theme.php line 216:
    
    Compile Error: Cannot declare class tl_theme, because the name is already i
    
    n use
    
    cache:warmup [--no-optional-warmers]
    
    " ["exception" => RuntimeException { …},"message" => """ An error occurred while executing the "/opt/plesk/php/8.1/bin/php -dmemory_limit=-1 /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command: \n In tl_theme.php line 216:\n \n Compile Error: Cannot declare class tl_theme, because the name is already i \n n use \n \n \n cache:warmup [--no-optional-warmers]\n \n """]
    
    In ContaoSetupCommand.php line 146:
    
    An error occurred while executing the "/opt/plesk/php/8.1/bin/php -dmemory_
    
    limit=-1 /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-in
    
    tranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/contao/manag
    
    er-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command:
    
    In tl_theme.php line 216:
    
    Compile Error: Cannot declare class tl_theme, because the name is already
    
    i
    
    n use
    
    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
    Im Manager scheint die Erweiterung dann zwar aktualisiert zu sein, aber weder das Frontend, das Backend noch das Install-Tool funktionieren und im Server-Log erscheint der Eintrag:
    Code:
    [2023-08-08T10:25:19.907641+02:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Cannot declare class tl_theme, because the name is already in use" at /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/contao/core-bundle/src/Resources/contao/dca/tl_theme.php line 0 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Compile Error: Cannot declare class tl_theme, because the name is already in use at /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/contao/core-bundle/src/Resources/contao/dca/tl_theme.php:0)"} []
    Die composer.json lautet wie folgt:
    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": {
            "codefog/contao-news_categories": "3.*",
            "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/news-bundle": "4.13.*",
            "contao/newsletter-bundle": "4.13.*",
            "do-while/contao-backupdb-bundle": "^1.3",
            "hofff/contao-calendarfield": "^3.0",
            "jrgregory/m17-sticky-backend-footer": "^2.0",
            "madeyourday/contao-rocksolid-antispam": "^2.0",
            "madeyourday/contao-rocksolid-columns": "^2.0",
            "madeyourday/contao-rocksolid-custom-elements": "2.3.6",
            "madeyourday/contao-rocksolid-frontend-helper": "2.1.1",
            "madeyourday/contao-rocksolid-icon-picker": "^2.0",
            "madeyourday/contao-rocksolid-mega-menu": "2.1.3",
            "madeyourday/contao-rocksolid-slider": "2.1.3",
            "madeyourday/contao-rocksolid-theme-assistant": "2.0.5",
            "marcel-mathias-nolte/contao-filesmanager-fileusage": "^1.0",
            "martin-kozianka/contao-fullcalendar": "^2.0",
            "netzmacht/contao-leaflet-maps": "^3.1",
            "numero2/contao-proper-filenames": "^2.1",
            "pdir/content-migration-bundle": "^1.0",
            "terminal42/contao-conditionalformfields": "^2.3",
            "trilobit-gmbh/contao-ajaxpagination-bundle": "^1.3"
        },
        "conflict": {
            "contao-components/installer": "<1.3",
            "contao/core-bundle": "<4.4.8"
        },
        "extra": {
            "branch-alias": {
                "dev-4.4": "4.4.x-dev"
            },
            "contao-component-dir": "assets",
            "public-dir": "web"
        },
        "scripts": {
            "post-install-cmd": [
                "@php vendor/bin/contao-setup"
            ],
            "post-update-cmd": [
                "@php vendor/bin/contao-setup"
            ]
        }
    }
    Die Installation läuft mit Contao 4.13.29 und PHP 8.1.

    Vielen Dank für eure Hilfe & liebe Grüsse

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

    Standard

    Mit dieser composer.json kann ich außer dieser Notice:
    Code:
    Deprecated: Return type of Netzmacht\Contao\Leaflet\Frontend\Assets\LibrariesConfiguration::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed
    kein Problem feststellen. Hast du denn überhaupt schon eine vollständige Paketaktualisierung durchgeführt?

    Davon abgesehen gibt es für folgende Pakete Updates auf höhere Major Versionen:
    Code:
    hofff/contao-calendarfield                   3.0.2 » 4.0.1
    martin-kozianka/contao-fullcalendar          2.0.2 » 5.1.4
    terminal42/contao-conditionalformfields      2.3.4 » 3.0.12
    » sponsor me via GitHub or PayPal or Revolut

  3. #3
    Contao-Nutzer
    Registriert seit
    02.09.2022.
    Beiträge
    14

    Standard

    Hi Spooky

    Ja, wenn ich eine komplette Paketaktualisierung durchführe, wirft der Contao Manager folgenden Fehler aus:

    Code:
    $ /opt/plesk/php/8.1/bin/php -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/Zurich /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/contao-manager.phar.php composer install --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader
    Installing dependencies from lock file
    Verifying lock file contents can be installed on current platform.
    Nothing to install, update or remove
    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
    Class Contao\ManagerPlugin\PluginLoader located in ./vendor/contao/manager-plugin/src/Resources/PluginLoader.php does not comply with psr-4 autoloading standard. Skipping.
    110 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    > @php vendor/bin/contao-setup
    Deprecated: Return type of Netzmacht\Contao\Leaflet\Frontend\Assets\LibrariesConfiguration::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/netzmacht/contao-leaflet-maps/src/Frontend/Assets/LibrariesConfiguration.php on line 74
    Added the /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/app.php file.
    Added the /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/preview.php file.
    Added the /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/index.php file.
     Trying to install assets as relative symbolic links.
     --- ----------------------------------- ------------------ 
          Bundle                              Method / Error    
     --- ----------------------------------- ------------------ 
      ?   ContaoCoreBundle                    relative symlink  
      ?   ContaoFilesmanagerFileusageBundle   relative symlink  
      ?   RockSolidCustomElementsBundle       relative symlink  
      ?   LeafletGeocodeWidgetBundle          relative symlink  
      ?   MultiColumnWizardBundle             relative symlink  
      ?   ContaoFaqBundle                     relative symlink  
      ?   CodefogHasteBundle                  relative symlink  
      ?   RockSolidColumnsBundle              relative symlink  
      ?   ContaoCommentsBundle                relative symlink  
      ?   TrilobitAjaxPaginationBundle        relative symlink  
      ?   ContaoNewsBundle                    relative symlink  
      ?   PdirContentMigrationBundle          relative symlink  
      ?   RockSolidFrontendHelperBundle       relative symlink  
      ?   RockSolidMegaMenuBundle             relative symlink  
      ?   RockSolidThemeAssistantBundle       relative symlink  
      ?   ContaoCalendarBundle                relative symlink  
      ?   ContaoNewsletterBundle              relative symlink  
      ?   RockSolidIconPickerBundle           relative symlink  
      ?   SoftleisterBackupDbBundle           relative symlink  
      ?   CodefogNewsCategoriesBundle         relative symlink  
      ?   RockSolidSliderBundle               relative symlink  
      ?   NetzmachtContaoLeafletBundle        relative symlink  
     --- ----------------------------------- ------------------ 
     [OK] All assets were successfully installed.                                   
     --- -------------------------------------------------- ---------------------------------------------------------------- 
          Symlink                                            Target / Error                                                  
     --- -------------------------------------------------- ---------------------------------------------------------------- 
      !   web/files/dokumente/intranet                       Skipped because files/dokumente will be symlinked.              
      !   web/files/dokumente/intranet/News                  Skipped because files/dokumente will be symlinked.              
      !   web/files/dokumente/intranet/Bettenbelegung        Skipped because files/dokumente will be symlinked.              
      ?   web/files/bilder                                   files/bilder                                                    
      ?   web/files/media                                    files/media                                                     
      ?   web/files/oneo-intranet                            files/oneo-intranet                                             
      ?   web/files/dokumente                                files/dokumente                                                 
      ?   web/files/oneo                                     files/oneo                                                      
      ?   web/files/design                                   files/design                                                    
      ?   web/system/modules/multicolumnwizard/html          system/modules/multicolumnwizard/html                           
      ?   web/system/modules/fullcalendar/assets             system/modules/fullcalendar/assets                              
      ?   web/system/modules/m17StickyBEFooter/assets        system/modules/m17StickyBEFooter/assets                         
      ?   web/system/modules/_conditionalformfields/assets   system/modules/_conditionalformfields/assets                    
      ?   web/system/modules/_haste/assets                   system/modules/_haste/assets                                    
      ?   web/system/modules/hofff_calendarfield/assets      system/modules/hofff_calendarfield/assets                       
      ?   web/system/modules/conditionalformfields/assets    system/modules/conditionalformfields/assets                     
      ?   system/themes/flexible                             vendor/contao/core-bundle/src/Resources/contao/themes/flexible  
      ?   web/assets                                         assets                                                          
      ?   web/system/themes                                  system/themes                                                   
      ?   system/logs                                        var/logs                                                        
      ?   web/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                                                                       
    In tl_theme.php line 216:
                                                                                   
      Compile Error: Cannot declare class tl_theme, because the name is already i  
      n use                                                                        
                                                                                   
    cache:warmup [--no-optional-warmers]
    17:17:08 CRITICAL  [console] An error occurred while using the console. Message: "An error occurred while executing the "/opt/plesk/php/8.1/bin/php -dmemory_limit=-1 /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command: 
    In tl_theme.php line 216:
                                                                                   
      Compile Error: Cannot declare class tl_theme, because the name is already i  
      n use                                                                        
                                                                                   
    cache:warmup [--no-optional-warmers]
    " ["exception" => RuntimeException { …},"message" => """  An error occurred while executing the "/opt/plesk/php/8.1/bin/php -dmemory_limit=-1 /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command: \n  In tl_theme.php line 216:\n                                                                                 \n    Compile Error: Cannot declare class tl_theme, because the name is already i  \n    n use                                                                        \n                                                                                 \n  \n  cache:warmup [--no-optional-warmers]\n  \n  """]
    In ContaoSetupCommand.php line 146:
                                                                                   
      An error occurred while executing the "/opt/plesk/php/8.1/bin/php -dmemory_  
      limit=-1 /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-in  
      tranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/contao/manag  
      er-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command:     
      In tl_theme.php line 216:                                                    
                                                                                   
                                                                                   
        Compile Error: Cannot declare class tl_theme, because the name is already  
       i                                                                           
        n use                                                                      
                                                                                   
                                                                                   
                                                                                   
                                                                                   
      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
    Das Gleiche wie beim letzten Mal - auch im Log wieder. Das letzte Update auf damals Contao 4.13.23 haben wir im Mai ohne Probleme durchgekriegt und seit damals nichts an der Installation verändert. Wobei ich da gerade feststelle, dass damals die Erweiterung codefog/contao-news_categories womöglich nicht aktualisiert wurde? Sie ist ja auf dem Stand 3.4.23 und die Version 3.5.5 wurde am 25. April 2023 veröffentlicht. Da hätte das Update im Manager ja automatisch erfolgen sollen, wir aktualisieren immer alle Pakete.

  4. #4
    Contao-Nutzer
    Registriert seit
    02.09.2022.
    Beiträge
    14

    Standard

    Hilft es eventuell, wenn ich die composer.lock noch nachreiche?

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

    Standard

    Und das war sicher ein Composer Update über die Systemwartung?
    » sponsor me via GitHub or PayPal or Revolut

  6. #6
    Contao-Nutzer
    Registriert seit
    02.09.2022.
    Beiträge
    14

    Standard

    Ja, das wars ...

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
  •