Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hinweis auf Fehler nach Update auf Contao 4.9.0 #49

Closed
planepix opened this issue Feb 18, 2020 · 15 comments
Closed

Hinweis auf Fehler nach Update auf Contao 4.9.0 #49

planepix opened this issue Feb 18, 2020 · 15 comments

Comments

@planepix
Copy link

Hallo René,
auch wenn die 4.9.0 noch nicht mal eine Stunde verfügbar ist, doch schon mal die Fehlermeldung, die beim Update aufschlägt.

Beste Grüße
Thomas

> Resolving dependencies using Composer Cloud v2.2.4

# Job ID h8VxjZWcSyE3AcVvSxUr3MGoFTEZHeUuBVFX4aKNMYl2qCWtYORyh9skRa7OHSHKz6HtzPgDRK55HJXECHx4mRDsKLxMI9W completed in 204 seconds
# Memory usage: 446.41MB (peak: 2085.14MB), time: 203.84s.

$ /usr/bin/php73 -q -d memory_limit=-1 /www/htdocs/domain.com/web/contao-manager.phar.php composer install --prefer-dist --no-dev --no-progress --no-suggest --no-ansi --no-interaction --optimize-autoloader

ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Compiling component files
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
Added the web/index.php file.
Added the web/preview.php file.
Added the web/app.php file.

 // Clearing the cache for the prod environment with debug                      
 // false                                                                       

 [OK] Cache for the "prod" environment (debug=false) was successfully cleared.  


 // Warming up the cache for the prod environment with debug                    
 // false                                                                       

17:04:31 ERROR     [console] Error thrown while running command "cache:warmup --env=prod". Message: "Class 'tl_settings' not found" ["exception" => Error { …},"command" => "cache:warmup --env=prod","message" => "Class 'tl_settings' not found"]

Fatal error: Cannot declare class tl_settings_om_backend, because the name is already in use in /www/htdocs/domain.com/vendor/omosde/contao-om-backend/src/Resources/contao/dca/tl_settings.php on line 45
PHP Fatal error:  Cannot declare class tl_settings_om_backend, because the name is already in use in /www/htdocs/domain.com/vendor/omosde/contao-om-backend/src/Resources/contao/dca/tl_settings.php on line 45

In tl_settings.php line 45:
                                                                               
  Compile Error: Cannot declare class tl_settings_om_backend, because the nam  
  e is already in use                                                          
                                                                               

cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] <command>

Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 0 installs, 0 updates, 1 removal
  - Removing derhaeuptling/contao-seo-serp-preview (3.0.6)
Package crossjoin/browscap is abandoned, you should avoid using it. No replacement was suggested.
Package robloach/component-installer is abandoned, you should avoid using it. Use oomphinc/composer-installers-extender instead.
Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
Package zendframework/zend-eventmanager is abandoned, you should avoid using it. Use laminas/laminas-eventmanager instead.
Generating optimized autoload files
> ComponentInstaller\Installer::postAutoloadDump
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception

In ScriptHandler.php line 88:
                                                                               
  An error occurred while executing the "cache:warmup" command: 17:04:31 ERRO  
  R     [console] Error thrown while running command "cache:warmup --env=prod  
  ". Message: "Class 'tl_settings' not found" ["exception" => Error { …},"com  
  mand" => "cache:warmup --env=prod","message" => "Class 'tl_settings' not fo  
  und"]                                                                        
  PHP Fatal error:  Cannot declare class tl_settings_om_backend, because the   
  name is already in use in /www/htdocs/domain.com/vendor/  
  omosde/contao-om-backend/src/Resources/contao/dca/tl_settings.php on line 4  
  5                                                                            
                                                                               
  In tl_settings.php line 45:                                                  
                                                                               
                                                                               
    Compile Error: Cannot declare class tl_settings_om_backend, because the n  
  am                                                                           
    e is already in use                                                        
                                                                               
                                                                               
                                                                               
                                                                               
  cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--  
  verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--en  
  v ENV] [--] <command>                                                        
                                                                               

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>...]


# Process terminated with exit code 1
# Result: General error


---

### Der Hintergrundprozess wurde unerwartet beendet ###
@stefansl
Copy link

Hi Thomas, hi René,
ich habe gerade mal lokal über die Konsole geupdated, bei mir gibt es keinen Fehler. Kann es sein, dass du eine ältere Version von om_backend required hast?
Ggf. hilft dieser PR: hschottm/tags@ed1c1a9

@OMOSde
Copy link
Owner

OMOSde commented Feb 18, 2020

Hi Thomas, Hi Stefan,

ich konnte bei mehreren Update-/Installationstests den Fehler ebenfalls nicht reproduzieren.

