Ergebnis 1 bis 6 von 6

Thema: Probleme mit Composer

  1. #1
    Contao-Fan
    Registriert seit
    15.12.2011.
    Beiträge
    812

    Standard Probleme mit Composer

    Hi zusammen,

    ich habe das Problem, dass ich weder deinstallieren, noch installieren kann.
    Ich erhalte dann immer eine Fehlermeldung:
    PHP-Code:
    $ /usr/bin/php74 --d memory_limit=-/www/htdocs/w013e143/spindoctor/2018/web/contao-manager.phar.php composer remove marebe1602/mae_event_categories --no-update --no-scripts --no-ansi --no-interaction


    # Process terminated with exit code 0
    # Result: OK


    Resolving dependencies using Composer Cloud v2.4.3

    # Job ID GaK4JwLXxAaowGOfSWUdx81RRrnDEtaWsRgVkPdpR1PnIAFARW44eKmeRJnH5XkUpbz5jf77cZbIZpoDhYhn completed in 103 seconds
    # Memory usage: 474.68MB (peak: 2366.47MB), time: 106.69s.

    $ /usr/bin/php74 --d memory_limit=-/www/htdocs/w013e143/spindoctor/2018/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
    contao/manager-pluginGenerating plugin class...
    contao/manager-plugin: ...done generating plugin class
    Added the web/preview.php file.
    Added the web/app.php file.
    Added the web/index.php file.

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

     
    [OKCache for the "prod" environment (debug=falsewas successfully cleared.  


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

    12:11:16 ERROR     [consoleError thrown while running command "cache:warmup --env=prod"Message"Argument 1 passed to Knp\Bundle\TimeBundle\DateTimeFormatter::__construct() must implement interface Symfony\Contracts\Translation\TranslatorInterface, instance of Contao\CoreBundle\Translation\Translator given, called in /www/htdocs/w013e143/spindoctor/2018/var/cache/prod/ContainerBCqD11X/getTwigService.php on line 108" ["exception" => TypeError },"command" => "cache:warmup --env=prod","message" => "Argument 1 passed to Knp\Bundle\TimeBundle\DateTimeFormatter::__construct() must implement interface Symfony\Contracts\Translation\TranslatorInterface, instance of Contao\CoreBundle\Translation\Translator given, called in /www/htdocs/w013e143/spindoctor/2018/var/cache/prod/ContainerBCqD11X/getTwigService.php on line 108"]

    In DateTimeFormatter.php line 18:
                                                                                   
      
    Argument 1 passed to Knp\Bundle\TimeBundle\DateTimeFormatter::__construct()  
       
    must implement interface Symfony\Contracts\Translation\TranslatorInterface  
      
    instance of Contao\CoreBundle\Translation\Translator givencalled in /ww  
      w
    /htdocs/w013e143/spindoctor/2018/var/cache/prod/ContainerBCqD11X/getTwigSe  
      rvice
    .php on line 108                                                        
                                                                                   

    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
    6 installs64 updates1 removal
      
    Removing marebe1602/mae_event_categories (1.5.1)
      - 
    Updating contao-components/installer (1.3.1 => 1.4.0): Downloading (100%)
      - 
    Updating ocramius/package-versions (1.4.2 => 1.9.0): Downloading (100%)
      - 
    Updating dasprid/enum (1.0.0 => 1.0.2): Downloading (100%)
      - 
    Updating bacon/bacon-qr-code (2.0.0 => 2.0.2): Downloading (100%)
      - 
    Updating contao-components/ace (1.4.7 => 1.4.12): Downloading (100%)
      - 
    Updating contao-components/colorbox (1.6.5 => 1.6.6): Downloading (100%)
      - 
    Updating contao-components/contao (9.1.0 => 9.1.1): Downloading (100%)
      - 
    Updating contao-components/dropzone (5.5.0 => 5.7.2): Downloading (100%)
      - 
    Updating contao-components/highlight (9.16.1 => 9.18.0): Downloading (100%)
      - 
    Updating contao-components/jquery (3.4.1 => 3.5.1): Downloading (100%)
      - 
    Updating contao-components/tablesorter (2.1.1 => 2.31.3): Downloading (100%)
      - 
    Updating contao-components/tinymce4 (4.9.6 => 4.9.11): Downloading (100%)
      - 
    Updating symfony/polyfill-ctype (v1.14.0 => v1.18.1): Downloading (100%)
      - 
    Updating webmozart/assert (1.6.0 => 1.9.1): Downloading (100%)
      - 
    Updating symfony/polyfill-php73 (v1.14.0 => v1.18.1): Downloading (100%)
      - 
    Updating contao/image (1.0.1 => 1.0.2): Downloading (100%)
      - 
    Updating contao/imagine-svg (0.2.2 => 0.2.3): Downloading (100%)
      - 
    Updating symfony/service-contracts (v1.1.8 => v1.1.9): Downloading (100%)
      - 
    Updating symfony/polyfill-mbstring (v1.14.0 => v1.18.1): Downloading (100%)
      - 
    Updating symfony/polyfill-php72 (v1.14.0 => v1.18.1): Downloading (100%)
      - 
    Installing symfony/polyfill-php70 (v1.18.1): Downloading (100%)
      - 
    Installing symfony/polyfill-intl-normalizer (v1.18.1): Downloading (100%)
      - 
    Updating symfony/polyfill-intl-idn (v1.14.0 => v1.18.1): Downloading (100%)
      - 
    Updating symfony/mime (v4.4.4 => v4.4.13): Downloading (100%)
      - 
    Updating symfony/event-dispatcher-contracts (v1.1.7 => v1.1.9): Downloading (100%)
      - 
    Installing symfony/polyfill-php80 (v1.18.1): Downloading (100%)
      - 
    Updating psr/log (1.1.2 => 1.1.3): Downloading (100%)
      - 
    Updating symfony/debug (v4.4.4 => v4.4.13): Downloading (100%)
      - 
    Updating symfony/var-exporter (v4.4.4 => v4.4.13): Downloading (100%)
      - 
    Updating symfony/cache-contracts (v1.1.7 => v1.1.10): Downloading (100%)
      - 
    Updating doctrine/lexer (1.0.2 => 1.2.1): Downloading (100%)
      - 
    Updating doctrine/annotations (v1.8.0 => 1.10.4): Downloading (100%)
      - 
    Updating doctrine/reflection (v1.1.0 => 1.2.1): Downloading (100%)
      - 
    Updating doctrine/event-manager (1.1.0 => 1.1.1): Downloading (100%)
      - 
    Updating doctrine/collections (1.6.4 => 1.6.7): Downloading (100%)
      - 
    Updating doctrine/cache (1.10.0 => 1.10.2): Downloading (100%)
      - 
    Updating doctrine/persistence (1.3.6 => 1.3.8): Downloading (100%)
      - 
    Updating doctrine/inflector (1.3.1 => 1.4.3): Downloading (100%)
      - 
    Updating doctrine/dbal (v2.9.3 => 2.10.4): Downloading (100%)
      - 
    Updating doctrine/doctrine-bundle (1.12.7 => 1.12.10): Downloading (100%)
      - 
    Updating doctrine/instantiator (1.3.0 => 1.3.1): Downloading (100%)
      - 
    Updating doctrine/common (2.12.0 => 2.13.3): Downloading (100%)
      - 
    Updating doctrine/orm (v2.7.0 => v2.7.3): Downloading (100%)
      - 
    Updating egulias/email-validator (2.1.17 => 2.1.20): Downloading (100%)
      - 
    Installing symfony/deprecation-contracts (v2.2.0): Downloading (100%)
      - 
    Updating symfony/options-resolver (v4.4.4 => v5.1.5): Downloading (100%)
      - 
    Updating php-http/message (1.8.0 => 1.9.0): Downloading (100%)
      - 
    Updating php-http/discovery (1.7.4 => 1.10.0): Downloading (100%)
      - 
    Updating php-http/promise (v1.0.0 => 1.1.0): Downloading (100%)
      - 
    Updating guzzlehttp/guzzle (6.5.2 => 6.5.5): Downloading (100%)
      - 
    Updating friendsofsymfony/http-cache (2.9.0 => 2.9.2): Downloading (100%)
      - 
    Updating friendsofsymfony/http-cache-bundle (2.7.2 => 2.9.0): Downloading (100%)
      - 
    Updating symfony/translation-contracts (v1.1.7 => v1.1.10): Downloading (100%)
      - 
    Removing knplabs/knp-time-bundle (v1.10.0)
      - 
    Installing knplabs/knp-time-bundle (v1.13.0): Downloading (100%)
      - 
    Updating twig/twig (v2.12.5 => v2.13.1): Downloading (100%)
      - 
    Updating symfony/twig-bridge (v4.4.4 => v4.4.13): Downloading (100%)
      - 
    Installing symfony/polyfill-intl-grapheme (v1.18.1): Downloading (100%)
      - 
    Installing symfony/string (v5.1.5): Downloading (100%)
      - 
    Updating symfony/inflector (v4.4.4 => v5.1.5): Downloading (100%)
      - 
    Updating symfony/property-access (v4.4.4 => v4.4.13): Downloading (100%)
      - 
    Updating lcobucci/jwt (3.3.1 => 3.3.3): Downloading (100%)
      - 
    Updating scheb/two-factor-bundle (v4.13.0 => v4.18.2): Downloading (100%)
      - 
    Updating scssphp/scssphp (1.0.7 => 1.2.1): Downloading (100%)
      - 
    Updating simplepie/simplepie (1.5.4 => 1.5.5): Downloading (100%)
      - 
    Updating symfony-cmf/routing (2.1.1 => 2.2.0): Downloading (100%)
      - 
    Updating symfony-cmf/routing-bundle (2.2.0 => 2.3.0): Downloading (100%)
      - 
    Updating symfony/polyfill-iconv (v1.14.0 => v1.18.1): Downloading (100%)
      - 
    Updating symfony/templating (v4.4.4 => v5.1.5): Downloading (100%)
      - 
    Updating terminal42/service-annotation-bundle (1.0.0 => 1.1.2): Downloading (100%)
      - 
    Updating contao/conflicts (dev-master 87a1566 => dev-master ba331b1)
    Generating optimized autoload files
    Deprecation Notice
    : Class League\Uri\Schemes\AbstractUri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standardIt will not autoload anymore in Composer v2.0in phar:///www/htdocs/w013e143/spindoctor/2018/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
    Deprecation Notice: Class League\Uri\Schemes\Data located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standardIt will not autoload anymore in Composer v2.0in phar:///www/htdocs/w013e143/spindoctor/2018/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
    Deprecation Notice: Class League\Uri\Schemes\File located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standardIt will not autoload anymore in Composer v2.0in phar:///www/htdocs/w013e143/spindoctor/2018/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
    Deprecation Notice: Class League\Uri\Schemes\Ftp located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standardIt will not autoload anymore in Composer v2.0in phar:///www/htdocs/w013e143/spindoctor/2018/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
    Deprecation Notice: Class League\Uri\Schemes\Http located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standardIt will not autoload anymore in Composer v2.0in phar:///www/htdocs/w013e143/spindoctor/2018/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
    Deprecation Notice: Class League\Uri\Schemes\Uri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standardIt will not autoload anymore in Composer v2.0in phar:///www/htdocs/w013e143/spindoctor/2018/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
    Deprecation Notice: Class League\Uri\Schemes\UriException located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standardIt will not autoload anymore in Composer v2.0in phar:///www/htdocs/w013e143/spindoctor/2018/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
    Deprecation Notice: Class League\Uri\Schemes\Ws located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standardIt will not autoload anymore in Composer v2.0in phar:///www/htdocs/w013e143/spindoctor/2018/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
    38 packages you are using are looking for funding.
    Use 
    the `composer fundcommand to find out more!
    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" command12:11:16 ERRO  
      R     
    [consoleError thrown while running command "cache:warmup --env=prod  
      "
    Message"Argument 1 passed to Knp\Bundle\TimeBundle\DateTimeFormatter::  
      __construct() must implement interface Symfony\Contracts\Translation\Transl  
      atorInterface, instance of Contao\CoreBundle\Translation\Translator given,   
      called in /www/htdocs/w013e143/spindoctor/2018/var/cache/prod/ContainerBCqD  
      11X/getTwigService.php on line 108" 
    ["exception" => TypeError },"command  
      " 
    => "cache:warmup --env=prod","message" => "Argument 1 passed to Knp\Bundl  
      e\TimeBundle\DateTimeFormatter::__construct() must implement interface Symf  
      ony\Contracts\Translation\TranslatorInterface, instance of Contao\CoreBundl  
      e\Translation\Translator given, called in /www/htdocs/w013e143/spindoctor/2  
      018/var/cache/prod/ContainerBCqD11X/getTwigService.php on line 108"
    ]         
                                                                                   
      
    In DateTimeFormatter.php line 18:                                            
                                                                                   
                                                                                   
        
    Argument 1 passed to Knp\Bundle\TimeBundle\DateTimeFormatter::__construct  
      
    ()                                                                           
         
    must implement interface Symfony\Contracts\Translation\TranslatorInterfa  
      ce                                                                           
        
    instance of Contao\CoreBundle\Translation\Translator givencalled in /  
      
    ww                                                                           
        w
    /htdocs/w013e143/spindoctor/2018/var/cache/prod/ContainerBCqD11X/getTwig  
      Se                                                                           
        rvice
    .php on line 108                                                      
                                                                                   
                                                                                   
                                                                                   
                                                                                   
      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 ### 

    Kann mir jemand sagen, was ich machen kann, damit ich alles wieder vollumfänglich nutzen kann?

    Vielen Dank,
    Preetz

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

    Standard

    Contao 4.8 hat das Lebensende erreicht. Du musst auf Contao 4.9 aktualisieren.

  3. #3
    Contao-Nutzer
    Registriert seit
    24.08.2018.
    Ort
    Magdeburg
    Beiträge
    131

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Contao 4.8 hat das Lebensende erreicht. Du musst auf Contao 4.9 aktualisieren.
    Keine hilfreiche Antwort - ich habe eine bessere

    Der Fehler kommt durch ein Breaking Chance innerhalb einer der Abhängigkeiten: https://github.com/contao/contao/issues/1136

    Ich habe das Problem auch mit Contao 4.8. Wir haben vor dem Update heute mal ausmisten wollen - das Packet knplabs/knp-time-bundle ist in der Version 1.11/1.12/1.13 installiert worden, obwohl es nur bis 1.10 mit Contao 4.8 läuft. Hier wäre eine Festlegung auf Bugfix-Releases als Abhängigkeit besser gewesen.

    Füge unter "require" in deiner composer.json folgende Abhängigkeit hinzu:
    "knplabs/knp-time-bundle": "1.10.0"

    Sollte für ein Update auf 4.9 dann aber vorher entfernt werden

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

    Standard

    Die korrekte Antwort ist nach wie vor auf Contao eine unterstützte Version zu aktualisieren, in der das Problem behoben ist. Die richtige Antwort ist sicher nicht auf einer veralteten Version zu bleiben, wo das Problem besteht und irgendeinen Workaround einzubauen.

  5. #5
    Contao-Nutzer
    Registriert seit
    24.08.2018.
    Ort
    Magdeburg
    Beiträge
    131

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Die korrekte Antwort ist nach wie vor auf Contao eine unterstützte Version zu aktualisieren, in der das Problem behoben ist. Die richtige Antwort ist sicher nicht auf einer veralteten Version zu bleiben, wo das Problem besteht und irgendeinen Workaround einzubauen.
    Du bist doch selber in dem Thread Update-4-8-x-auf-4-9-x-·-best-practice aktiv - du solltest wissen, dass ein Update auf die 4.9 nicht immer problemlos vonstatten geht. preetz ist seit 2011 in diesem Forum und ich denke er hat einen guten Grund bei der 4.8 zu sein.

    Btw. ist das Problem NICHT Contao oder eine veraltete Version: Die Entwickler vom Paket halten sich einfach nicht an die semantischen Vorgaben der Versionen. Ein Minor-Release sollte KEINE breaking changes enthalten

    @Preetz: Ein Update auf 4.9 wäre zeitlich aber wirklich angebracht - immerhin kannst du dann bis Februar 2023 darauf hocken bleiben

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

    Standard

    Zitat Zitat von WorkerBeeEu Beitrag anzeigen
    Du bist doch selber in dem Thread Update-4-8-x-auf-4-9-x-·-best-practice aktiv - du solltest wissen, dass ein Update auf die 4.9 nicht immer problemlos vonstatten geht.
    Diese Probleme muss man dann lösen. Deswegen auf Contao 4.8 zu bleiben wäre die falsche Vorgehensweise.



    Zitat Zitat von WorkerBeeEu Beitrag anzeigen
    preetz ist seit 2011 in diesem Forum und ich denke er hat einen guten Grund bei der 4.8 zu sein.
    Es ist völlig egal wie lange du in einem Forum registriert bist. Auf einer veralteten Version zu bleiben ist nicht die richtige Lösung.
    Geändert von Spooky (14.09.2020 um 14:54 Uhr)

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
  •