Ergebnis 1 bis 8 von 8

Thema: Irgendwas klappt mit dem Composer nicht

  1. #1
    Contao-Fan Avatar von Birden
    Registriert seit
    15.01.2011.
    Beiträge
    768

    Standard Irgendwas klappt mit dem Composer nicht

    Was will mir denn diese schöne Meldung sagen?
    Code:
    > Resolving dependencies using Composer Cloud v3.2.0
    !!! Current server is sponsored by: Contao Association !!!
    [6.9MiB/0.31s] Loading composer repositories with package information
    [60.5MiB/2.28s] Updating dependencies
    [1455.8MiB/29.44s] Your requirements could not be resolved to an installable set of packages.
    [1455.8MiB/29.44s] 
      Problem 1
        - Root composer.json requires php ^7.1 but your php version (8.0.6.0) does not satisfy that requirement.
    [1455.8MiB/29.44s] <warning>Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.</warning>
    [77.1MiB/30.61s] Memory usage: 77.13MB (peak: 1456.75MB), time: 30.62s.
    [77.1MiB/30.62s] Finished Composer Cloud resolving.
    # Cloud Job ID xagyR0g71gpztpUgexxlAMNkyTOvxH9J7kEuBIufU5nu5mtuioDQg0q3wuijMdXHCl7AICtHz4O4SKsjkTTfN0NzFSjA failed
    Mit PHP 7.4 klappt es, aber mit PHP 8 nicht.

    Systempruefung.png

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

    Standard

    Du hast in deiner composer.json festgelegt, dass du PHP 7 brauchst. Wenn du PHP 8 verwenden willst, musst du das dementsprechend ändern.
    » sponsor me via GitHub or PayPal or Revolut

  3. #3
    Contao-Nutzer
    Registriert seit
    27.10.2020.
    Beiträge
    30

    Standard Update 4.4.55 auf 4.5

    Hallo Zusammen,

    naiv wie ich bin, dachte ich mir, ich kann Contao selbst und unkompliziert auf die Version 4.9 updaten. Dafür wollte ich von der aktuellsten Version 4.4.55 immer eine Version höher gehen. Doch bereits beim ersten Sprung gab es einen Fehler.

    Vorab die geforderten Grunddaten:

    Hosting: Netcup

    Aktuelle Version: 4.4.55

    Installation über den Contao Manager


    Inhalt meiner Composer.json

    {
    "type": "project",
    "require": {
    "contao/manager-bundle": "4.5.*",
    "contao/calendar-bundle": "4.5.*",
    "contao/comments-bundle": "4.5.*",
    "contao/faq-bundle": "4.5.*",
    "contao/listing-bundle": "4.5.*",
    "contao/news-bundle": "4.5.*",
    "contao/newsletter-bundle": "4.5.*",
    "contao/conflicts": "*@dev"
    },
    "extra": {
    "contao-component-dir": "assets"
    },
    "scripts": {
    "post-install-cmd": [
    "Contao\\ManagerBundle\\Composer\\ScriptHandler::i nitializeApplication"
    ],
    "post-update-cmd": [
    "Contao\\ManagerBundle\\Composer\\ScriptHandler::i nitializeApplication"
    ]
    }
    }



    Fehlermeldung:

    $ /usr/local/php74/bin/php -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /var/www/vhosts/hosting145059.a2e91.netcup.net/contao/web/contao-manager.phar.php composer install --prefer-dist --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader
    2
    3Installing dependencies from lock file
    4Verifying lock file contents can be installed on current platform.
    5Package operations: 12 installs, 20 updates, 3 removals
    6As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.
    7This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
    8Installing 'unzip' may remediate them.
    9 - Removing toflar/psr6-symfony-http-cache-store (2.3.1)
    10 - Removing scssphp/scssphp (v1.6.0)
    11 - Removing jeremykendall/php-domain-parser (3.0.0)
    12 - Installing ocramius/package-versions (1.11.0): Extracting archive
    13 - Installing ausi/slug-generator (v1.1.1): Extracting archive
    14 - Upgrading contao-components/dropzone (4.3.0 => 5.9.2): Extracting archive
    15 - Upgrading contao-components/highlight (8.9.1 => 9.18.1): Extracting archive
    16 - Downgrading contao-components/tablesort (4.0.1 => 3.4.12): Extracting archive
    17 - Upgrading contao-components/tinymce4 (4.6.7.3 => 4.9.12): Extracting archive
    18 - Upgrading twig/twig (v1.44.4 => v2.14.6): Extracting archive
    19 - Upgrading php-http/client-common (1.10.0 => 1.11.0): Extracting archive
    20 - Installing symfony/polyfill-iconv (v1.23.0): Extracting archive
    21 - Installing egulias/email-validator (3.1.1): Extracting archive
    22 - Upgrading swiftmailer/swiftmailer (v5.4.12 => v6.2.7): Extracting archive
    23 - Upgrading symfony/swiftmailer-bundle (v2.6.7 => v3.3.1): Extracting archive
    24 - Installing sensio/framework-extra-bundle (v5.4.1): Extracting archive
    25 - Installing league/uri-parser (1.4.1): Extracting archive
    26 - Installing league/uri-interfaces (1.1.1): Extracting archive
    27 - Installing league/uri-schemes (1.2.1): Extracting archive
    28 - Installing league/uri-hostname-parser (1.1.2): Extracting archive
    29 - Installing league/uri-components (1.8.2): Extracting archive
    30 - Installing league/uri-manipulations (1.5.0): Extracting archive
    31 - Removing league/uri (4.2.2)
    32 - Installing league/uri (5.3.0)
    33 - Installing leafo/scssphp (v0.7.8): Extracting archive
    34 - Downgrading imagine/imagine (1.2.4 => v0.7.1): Extracting archive
    35 - Upgrading contao/core-bundle (4.4.55 => 4.5.14): Extracting archive
    36 - Upgrading contao/calendar-bundle (4.4.55 => 4.5.14): Extracting archive
    37 - Upgrading contao/comments-bundle (4.4.55 => 4.5.14): Extracting archive
    38 - Upgrading contao/faq-bundle (4.4.55 => 4.5.14): Extracting archive
    39 - Upgrading contao/listing-bundle (4.4.55 => 4.5.14): Extracting archive
    40 - Upgrading sensiolabs/ansi-to-html (v1.1.3 => v1.2.1): Extracting archive
    41 - Upgrading contao/installation-bundle (4.4.55 => 4.5.14): Extracting archive
    42 - Upgrading contao/manager-bundle (4.4.55 => 4.5.14): Extracting archive
    43 - Upgrading contao/news-bundle (4.4.55 => 4.5.14): Extracting archive
    44 - Upgrading contao/newsletter-bundle (4.4.55 => 4.5.14): Extracting archive
    45Package contao-components/compass is abandoned, you should avoid using it. No replacement was suggested.
    46Package doctrine/doctrine-cache-bundle is abandoned, you should avoid using it. No replacement was suggested.
    47Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
    48Package leafo/scssphp is abandoned, you should avoid using it. Use scssphp/scssphp instead.
    49Package league/uri-hostname-parser is abandoned, you should avoid using it. No replacement was suggested.
    50Package league/uri-manipulations is abandoned, you should avoid using it. No replacement was suggested.
    51Package league/uri-schemes is abandoned, you should avoid using it. No replacement was suggested.
    52Package oyejorge/less.php is abandoned, you should avoid using it. No replacement was suggested.
    53Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead.
    54Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
    55Package sensio/distribution-bundle is abandoned, you should avoid using it. No replacement was suggested.
    56Package sensiolabs/security-checker is abandoned, you should avoid using it. Use https://github.com/fabpot/local-php-security-checker instead.
    57Generating optimized autoload files
    58Class Sensio\Bundle\FrameworkExtraBundle\Tests\Dependenc yInjection\AddExpressionLanguageProvidersPassTest located in ./vendor/sensio/framework-extra-bundle/Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php does not comply with psr-4 autoloading standard. Skipping.
    59Class Sensio\Bundle\FrameworkExtraBundle\Tests\Dependenc yInjection\AddParamConverterPassTest located in ./vendor/sensio/framework-extra-bundle/Tests/DependencyInjection/Compiler/AddParamConverterPassTest.php does not comply with psr-4 autoloading standard. Skipping.
    60Class Sensio\Bundle\FrameworkExtraBundle\Tests\Request\P aramConverter\ArgumentNameConverterTest located in ./vendor/sensio/framework-extra-bundle/Tests/Request/ArgumentNameConverterTest.php does not comply with psr-4 autoloading standard. Skipping.
    61Class League\Uri\Schemes\AbstractUri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    62Class League\Uri\Schemes\Data located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    63Class League\Uri\Schemes\File located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    64Class League\Uri\Schemes\Ftp located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    65Class League\Uri\Schemes\Http located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    66Class League\Uri\Schemes\Uri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    67Class League\Uri\Schemes\UriException located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    68Class League\Uri\Schemes\Ws located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    69ocramius/package-versions: Generating version class...
    70ocramius/package-versions: ...done generating version class
    71contao/manager-plugin: Generating plugin class...
    72contao/manager-plugin: ...done generating plugin class
    73
    74Fatal error: Uncaught Error: Undefined class constant 'VERSIONS' in /var/www/vhosts/hosting145059.a2e91.netcup.net/contao/vendor/contao/core-bundle/src/DependencyInjection/Compiler/AddPackagesPass.php:32
    75Stack trace:
    76#0 /var/www/vhosts/hosting145059.a2e91.netcup.net/contao/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(140): Contao\CoreBundle\DependencyInjection\Compiler\Add PackagesPass->process(Object(Contao\ManagerPlugin\Config\Contai nerBuilder))
    77#1 /var/www/vhosts/hosting145059.a2e91.netcup.net/contao/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(789): Symfony\Component\DependencyInjection\Compiler\Com piler->compile(Object(Contao\ManagerPlugin\Config\Contai nerBuilder))
    78#2 /var/www/vhosts/hosting145059.a2e91.netcup.net/contao/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(643): Symfony\Component\DependencyInjection\ContainerBui lder->compile()
    79#3 /var/www/vhosts/hosting145059.a2e91.netcup.net/contao/vendor/contao/manager-b in /var/www/vhosts/hosting145059.a2e91.netcup.net/contao/vendor/contao/core-bundle/src/DependencyInjection/Compiler/AddPackagesPass.php on line 32
    8039 packages you are using are looking for funding.
    81Use the `composer fund` command to find out more!
    82> Contao\ManagerBundle\Composer\ScriptHandler::initi alizeApplication
    83Script Contao\ManagerBundle\Composer\ScriptHandler::initi alizeApplication handling the post-install-cmd event terminated with an exception
    84
    85In ScriptHandler.php line 95:
    86
    87 An error occurred while executing the "contao:install-web-dir" command:
    88
    89
    90install [--prefer-source] [--prefer-dist] [--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] [--] [<packages>...]
    91
    92
    93# Process terminated with exit code 1
    94# Result: General error


    Irgendeiner Ideen für mich?

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

    Standard

    Du musst von 4.4 auf 4.9 aktualisieren. Alle Contao Versionen dazwischen haben ihr Lebensende erreicht und bekommen keine Aktualisierungen mehr (und daher können dort auch Fehler auftreten).
    » sponsor me via GitHub or PayPal or Revolut

  5. #5
    Contao-Nutzer
    Registriert seit
    27.10.2020.
    Beiträge
    30

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Du musst von 4.4 auf 4.9 aktualisieren. Alle Contao Versionen dazwischen haben ihr Lebensende erreicht und bekommen keine Aktualisierungen mehr (und daher können dort auch Fehler auftreten).
    ok vielen Dank.... Habe es jetzt erneut versucht und es lief alles ohne Fehler durch! Allerdings als ich danach die Datenbank aktualisieren wollte über das Contao-Installtool kam die nachfolgende Meldung:

    Es ist ein Fehler aufgetreten
    Die innodb_large_prefix-Option ist nicht aktiv!

    Die innodb_large_prefix-Option ist auf Ihrem Server nicht aktiv. Bitte aktivieren Sie sie (empfohlen) oder konfigurieren Sie einen anderen Zeichensatz und eine andere Kollation in der Datei config/config.yml.


    Code:
    doctrine:
        dbal:
            connections:
                default:
                    default_table_options:
                        charset: utf8
                        collate: utf8_unicode_ci
    Geändert von Spooky (12.07.2021 um 17:17 Uhr) Grund: added appropriate tags

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

    Standard

    Benötigst du dazu noch Hilfe?
    » sponsor me via GitHub or PayPal or Revolut

  7. #7
    Contao-Nutzer
    Registriert seit
    27.10.2020.
    Beiträge
    30

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Benötigst du dazu noch Hilfe?
    Habe dies in meine config.yml eingetragen. Und als ich dann das Installtool noch einmal gestartet habe, hat er mir denselben Fehler noch einmal angezeigt. Jetzt habe ich es nach einer Stunde Verzögerung noch einmal gestartet und jetzt zeigt er mir eine andere Meldung an:

    Bitte beachten Sie, dass der Update-Assistent nur Tabellen berücksichtigt, die mit tl_ beginnen.

    Es sind viele DB-Tabellen vorbelegt.

    Siehe Anhang!

    Ganz unten steht! Sie haben Contao erfolgreich installiert! Rufen Sie nun das Backend auf!

    Soll ich jetzt noch auf Datenbank aktualisieren drücken?
    Angehängte Grafiken Angehängte Grafiken

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

    Standard

    Zitat Zitat von Kalle von Baggabu Beitrag anzeigen
    Habe dies in meine config.yml eingetragen. Und als ich dann das Installtool noch einmal gestartet habe, hat er mir denselben Fehler noch einmal angezeigt.
    Hattest du nach der Änderung der config.yml den Symfony Application Cache erneuert?


    Zitat Zitat von Kalle von Baggabu Beitrag anzeigen
    Soll ich jetzt noch auf Datenbank aktualisieren drücken?
    Ja klar
    » 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
  •