Auch danke für den PR Hinweis. Ich erweitere die Klasse tl_settings jedoch nicht.

Mein erster Gedanke als ich Cannot declare class tl_settings_om_backend, because the name is already in use gelesen habe, war ein Cache-Problem.

@planepix
Copy link
Author

Danke euch fürs Feedback.
Ich komme da leider nicht weiter.
Möglicherweise klemmt es noch anderswo…

Ich habe nach dem Ausführen des Updates - auf der Konsole - nun eine Datei „Class 'tl_settings' not fo ” im Root, die ich, egal wie, nicht gelöscht bekomme.

Ich habe das ausgeführt, bevor der Manager 1.2.4 veröffentlicht wurde.

Auch ein Versuch, das Datenbankupdate via Konsole zu starten, brachte keine Änderung.

Aktuell werde ich die Installation noch einmal klonen und das Update dann erneut ausführen.
Werde dann berichten.

@OMOSde
Copy link
Owner

OMOSde commented Feb 18, 2020

Vielleicht kannst du die composer.json bereitstellen, dann würde ich versuchen das Problem damit zu reproduzieren. Eventuell bringt uns das weiter.

@planepix
Copy link
Author

Mach ich gerne. Danke.
Aktuell habe ich alles gelöscht und mache ein neues Setup.
Wenn es da auch den Fehler gibt nach / während des Updates, poste ich die composer.json hier.

@planepix
Copy link
Author

planepix commented Feb 18, 2020

Nachdem ich das Update auf der Konsole ausgeführt habe, komme ich ins Backend. Frontend lässt sich aufrufen. Installtool nicht.
Auch im Backend auf Einstellungen wirft den Fehler „Compile Error: Cannot declare class tl_settings_om_backend, because the name is already in use”.

Hoster: allinkl
PHP: 7.4.2

Die composer.json:

    "name": "contao/managed-edition",
    "type": "project",
    "description": "Contao Open Source CMS",
    "license": "LGPL-3.0+",
    "authors": [
        {
            "name": "Leo Feyer",
            "homepage": "https://github.com/leofeyer"
        }
    ],
    "require": {
        "php": ">=5.5.0",
        "bastibuck/contao-backendhelper": "^1.3",
        "bugbuster/contao-botdetection-bundle": "^0.2.1",
        "bugbuster/contao-cron-bundle": "^1.3",
        "bugbuster/contao-dlstats-bundle": "^1.0",
        "bugbuster/contao-visitors-bundle": "dev-master",
        "christianbarkowsky/contao-tiny-compress-images": "^1.0",
        "christianbarkowsky/rel-canonical": "^3.3",
        "cliffparnitzky/direct-content-elements": "^1.2",
        "cliffparnitzky/tiny-mce-bundle-all": "^2.10",
        "codefog/contao-mobile_menu": "^2.6",
        "contao/calendar-bundle": "^4.8",
        "contao/comments-bundle": "^4.8",
        "contao/conflicts": "*@dev",
        "contao/faq-bundle": "^4.8",
        "contao/listing-bundle": "^4.8",
        "contao/manager-bundle": "4.9.*",
        "contao/news-bundle": "^4.8",
        "contao/newsletter-bundle": "^4.8",
        "do-while/contao-backupdb-bundle": "^1.2",
        "do-while/contao-pdf-nc-attachment-bundle": "^2.4",
        "eikona-media/contao-system-information": "^1.0",
        "erdmannfreunde/euf_overlay": "^1.2",
        "fritzmg/contao-sharebuttons": "^2.1",
        "fritzmg/contao-short-urls": "^1.3",
        "fritzmg/contao-swiper": "^3.3",
        "georgpreissl/imagecrop": "^1.3",
        "georgpreissl/imagefilter": "^1.1",
        "intelligentspark/contao4-randomarticle": "^2.2",
        "jrgregory/m17-sticky-backend-footer": "^2.0",
        "leycommediasolutions/contao-frontend-builder": "^1.0",
        "leycommediasolutions/contao_elementsets": "^1.1",
        "madeyourday/contao-rocksolid-columns": "^2.0",
        "madeyourday/contao-rocksolid-slider": "^2.0",
        "nerdlichter/contao-image-optimizer-bundle": "^1.0",
        "netzmacht/contao-font-awesome": "^4.7",
        "netzmacht/contao-language-editor": "^1.0",
        "numero2/contao-marketing-suite": "^1.0",
        "numero2/contao-opengraph3": "^4.1",
        "omosde/contao-om-backend": "^1.5",
        "oneup/contao-tags": "^4.0",
        "oveleon/contao-component-style-manager": "^2.0",
        "pdir/backend-helper-bundle": "^1.0",
        "presprog/contao-undo": "^1.0",
        "terminal42/contao-conditionalselectmenu": "^3.0",
        "terminal42/contao-easy_themes": "^2.2",
        "terminal42/contao-leads": "^1.4",
        "terminal42/contao-node": "^1.0",
        "terminal42/notification_center": "^1.4",
        "trilobit-gmbh/contao-filecontent-bundle": "^1.0",
        "trilobit-gmbh/contao-history-bundle": "^1.0",
        "trilobit-gmbh/contao-tiles-bundle": "^1.0",
        "wangaz/contao-jquery-ui-tabs": "^1.1"
    },
    "conflict": {
        "lexik/maintenance-bundle": "2.1.4",
        "symfony/symfony": "3.4.8|4.0.8",
        "doctrine/dbal": "2.9.1|2.9.2"
    },
    "config": {
        "extra.contao-component-dir": "assets"
    },
    "scripts": {
        "post-install-cmd": [
            "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
        ],
        "post-update-cmd": [
            "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
        ]
    }
}

