Contao-Camp 2024
Ergebnis 1 bis 9 von 9

Thema: changelanguage lässt sich in Contao 4.9 nicht installieren

  1. #1
    Contao-Nutzer
    Registriert seit
    05.11.2015.
    Beiträge
    46

    Standard changelanguage lässt sich in Contao 4.9 nicht installieren

    Hallo Community,

    ich habe leider ein Problem beim Update von Contao 3.5 auf 4.9.
    Ich habe zunächst Contao 4.9 frisch installiert und dann versucht die Erweiterungen zu installieren die in 3.5 benutzt wurden.

    Das hat soweit funktioniert, allerdings kam ich nicht ins Installtool. Als ich in die Logdatei geschaut habe war schnell klar, dass changelanguage Probleme macht.

    Fehlermeldung:
    syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN)" at /contao4/vendor/terminal42/contao-changelanguage/src/EventListener/BackendView/AbstractViewListener.php line 186

    Ich habe also changelanguage entfernt und den Symfony-Cache geleert.
    Bei allen weiteren Versuchen die Erweiterung zu installieren erhalte ich die selbe Fehlermeldung und bin inzwischen ratlos.

    PHP Version: 7.2
    Installierte Erweiterungen: mmenu, backupDB, lightcase, contao-multifileupload-bundle, dlh_geocode, dlh_googlemaps, rocksolid custom elements, rocksolid slider, semantic_html5, contao cookiebar, contao-inputvar-bundle, contao-ajaxform, conditional select-menu, folder page, contao-mailusername, pageimage, notification center

    Vielen Dank im Voraus!

  2. #2
    Wandelndes Contao-Lexikon Avatar von tab
    Registriert seit
    22.10.2013.
    Beiträge
    10.060
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Vermutlich ist deine PHP-Version zu alt.

  3. #3
    Wandelndes Contao-Lexikon Avatar von tab
    Registriert seit
    22.10.2013.
    Beiträge
    10.060
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Ah, nein, 7.2 sollte eigentlich reichen. Allerdings würde ich das nochmal überprüfen, ob da wirklich auch in der Konsole PHP 7.2 verwendet wird, weil das ein typischer Fehler ist für PHP <= 7.0

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

    Standard

    Dann wäre es aber ein Fehler in der Erweiterung (also PHP Requirement nicht hoch genug). Sehe aber jetzt keine speziellen Features, die nur ab PHP 7.3 oder 7.4 funktionieren würde.
    » sponsor me via GitHub or PayPal or Revolut

  5. #5
    Contao-Nutzer
    Registriert seit
    05.11.2015.
    Beiträge
    46

    Standard

    Hier einmal die Konsolenausgabe. Das Problem tritt immer erst bei leeren des caches auf.

    Code:
    [7.8MiB/0.19s] Loading composer repositories with package information
    [66.5MiB/1.52s] Updating dependencies
    [141.1MiB/53.87s] Lock file operations: 1 install, 0 updates, 0 removals
    [141.1MiB/53.87s]   - Locking terminal42/contao-changelanguage (3.2.2)
    [140.2MiB/53.89s] Writing lock file
    [81.4MiB/53.94s] Package league/uri-hostname-parser is abandoned, you should avoid using it. No replacement was suggested.
    [81.4MiB/53.95s] Package league/uri-schemes is abandoned, you should avoid using it. No replacement was suggested.
    [81.4MiB/53.95s] Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead.
    [81.4MiB/53.95s] Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
    [81.4MiB/53.95s] Package symplify/auto-bind-parameter is abandoned, you should avoid using it. Use symplify/package-builder instead.
    [81.4MiB/53.95s] Package symplify/parameter-name-guard is abandoned, you should avoid using it. No replacement was suggested.
    [81.4MiB/53.96s] Package symplify/set-config-resolver is abandoned, you should avoid using it. No replacement was suggested.
    [82.0MiB/53.96s] Memory usage: 82.01MB (peak: 1520.74MB), time: 53.97s.
    [82.0MiB/53.97s] Finished Composer Cloud resolving.
    
    
    # Job ID XL3v4u6K4FfejhpoRftLDLZBiugZQpWNRETFL3aufdDgLlbGtIjrR5TRCbVC4g5w9t1aiDRGPhGiyo7LZNreUUTrgwDqY5ybkL completed in 50 seconds
    # Memory usage: 82.01MB (peak: 1520.74MB), time: 53.97s.
    
    $ /usr/bin/php7.2 -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /home/www/reseller/natus2021/contao4/web/contao-manager.phar.php composer install --prefer-dist --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.
    Package operations: 1 install, 0 updates, 0 removals
      - Installing terminal42/contao-changelanguage (3.2.2): Extracting archive
    Package league/uri-hostname-parser is abandoned, you should avoid using it. No replacement was suggested.
    Package league/uri-schemes is abandoned, you should avoid using it. No replacement was suggested.
    Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead.
    Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
    Package symplify/auto-bind-parameter is abandoned, you should avoid using it. Use symplify/package-builder instead.
    Package symplify/parameter-name-guard is abandoned, you should avoid using it. No replacement was suggested.
    Package symplify/set-config-resolver is abandoned, you should avoid using it. No replacement was suggested.
    Generating optimized autoload files
    composer/package-versions-deprecated: Generating version class...
    composer/package-versions-deprecated: ...done generating version class
    Class League\Uri\Schemes\AbstractUri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\Data located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\File located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\Ftp located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\Http located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\Uri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\UriException located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\Ws located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    112 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    PHP CodeSniffer Config installed_paths set to ../../slevomat/coding-standard
    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.  
    
    
     // 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                                                                       
    
    11:08:58 CRITICAL  [console] Error thrown while running command "cache:warmup --env=prod". Message: "syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN)" ["exception" => ParseError { …},"command" => "cache:warmup --env=prod","message" => "syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN)"]
    
    In AbstractViewListener.php line 186:
                                                                                   
      syntax error, unexpected end of file, expecting variable (T_VARIABLE) or he  
      redoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY  
      _OPEN)                                                                       
                                                                                   
    
    cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] 
    
    Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception
    
    In ScriptHandler.php line 89:
                                                                                   
      An error occurred while executing the "cache:warmup" command: 11:08:58 CRIT  
      ICAL  [console] Error thrown while running command "cache:warmup --env=prod  
      ". Message: "syntax error, unexpected end of file, expecting variable (T_VA  
      RIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) o  
      r {$ (T_CURLY_OPEN)" ["exception" => ParseError { …},"command" => "cache:wa  
      rmup --env=prod","message" => "syntax error, unexpected end of file, expect  
      ing variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OP  
      EN_CURLY_BRACES) or {$ (T_CURLY_OPEN)"]                                      
                                                                                   
      In AbstractViewListener.php line 186:                                        
                                                                                   
                                                                                   
        syntax error, unexpected end of file, expecting variable (T_VARIABLE) or   
      he                                                                           
        redoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CUR  
      LY                                                                           
        _OPEN)                                                                     
                                                                                   
                                                                                   
                                                                                   
                                                                                   
      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] [--]                                                         
                                                                                   
    
    install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-scripts] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [...]
    
    
    # Process terminated with exit code 1
    # Result: General error

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

    Standard

    Den Fehler kann ich reproduzieren. Öffne dazu ein Ticket auf GitHub bei der Extension.
    » sponsor me via GitHub or PayPal or Revolut

  7. #7
    Contao-Nutzer
    Registriert seit
    05.11.2015.
    Beiträge
    46

    Standard

    Hallo nochmal,

    das Problem hat sich tatsächlich unter PHP 7.3 erledigt. Danke euch!

    Viele Grüße

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

    Standard

    PHP 7.2 und 7.3 haben das Lebensende erreicht. Du solltest PHP 7.4 oder 8.0 (bzw. bald 8.1) verwenden.
    » sponsor me via GitHub or PayPal or Revolut

  9. #9
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    33.896
    Partner-ID
    10107
    » sponsor me via GitHub or PayPal or Revolut

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
  •