Im Log (var/logs) ist folgendes zu finden:

[2020-02-18 22:10:32] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://49.weitzeldesign.com/contao?do=settings&ref=0shV-cz9","method":"GET"} []
[2020-02-18 22:10:32] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Cannot declare class tl_settings_om_backend, because the name is already in use" at /www/htdocs/domain/vendor/omosde/contao-om-backend/src/Resources/contao/dca/tl_settings.php line 45 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Compile Error: Cannot declare class tl_settings_om_backend, because the name is already in use at /www/htdocs/domain/vendor/omosde/contao-om-backend/src/Resources/contao/dca/tl_settings.php:45)"} []
[2020-02-18 22:10:55] console.ERROR: Error thrown while running command "cache:warmup --env=prod". Message: "Class 'tl_settings' not found" {"exception":"[object] (Error(code: 0): Class 'tl_settings' not found at /www/htdocs/domain/var/cache/prod/contao/dca/tl_settings.php:593)","command":"cache:warmup --env=prod","message":"Class 'tl_settings' not found"} []
[2020-02-18 22:14:17] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://49.weitzeldesign.com/contao?do=settings&ref=0shV-cz9","method":"GET"} []
[2020-02-18 22:14:17] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Cannot declare class tl_settings_om_backend, because the name is already in use" at /www/htdocs/domain/vendor/omosde/contao-om-backend/src/Resources/contao/dca/tl_settings.php line 45 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Compile Error: Cannot declare class tl_settings_om_backend, because the name is already in use at /www/htdocs/domain/vendor/omosde/contao-om-backend/src/Resources/contao/dca/tl_settings.php:45)"} []
[2020-02-18 22:15:46] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_route":"contao_install","_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction"},"request_uri":"https://49.weitzeldesign.com/contao/install","method":"GET"} []
[2020-02-18 22:15:46] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Cannot declare class tl_settings_om_backend, because the name is already in use" at /www/htdocs/domain/vendor/omosde/contao-om-backend/src/Resources/contao/dca/tl_settings.php line 45 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Compile Error: Cannot declare class tl_settings_om_backend, because the name is already in use at /www/htdocs/domain/vendor/omosde/contao-om-backend/src/Resources/contao/dca/tl_settings.php:45)"} []

@planepix
Copy link
Author

planepix commented Feb 18, 2020

Wenn ich das Bundle versuche zu deinstallieren (via Manager) läuft der Fehler auf:

# Result: OK


> Resolving dependencies using Composer Cloud v2.2.4

# Job ID Np2CnHaQpMevOYXfwnemnegTBVdUbXxpdKYrnNKLupNnMJbptsLgqHjpkQcv2dMONfxPSMjtf2gO863 completed in 82 seconds
# Memory usage: 445.62MB (peak: 2042.57MB), time: 80.75s.

$ /usr/bin/php74 -q -d memory_limit=-1 /www/htdocs/domain/web/contao-manager.phar.php composer install --prefer-dist --no-dev --no-progress --no-suggest --no-ansi --no-interaction --optimize-autoloader

ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Compiling component files
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
Added the web/index.php file.
Added the web/preview.php file.
Added the web/app.php file.

 // Clearing the cache for the prod environment with debug                      
 // false                                                                       

 [OK] Cache for the "prod" environment (debug=false) was successfully cleared.  


 // Warming up the cache for the prod environment with debug                    
 // false                                                                       

22:22:51 ERROR     [console] Error thrown while running command "cache:warmup --env=prod". Message: "Class 'tl_settings' not found" ["exception" => Error { …},"command" => "cache:warmup --env=prod","message" => "Class 'tl_settings' not found"]

In tl_settings.php line 530:
                                                                    
  Attempted to load class "tl_settings" from the global namespace.  
  Did you forget a "use" statement?                                 
                                                                    

cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] <command>

Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 0 installs, 0 updates, 5 removals
  - Removing wa72/htmlpagedom (v1.3.1)
  - Removing php-http/cache-plugin (1.7.0)
  - Removing omosde/contao-om-backend (1.6.6)
  - Removing knplabs/github-api (2.12.1)
  - Removing erusev/parsedown (1.7.4)
Package crossjoin/browscap is abandoned, you should avoid using it. No replacement was suggested.
Package robloach/component-installer is abandoned, you should avoid using it. Use oomphinc/composer-installers-extender instead.
Generating optimized autoload files
> ComponentInstaller\Installer::postAutoloadDump
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception

In ScriptHandler.php line 88:
                                                                               
  An error occurred while executing the "cache:warmup" command: 22:22:51 ERRO  
  R     [console] Error thrown while running command "cache:warmup --env=prod  
  ". Message: "Class 'tl_settings' not found" ["exception" => Error { …},"com  
  mand" => "cache:warmup --env=prod","message" => "Class 'tl_settings' not fo  
  und"]                                                                        
                                                                               
  In tl_settings.php line 530:                                                 
                                                                               
    Attempted to load class "tl_settings" from the global namespace.           
    Did you forget a "use" statement?                                          
                                                                               
                                                                               
  cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--  
  verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--en  
  v ENV] [--] <command>                                                        
                                                                               

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>...]


# Process terminated with exit code 1
# Result: General error


---

### Der Hintergrundprozess wurde unerwartet beendet ###```

@planepix
Copy link
Author

Da es wohl mit Bundles, die tl_settings verwenden, Probleme gibt, der Hinweis dazu von Spooky im Forum:
https://community.contao.org/de/showthread.php?77182-Update-4-8-x-auf-4-9-x-%C2%B7-best-practice&p=519622&viewfull=1#post519622

@fritzmg
Copy link
Contributor

fritzmg commented Feb 19, 2020

Fehlermeldungen und composer.json bitte in drei backticks posten ;)

@planepix
Copy link
Author

Aktuelle Erkenntnis nach mehreren Setups:

Contao 4.8.8

  • Bundle ce_access deinstalliert
  • Bundle SEO SERP deinstalliert

Update Composer: Keine Fehler

  • Bunde contao-om-backend deinstalliert

Update Composer: Keine Fehler

Composer.json angepasst:
contao/manager-bundle": "4.8.* zu contao/manager-bundle": "4.9.*

Danach wieder Update Composer ausgeführt und in den Fehler gelaufen:

/usr/bin/php74 -d memory_limit=-1 composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 11 installs, 43 updates, 3 removals
  - Removing oyejorge/less.php (v1.7.0.14)
  - Removing league/uri-manipulations (1.5.0)
  - Removing league/uri (5.3.0)
  - Updating symfony/lock (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/mime (v4.4.4 => v5.0.4): Loading from cache
  - Updating symfony/http-foundation (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/event-dispatcher (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/var-dumper (v4.3.11 => v4.4.4): Loading from cache
  - Installing symfony/error-handler (v4.4.4): Loading from cache
  - Updating symfony/http-kernel (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/var-exporter (v4.4.4 => v5.0.4): Loading from cache
  - Updating symfony/service-contracts (v1.1.8 => v2.0.1): Loading from cache
  - Updating symfony/cache-contracts (v1.1.7 => v2.0.1): Loading from cache
  - Updating symfony/cache (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/yaml (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/translation-contracts (v1.1.7 => v2.0.1): Loading from cache
  - Updating symfony/filesystem (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/config (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/twig-bundle (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/routing (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/finder (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/dependency-injection (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/framework-bundle (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/web-profiler-bundle (v4.3.11 => v4.4.4): Loading from cache
  - Downgrading symfony/stopwatch (v5.0.4 => v4.4.4): Loading from cache
  - Updating symfony/property-access (v4.4.4 => v5.0.4): Loading from cache
  - Updating symfony/security (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/security-bundle (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/proxy-manager-bridge (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/process (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/monolog-bridge (v4.3.11 => v4.4.4): Loading from cache
  - Installing symfony/http-client-contracts (v2.0.1): Loading from cache
  - Installing symfony/http-client (v4.4.4): Loading from cache
  - Updating symfony/expression-language (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/doctrine-bridge (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/dotenv (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/debug-bundle (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/console (v4.3.11 => v4.4.4): Loading from cache
  - Updating symfony/translation (v4.3.11 => v4.4.4): Loading from cache
  - Installing wikimedia/less.php (1.8.2): Loading from cache
  - Installing webignition/disallowed-character-terminated-string (2.0): Loading from cache
  - Installing webignition/robots-txt-file (3.0): Loading from cache
  - Installing symfony/dom-crawler (v4.4.4): Downloading (100%)
  - Installing symfony/css-selector (v4.4.4): Loading from cache
  - Installing terminal42/escargot (0.5.1): Loading from cache
  - Updating symfony/asset (v4.3.11 => v4.4.4): Loading from cache
  - Installing ramsey/uuid (3.9.2): Loading from cache
  - Installing dragonmantank/cron-expression (v2.3.0): Loading from cache
  - Updating contao/core-bundle (4.8.8 => 4.9.0): Loading from cache
  - Updating contao/installation-bundle (4.8.8 => 4.9.0): Loading from cache
  - Updating contao/manager-bundle (4.8.8 => 4.9.0): Loading from cache
  - Updating contao/news-bundle (4.8.8 => 4.9.0): Loading from cache
  - Updating contao/faq-bundle (4.8.8 => 4.9.0): Loading from cache
  - Updating contao/calendar-bundle (4.8.8 => 4.9.0): Loading from cache
  - Updating contao/newsletter-bundle (4.8.8 => 4.9.0): Loading from cache
  - Updating contao/listing-bundle (4.8.8 => 4.9.0): Loading from cache
  - Updating contao/comments-bundle (4.8.8 => 4.9.0): Loading from cache
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
ramsey/uuid suggests installing paragonie/random-lib (Provides RandomLib for use with the RandomLibAdapter)
Package crossjoin/browscap is abandoned, you should avoid using it. No replacement was suggested.
Package robloach/component-installer is abandoned, you should avoid using it. Use oomphinc/composer-installers-extender instead.
Writing lock file
Generating autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
> ComponentInstaller\Installer::postAutoloadDump
Compiling component files
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
Added the web/index.php file.
Added the web/preview.php file.
Added the web/app.php file.

 // Clearing the cache for the prod environment with debug
 // false


 [OK] Cache for the "prod" environment (debug=false) was successfully cleared.



 // Warming up the cache for the prod environment with debug
 // false

09:52:29 ERROR     [console] Error thrown while running command "--ansi cache:warmup --env=prod". Message: "Class 'tl_settings' not found" ["exception" => Error { …},"command" => "--ansi cache:warmup --env=prod","message" => "Class 'tl_settings' not found"]

In tl_settings.php line 530:

  Attempted to load class "tl_settings" from the global namespace.
  Did you forget a "use" statement?


cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] <command>

Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-update-cmd event terminated with an exception


  [RuntimeException]
  An error occurred while executing the "cache:warmup" command: 09:52:29 ERROR     [co
  nsole] Error thrown while running command "--ansi cache:warmup --env=prod". Message: "Class 't
  l_settings' not found" ["exception" =>
  38mError { …},"command" => "--ans
  i cache:warmup --env=prod","message" => "
  8;5;113mClass 'tl_settings' not found"]

  In tl_settings.php line 530:

    Attempted to load class "tl_settings" from the global namespace.
    Did you forget a "use" statement?


  cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--vers
  ion] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] <command>


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
```
Ich vermute dass ein anderes Bundle noch das `tl_settings`verwendet und es durch die Desinstallation zum Tragen kommt…

@fritzmg
Copy link
Contributor

fritzmg commented Feb 19, 2020

Die Fehlermeldung

Attempted to load class "tl_settings" from the global namespace. Did you forget a "use" statement?

hat höchstwahrscheinlich nichts mit dieser Extension zu tun. Um herauszufinden, wo die tl_settings Klasse benutzt wird, könntest du ein composer install -vvv ausführen.

@planepix
Copy link
Author

Besten Dank für den Hinweis @fritzmg 👍

Eben mal ausgeführt:

/usr/bin/php74 -d memory_limit=-1 composer.phar install -vvv
Reading ./composer.json
Loading config file ./composer.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/www/htdocs/domain): git branch --no-color --no-abbrev -v
Executing command (/www/htdocs/domain): git describe --exact-match --tags
Executing command (/www/htdocs/domain): git log --pretty="%H" -n1 HEAD
Executing command (/www/htdocs/domain): hg branch
Executing command (/www/htdocs/domain): fossil branch list
Executing command (/www/htdocs/domain): fossil tag list
Executing command (/www/htdocs/domain): svn info --xml
Failed to initialize global composer: Composer could not find the config file: /.config/composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Reading /www/htdocs/domain/vendor/composer/installed.json
Loading plugin ComponentInstaller\ComponentInstallerPlugin
Loading plugin PackageVersions\Installer
Loading plugin Contao\ManagerPlugin\Composer\ArtifactsPlugin
Loading plugin Contao\ManagerPlugin\Composer\ManagerPluginInstaller
Loading plugin Contao\ManagerPlugin\Composer\AppAutoloadPlugin
Loading plugin Contao\ComponentsInstaller\Composer\Plugin
Loading plugin ContaoCommunityAlliance\Composer\Plugin\Plugin
Running 1.9.0 (2019-08-02 20:55:32) with PHP 7.4.2 on Linux / 4.4.0-173-generic
Reading ./composer.lock
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Reading ./composer.lock
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.003 seconds
Analyzed 616 packages to resolve dependencies
Analyzed 2644 rules to resolve dependencies
Nothing to install or update
Package crossjoin/browscap is abandoned, you should avoid using it. No replacement was suggested.
Package robloach/component-installer is abandoned, you should avoid using it. Use oomphinc/composer-installers-extender instead.
Generating autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
> post-autoload-dump: ComponentInstaller\Installer::postAutoloadDump
Compiling component files
contao/manager-plugin: Generating plugin class...
 - Added plugin for bugbuster/contao-botdetection-bundle
 - Added plugin for bugbuster/contao-cron-bundle
 - Added plugin for bugbuster/contao-dlstats-bundle
 - Added plugin for bugbuster/contao-visitors-bundle
 - Added plugin for codefog/tags-bundle
 - Added plugin for contao-community-alliance/dependency-container
 - Added plugin for contao-community-alliance/event-dispatcher
 - Added plugin for contao-community-alliance/events-contao-bindings
 - Added plugin for contao-community-alliance/meta-palettes
 - Added plugin for contao-community-alliance/translator
 - Added plugin for contao/calendar-bundle
 - Added plugin for contao/comments-bundle
 - Added plugin for contao/core-bundle
 - Added plugin for contao/faq-bundle
 - Added plugin for contao/installation-bundle
 - Added plugin for contao/listing-bundle
 - Added plugin for contao/manager-bundle
 - Added plugin for contao/news-bundle
 - Added plugin for contao/newsletter-bundle
 - Added plugin for do-while/contao-backupdb-bundle
 - Added plugin for do-while/contao-pdf-nc-attachment-bundle
 - Added plugin for eikona-media/contao-system-information
 - Added plugin for fritzmg/contao-swiper
 - Added plugin for georgpreissl/imagecrop
 - Added plugin for georgpreissl/imagefilter
 - Added plugin for intelligentspark/contao4-randomarticle
 - Added plugin for leycommediasolutions/contao-frontend-builder
 - Added plugin for leycommediasolutions/contao_elementsets
 - Added plugin for madeyourday/contao-rocksolid-columns
 - Added plugin for madeyourday/contao-rocksolid-slider
 - Added plugin for menatwork/contao-multicolumnwizard-bundle
 - Added plugin for nerdlichter/contao-image-optimizer-bundle
 - Added plugin for numero2/contao-marketing-suite
 - Added plugin for oveleon/contao-component-style-manager
 - Added plugin for pdir/backend-helper-bundle
 - Added plugin for presprog/contao-undo
 - Added plugin for terminal42/contao-node
 - Added plugin for trilobit-gmbh/contao-filecontent-bundle
 - Added plugin for trilobit-gmbh/contao-history-bundle
 - Added plugin for trilobit-gmbh/contao-tiles-bundle
contao/manager-plugin: ...done generating plugin class
> post-install-cmd: Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
Added the web/index.php file.
Added the web/preview.php file.
Added the web/app.php file.

 // Clearing the cache for the prod environment with debug
 // false

 // Cache is fresh.

 // Finished


 [OK] Cache for the "prod" environment (debug=false) was successfully cleared.



 // Warming up the cache for the prod environment with debug
 // false

10:26:58 ERROR     [console] Error thrown while running command "--ansi cache:warmup -vvv --env=prod". Message: "Class 'tl_settings' not found"
[
  "exception" => Error {
    #message: "Class 'tl_settings' not found"
    #code: 0
    #file: "./var/cache/prod/contao/dca/tl_settings.php"
    #line: 530
    trace: {
      ./var/cache/prod/contao/dca/tl_settings.php:530 {
        include^
        ›
        › class tl_settings_tags extends tl_settings
        › {
      }
      ./vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:94 { …}
      ./vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:70 { …}
      ./vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:1331 { …}
      ./vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:372 { …}
      ./vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:120 { …}
      ./vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:142 { …}
      ./vendor/contao/core-bundle/src/Cache/ContaoCacheWarmer.php:186 { …}
      ./vendor/contao/core-bundle/src/Cache/ContaoCacheWarmer.php:92 { …}
      ./vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php:97 { …}
      ./vendor/symfony/framework-bundle/Command/CacheWarmupCommand.php:80 { …}
      ./vendor/symfony/console/Command/Command.php:255 { …}
      ./vendor/symfony/console/Application.php:1030 { …}
      ./vendor/symfony/framework-bundle/Console/Application.php:97 { …}
      ./vendor/symfony/console/Application.php:272 { …}
      ./vendor/symfony/framework-bundle/Console/Application.php:83 { …}
      ./vendor/symfony/console/Application.php:148 { …}
      ./vendor/contao/manager-bundle/bin/contao-console:38 { …}
    }
  },
  "command" => "--ansi cache:warmup -vvv --env=prod",
  "message" => "Class 'tl_settings' not found"
]
10:26:58 DEBUG     [console] Command "--ansi cache:warmup -vvv --env=prod" exited with code "1"
[
  "command" => "--ansi cache:warmup -vvv --env=prod",
  "code" => 1
]

In tl_settings.php line 530:

  [Symfony\Component\ErrorHandler\Error\ClassNotFoundError]
  Attempted to load class "tl_settings" from the global namespace.
  Did you forget a "use" statement?


Exception trace:
  at /www/htdocs/domain/var/cache/prod/contao/dca/tl_settings.php:530
 include() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:94
 Contao\DcaLoader->loadDcaFiles() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:70
 Contao\DcaLoader->load() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:1331
 Contao\Controller::loadDataContainer() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:372
 Contao\DcaExtractor->createExtract() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:120
 Contao\DcaExtractor->__construct() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:142
 Contao\DcaExtractor::getInstance() at /www/htdocs/domain/vendor/contao/core-bundle/src/Cache/ContaoCacheWarmer.php:186
 Contao\CoreBundle\Cache\ContaoCacheWarmer->generateDcaExtracts() at /www/htdocs/domain/vendor/contao/core-bundle/src/Cache/ContaoCacheWarmer.php:92
 Contao\CoreBundle\Cache\ContaoCacheWarmer->warmUp() at /www/htdocs/domain/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php:97
 Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /www/htdocs/domain/vendor/symfony/framework-bundle/Command/CacheWarmupCommand.php:80
 Symfony\Bundle\FrameworkBundle\Command\CacheWarmupCommand->execute() at /www/htdocs/domain/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /www/htdocs/domain/vendor/symfony/console/Application.php:1030
 Symfony\Component\Console\Application->doRunCommand() at /www/htdocs/domain/vendor/symfony/framework-bundle/Console/Application.php:97
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /www/htdocs/domain/vendor/symfony/console/Application.php:272
 Symfony\Component\Console\Application->doRun() at /www/htdocs/domain/vendor/symfony/framework-bundle/Console/Application.php:83
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /www/htdocs/domain/vendor/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /www/htdocs/domain/vendor/contao/manager-bundle/bin/contao-console:38

cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] <command>

Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception


  [RuntimeException]
  An error occurred while executing the "cache:warmup" command: 10:26:58 ERROR     [console] Error thrown while running command "--ansi cache
  :warmup -vvv --env=prod". Message: "Class 'tl_settings' not found"
  [
    "exception" => Error {
      #message: "Class 'tl_settings' not found"
      #code: 0
      #file: ".
  /var/cache/prod/contao/dca/tl_settings.php"
      #line: 530
      trace: {
        ./
  70mvar/cache/prod/contao/dca/tl_settings.php:530 {
          include39;49m
  _settings.php#L530^
          ›
          ›
  ;208mclass tl_settings_tags extends tl_settings
          › {
        }

  ;38;5;208m./vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:94 { …}

  ;38;5;208m./vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:70 { …}

  ./vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:1331 { …}

  \./vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:372 { …}

  \./vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:120 { …}

  \./vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:142 { …}
        ./vendo
  r/contao/core-bundle/src/Cache/ContaoCacheWarmer.php:186 { …}
        ./vendor
  /contao/core-bundle/src/Cache/ContaoCacheWarmer.php:92 { …}
        ./
  vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php:97 { …}
        ./v
  endor/symfony/framework-bundle/Command/CacheWarmupCommand.php:80 { …}
        ./vendor/symfony/conso
  le/Command/Command.php:255 { …}
        ./vendor/symfony/console/
  Application.php:1030 { …}
        ./vendor/s
  ymfony/framework-bundle/Console/Application.php:97 { …}
        ./vendor/symfony/console/
  [0;38;5;208mApplication.php:272 { …}
        ./vendor/s
  ymfony/framework-bundle/Console/Application.php:83 { …}
        ./vendor/symfony/console/
  [0;38;5;208mApplication.php:148 { …}
        ./vendor/contao/ma
  nager-bundle/bin/contao-console:38 { …}
      }
    },
    "command" => "--ansi cache:warmup -vvv --env=prod",
    "message" => "Class 'tl_settings' not found"
  ]
  10:26:58 DEBUG     [console] Command "--ansi cache:warmup -vvv --env=prod" exited with code "1"
  [
    "command" => "--ansi cache:warmup -vvv --env=prod",
    "code" => 1
  ]

  In tl_settings.php line 530:

    [Symfony\Component\ErrorHandler\Error\ClassNotFoundError]
    Attempted to load class "tl_settings" from the global namespace.
    Did you forget a "use" statement?


  Exception trace:
    at /www/htdocs/domain/var/cache/prod/contao/dca/tl_settings.php:530
   include() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:94
   Contao\DcaLoader->loadDcaFiles() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.p
  hp:70
   Contao\DcaLoader->load() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:1331

   Contao\Controller::loadDataContainer() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaEx
  tractor.php:372
   Contao\DcaExtractor->createExtract() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtr
  actor.php:120
   Contao\DcaExtractor->__construct() at /www/htdocs/domain/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtrac
  tor.php:142
   Contao\DcaExtractor::getInstance() at /www/htdocs/domain/vendor/contao/core-bundle/src/Cache/ContaoCacheWarmer.php:186
   Contao\CoreBundle\Cache\ContaoCacheWarmer->generateDcaExtracts() at /www/htdocs/domain/vendor/contao/core-bundle/src/Cache/Conta
  oCacheWarmer.php:92
   Contao\CoreBundle\Cache\ContaoCacheWarmer->warmUp() at /www/htdocs/domain/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggr
  egate.php:97
   Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /www/htdocs/domain/vendor/symfony/framework-bundle/Co
  mmand/CacheWarmupCommand.php:80
   Symfony\Bundle\FrameworkBundle\Command\CacheWarmupCommand->execute() at /www/htdocs/domain/vendor/symfony/console/Command/Comman
  d.php:255
   Symfony\Component\Console\Command\Command->run() at /www/htdocs/domain/vendor/symfony/console/Application.php:1030
   Symfony\Component\Console\Application->doRunCommand() at /www/htdocs/domain/vendor/symfony/framework-bundle/Console/Application.
  php:97
   Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /www/htdocs/domain/vendor/symfony/console/Application.php:
  272
   Symfony\Component\Console\Application->doRun() at /www/htdocs/domain/vendor/symfony/framework-bundle/Console/Application.php:83
  [39m
   Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /www/htdocs/domain/vendor/symfony/console/Application.php:148
  m
   Symfony\Component\Console\Application->run() at /www/htdocs/domain/vendor/contao/manager-bundle/bin/contao-console:38

  cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env EN
  V] [--] <command>


Exception trace:
 () at /www/htdocs/domain/vendor/contao/manager-bundle/src/Composer/ScriptHandler.php:88
 Contao\ManagerBundle\Composer\ScriptHandler::executeCommand() at /www/htdocs/domain/vendor/contao/manager-bundle/src/Composer/ScriptHandler.php:32
 Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication() at phar:///www/htdocs/domain/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:305
 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///www/htdocs/domain/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:221
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///www/htdocs/domain/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:96
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///www/htdocs/domain/composer.phar/src/Composer/Installer.php:324
 Composer\Installer->run() at phar:///www/htdocs/domain/composer.phar/src/Composer/Command/InstallCommand.php:122
 Composer\Command\InstallCommand->execute() at phar:///www/htdocs/domain/composer.phar/vendor/symfony/console/Command/Command.php:245
 Symfony\Component\Console\Command\Command->run() at phar:///www/htdocs/domain/composer.phar/vendor/symfony/console/Application.php:835
 Symfony\Component\Console\Application->doRunCommand() at phar:///www/htdocs/domain/composer.phar/vendor/symfony/console/Application.php:185
 Symfony\Component\Console\Application->doRun() at phar:///www/htdocs/domain/composer.phar/src/Composer/Console/Application.php:267
 Composer\Console\Application->doRun() at phar:///www/htdocs/domain/composer.phar/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at phar:///www/htdocs/domain/composer.phar/src/Composer/Console/Application.php:106
 Composer\Console\Application->run() at phar:///www/htdocs/domain/composer.phar/bin/composer:61
 require() at /www/htdocs/domain/composer.phar:24

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...

@fritzmg
Copy link
Contributor

fritzmg commented Feb 19, 2020

Poste im Forum mal Zeile 530 von var/cache/prod/contao/dca/tl_settings.php

@planepix
Copy link
Author

Danke @fritzmg für den Hinweis.
Ein Tag Bundle ( oneup/contao-tags ) war der Auslöser. Das Bundle ist nun deinstalliert und OM Backend ist wieder installiert. Läuft (y)

Danke an alle und Entschuldigung das ich zuerst hier aufgeschlagen bin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants