contao / contao-manager

Contao Manager
GNU Lesser General Public License v3.0
85 stars 33 forks source link

Error on installation of Contao 4.13.6 via Contao-Manager #709

Closed jochi44 closed 2 years ago

jochi44 commented 2 years ago

Contao-Manager version: 1.5.7 PHP version: 8.1.8 Installation type: new installation

When trying to install the latest Contao LTS-version 4.13.6 (no composer resolver cloud) via the Contao Manager, the installation fails due to the following error:

$ /opt/php-8.1/bin/php -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /var/www/web/contao-manager.phar.php composer install --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader

No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Lock file operations: 179 installs, 0 updates, 0 removals
  - Locking ausi/slug-generator (v1.1.1)
  - Locking bacon/bacon-qr-code (2.0.7)
  - Locking beberlei/assert (v3.3.2)
  - Locking clue/stream-filter (v1.6.0)
  - Locking composer/ca-bundle (1.3.3)
  - Locking contao-components/ace (1.8.0)
  - Locking contao-components/chosen (1.2.4)
  - Locking contao-components/colorbox (1.6.6)
  - Locking contao-components/colorpicker (1.5.2)
  - Locking contao-components/contao (9.2.0)
  - Locking contao-components/datepicker (2.3.2)
  - Locking contao-components/dropzone (5.9.3)
  - Locking contao-components/installer (1.4.1)
  - Locking contao-components/jquery (3.6.0)
  - Locking contao-components/jquery-ui (1.13.1)
  - Locking contao-components/mediabox (1.5.5)
  - Locking contao-components/mootools (1.6.0.6)
  - Locking contao-components/simplemodal (2.1.1)
  - Locking contao-components/swipe (2.2.0)
  - Locking contao-components/tablesort (4.0.1)
  - Locking contao-components/tablesorter (2.31.3)
  - Locking contao-components/tinymce4 (5.10.5)
  - Locking contao/calendar-bundle (4.13.6)
  - Locking contao/comments-bundle (4.13.6)
  - Locking contao/conflicts (dev-main 499c1af)
  - Locking contao/core-bundle (4.13.6)
  - Locking contao/faq-bundle (4.13.6)
  - Locking contao/image (1.1.1)
  - Locking contao/imagine-svg (1.0.3)
  - Locking contao/installation-bundle (4.13.6)
  - Locking contao/listing-bundle (4.13.6)
  - Locking contao/manager-bundle (4.13.6)
  - Locking contao/manager-plugin (2.12.0)
  - Locking contao/news-bundle (4.13.6)
  - Locking contao/newsletter-bundle (4.13.6)
  - Locking dasprid/enum (1.0.3)
  - Locking dflydev/dot-access-data (v3.0.1)
  - Locking doctrine/annotations (1.13.3)
  - Locking doctrine/cache (2.2.0)
  - Locking doctrine/collections (1.6.8)
  - Locking doctrine/common (3.3.0)
  - Locking doctrine/dbal (3.3.7)
  - Locking doctrine/deprecations (v1.0.0)
  - Locking doctrine/doctrine-bundle (2.7.0)
  - Locking doctrine/event-manager (1.1.1)
  - Locking doctrine/inflector (2.0.4)
  - Locking doctrine/instantiator (1.4.1)
  - Locking doctrine/lexer (1.2.3)
  - Locking doctrine/orm (2.12.3)
  - Locking doctrine/persistence (2.5.3)
  - Locking doctrine/sql-formatter (1.1.3)
  - Locking dragonmantank/cron-expression (v2.3.1)
  - Locking egulias/email-validator (3.2.1)
  - Locking friendsofphp/proxy-manager-lts (v1.0.12)
  - Locking friendsofsymfony/http-cache (2.14.1)
  - Locking friendsofsymfony/http-cache-bundle (2.12.1)
  - Locking imagine/imagine (1.3.2)
  - Locking knplabs/knp-menu (v3.3.0)
  - Locking knplabs/knp-menu-bundle (v3.2.0)
  - Locking knplabs/knp-time-bundle (v1.19.0)
  - Locking laminas/laminas-code (4.5.2)
  - Locking lcobucci/clock (2.2.0)
  - Locking lcobucci/jwt (4.1.5)
  - Locking league/commonmark (2.3.4)
  - Locking league/config (v1.1.1)
  - Locking league/flysystem (3.1.1)
  - Locking league/flysystem-bundle (2.2.1)
  - Locking league/mime-type-detection (1.11.0)
  - Locking matthiasmullie/minify (1.3.68)
  - Locking matthiasmullie/path-converter (1.1.3)
  - Locking monolog/monolog (2.7.0)
  - Locking nelmio/cors-bundle (2.2.0)
  - Locking nelmio/security-bundle (v2.12.0)
  - Locking nette/schema (v1.2.2)
  - Locking nette/utils (v3.2.7)
  - Locking nikic/php-parser (v4.14.0)
  - Locking nyholm/psr7 (1.5.1)
  - Locking paragonie/constant_time_encoding (v2.6.3)
  - Locking paragonie/random_compat (v9.99.100)
  - Locking php-http/client-common (2.5.0)
  - Locking php-http/discovery (1.14.3)
  - Locking php-http/httplug (2.3.0)
  - Locking php-http/message (1.13.0)
  - Locking php-http/message-factory (v1.0.2)
  - Locking php-http/promise (1.1.0)
  - Locking phpspec/php-diff (v1.1.3)
  - Locking psr/cache (2.0.0)
  - Locking psr/container (1.1.2)
  - Locking psr/event-dispatcher (1.0.0)
  - Locking psr/http-client (1.0.1)
  - Locking psr/http-factory (1.0.1)
  - Locking psr/http-message (1.0.1)
  - Locking psr/log (1.1.4)
  - Locking scheb/2fa-backup-code (v5.13.2)
  - Locking scheb/2fa-bundle (v5.13.2)
  - Locking scheb/2fa-trusted-device (v5.13.2)
  - Locking scrivo/highlight.php (v9.18.1.9)
  - Locking scssphp/scssphp (v1.10.3)
  - Locking sensiolabs/ansi-to-html (v1.2.1)
  - Locking simplepie/simplepie (1.6.0)
  - Locking spatie/schema-org (3.11.0)
  - Locking spomky-labs/otphp (v10.0.3)
  - Locking stella-maris/clock (0.1.4)
  - Locking symfony-cmf/routing (2.3.4)
  - Locking symfony-cmf/routing-bundle (2.5.1)
  - Locking symfony/asset (v5.4.7)
  - Locking symfony/cache (v5.4.10)
  - Locking symfony/cache-contracts (v2.5.2)
  - Locking symfony/config (v5.4.9)
  - Locking symfony/console (v5.4.10)
  - Locking symfony/debug-bundle (v5.4.3)
  - Locking symfony/dependency-injection (v5.4.10)
  - Locking symfony/deprecation-contracts (v3.1.1)
  - Locking symfony/doctrine-bridge (v5.4.10)
  - Locking symfony/dom-crawler (v5.4.9)
  - Locking symfony/dotenv (v5.4.5)
  - Locking symfony/error-handler (v5.4.9)
  - Locking symfony/event-dispatcher (v5.4.9)
  - Locking symfony/event-dispatcher-contracts (v3.1.1)
  - Locking symfony/expression-language (v5.4.10)
  - Locking symfony/filesystem (v5.4.9)
  - Locking symfony/finder (v5.4.8)
  - Locking symfony/framework-bundle (v5.4.10)
  - Locking symfony/http-client (v5.4.9)
  - Locking symfony/http-client-contracts (v2.5.2)
  - Locking symfony/http-foundation (v5.4.10)
  - Locking symfony/http-kernel (v5.4.10)
  - Locking symfony/intl (v5.4.10)
  - Locking symfony/lock (v5.4.10)
  - Locking symfony/mailer (v5.4.10)
  - Locking symfony/mime (v5.4.10)
  - Locking symfony/monolog-bridge (v5.4.10)
  - Locking symfony/monolog-bundle (v3.8.0)
  - Locking symfony/options-resolver (v5.4.3)
  - Locking symfony/password-hasher (v5.4.8)
  - Locking symfony/polyfill-ctype (v1.26.0)
  - Locking symfony/polyfill-intl-grapheme (v1.26.0)
  - Locking symfony/polyfill-intl-idn (v1.26.0)
  - Locking symfony/polyfill-intl-normalizer (v1.26.0)
  - Locking symfony/polyfill-mbstring (v1.26.0)
  - Locking symfony/polyfill-php72 (v1.26.0)
  - Locking symfony/polyfill-php73 (v1.26.0)
  - Locking symfony/polyfill-php80 (v1.26.0)
  - Locking symfony/polyfill-php81 (v1.26.0)
  - Locking symfony/polyfill-uuid (v1.26.0)
  - Locking symfony/process (v5.4.8)
  - Locking symfony/property-access (v5.4.8)
  - Locking symfony/property-info (v6.1.2)
  - Locking symfony/proxy-manager-bridge (v5.4.6)
  - Locking symfony/routing (v5.4.8)
  - Locking symfony/security-bundle (v5.4.9)
  - Locking symfony/security-core (v5.4.10)
  - Locking symfony/security-csrf (v5.4.9)
  - Locking symfony/security-guard (v5.4.9)
  - Locking symfony/security-http (v5.4.10)
  - Locking symfony/service-contracts (v2.5.2)
  - Locking symfony/stopwatch (v5.4.5)
  - Locking symfony/string (v5.4.10)
  - Locking symfony/translation (v5.4.9)
  - Locking symfony/translation-contracts (v2.5.2)
  - Locking symfony/twig-bridge (v5.4.9)
  - Locking symfony/twig-bundle (v5.4.8)
  - Locking symfony/uid (v5.4.3)
  - Locking symfony/var-dumper (v5.4.9)
  - Locking symfony/var-exporter (v6.1.1)
  - Locking symfony/web-profiler-bundle (v5.4.10)
  - Locking symfony/yaml (v5.4.10)
  - Locking terminal42/escargot (1.4.1)
  - Locking terminal42/service-annotation-bundle (1.1.3)
  - Locking thecodingmachine/safe (v2.2.2)
  - Locking toflar/psr6-symfony-http-cache-store (3.0.1)
  - Locking twig/extra-bundle (v3.4.0)
  - Locking twig/twig (v3.4.1)
  - Locking ua-parser/uap-php (v3.9.14)
  - Locking webignition/disallowed-character-terminated-string (2.0)
  - Locking webignition/robots-txt-file (3.0)
  - Locking webmozart/assert (1.11.0)
  - Locking webmozart/path-util (2.3.0)
  - Locking wikimedia/less.php (1.8.2)
Writing lock file
Installing dependencies from lock file
Package operations: 179 installs, 0 updates, 0 removals
As there is no 'unzip' nor '7z' command installed zip files are being unpacked using the PHP zip extension.
This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
Installing 'unzip' or '7z' (21.01+) may remediate them.
  - Downloading contao-components/installer (1.4.1)
  - Downloading symfony/polyfill-mbstring (v1.26.0)
  - Downloading symfony/polyfill-ctype (v1.26.0)
  - Downloading symfony/deprecation-contracts (v3.1.1)
  - Downloading symfony/polyfill-php80 (v1.26.0)
  - Downloading symfony/polyfill-php73 (v1.26.0)
  - Downloading symfony/http-foundation (v5.4.10)
  - Downloading psr/event-dispatcher (1.0.0)
  - Downloading symfony/event-dispatcher-contracts (v3.1.1)
  - Downloading symfony/event-dispatcher (v5.4.9)
  - Downloading symfony/var-dumper (v5.4.9)
  - Downloading psr/log (1.1.4)
  - Downloading symfony/error-handler (v5.4.9)
  - Downloading symfony/http-kernel (v5.4.10)
  - Downloading psr/container (1.1.2)
  - Downloading symfony/service-contracts (v2.5.2)
  - Downloading symfony/polyfill-php81 (v1.26.0)
  - Downloading symfony/dependency-injection (v5.4.10)
  - Downloading symfony/filesystem (v5.4.9)
  - Downloading symfony/config (v5.4.9)
  - Downloading symfony/routing (v5.4.8)
  - Downloading contao/manager-plugin (2.12.0)
  - Downloading ausi/slug-generator (v1.1.1)
  - Downloading dasprid/enum (1.0.3)
  - Downloading bacon/bacon-qr-code (2.0.7)
  - Downloading contao-components/ace (1.8.0)
  - Downloading contao-components/chosen (1.2.4)
  - Downloading contao-components/colorbox (1.6.6)
  - Downloading contao-components/colorpicker (1.5.2)
  - Downloading contao-components/contao (9.2.0)
  - Downloading contao-components/datepicker (2.3.2)
  - Downloading contao-components/dropzone (5.9.3)
  - Downloading contao-components/jquery (3.6.0)
  - Downloading contao-components/jquery-ui (1.13.1)
  - Downloading contao-components/mediabox (1.5.5)
  - Downloading contao-components/mootools (1.6.0.6)
  - Downloading contao-components/simplemodal (2.1.1)
  - Downloading contao-components/swipe (2.2.0)
  - Downloading contao-components/tablesort (4.0.1)
  - Downloading contao-components/tablesorter (2.31.3)
  - Downloading contao-components/tinymce4 (5.10.5)
  - Downloading symfony/yaml (v5.4.10)
  - Downloading symfony/options-resolver (v5.4.3)
  - Downloading psr/http-message (1.0.1)
  - Downloading php-http/message-factory (v1.0.2)
  - Downloading clue/stream-filter (v1.6.0)
  - Downloading php-http/message (1.13.0)
  - Downloading php-http/discovery (1.14.3)
  - Downloading symfony/http-client-contracts (v2.5.2)
  - Downloading symfony/http-client (v5.4.9)
  - Downloading psr/http-factory (1.0.1)
  - Downloading psr/http-client (1.0.1)
  - Downloading php-http/promise (1.1.0)
  - Downloading php-http/httplug (2.3.0)
  - Downloading php-http/client-common (2.5.0)
  - Downloading friendsofsymfony/http-cache (2.14.1)
  - Downloading wikimedia/less.php (1.8.2)
  - Downloading webignition/disallowed-character-terminated-string (2.0)
  - Downloading webignition/robots-txt-file (3.0)
  - Downloading composer/ca-bundle (1.3.3)
  - Downloading ua-parser/uap-php (v3.9.14)
  - Downloading twig/twig (v3.4.1)
  - Downloading psr/cache (2.0.0)
  - Downloading doctrine/lexer (1.2.3)
  - Downloading doctrine/annotations (1.13.3)
  - Downloading terminal42/service-annotation-bundle (1.1.3)
  - Downloading symfony/dom-crawler (v5.4.9)
  - Downloading nyholm/psr7 (1.5.1)
  - Downloading terminal42/escargot (1.4.1)
  - Downloading symfony/polyfill-uuid (v1.26.0)
  - Downloading symfony/uid (v5.4.3)
  - Downloading symfony/translation-contracts (v2.5.2)
  - Downloading symfony/twig-bridge (v5.4.9)
  - Downloading symfony/twig-bundle (v5.4.8)
  - Downloading symfony/translation (v5.4.9)
  - Downloading symfony/polyfill-intl-normalizer (v1.26.0)
  - Downloading symfony/polyfill-intl-grapheme (v1.26.0)
  - Downloading symfony/string (v5.4.10)
  - Downloading symfony/password-hasher (v5.4.8)
  - Downloading symfony/security-core (v5.4.10)
  - Downloading symfony/property-info (v6.1.2)
  - Downloading symfony/property-access (v5.4.8)
  - Downloading symfony/security-http (v5.4.10)
  - Downloading symfony/security-csrf (v5.4.9)
  - Downloading symfony/security-guard (v5.4.9)
  - Downloading symfony/security-bundle (v5.4.9)
  - Downloading symfony/process (v5.4.8)
  - Downloading symfony/polyfill-php72 (v1.26.0)
  - Downloading symfony/polyfill-intl-idn (v1.26.0)
  - Downloading monolog/monolog (2.7.0)
  - Downloading symfony/monolog-bridge (v5.4.10)
  - Downloading symfony/mime (v5.4.10)
  - Downloading egulias/email-validator (3.2.1)
  - Downloading symfony/mailer (v5.4.10)
  - Downloading symfony/lock (v5.4.10)
  - Downloading symfony/intl (v5.4.10)
  - Downloading symfony/finder (v5.4.8)
  - Downloading symfony/var-exporter (v6.1.1)
  - Downloading symfony/cache-contracts (v2.5.2)
  - Downloading symfony/cache (v5.4.10)
  - Downloading symfony/framework-bundle (v5.4.10)
  - Downloading symfony/expression-language (v5.4.10)
  - Downloading doctrine/event-manager (1.1.1)
  - Downloading doctrine/deprecations (v1.0.0)
  - Downloading doctrine/collections (1.6.8)
  - Downloading doctrine/cache (2.2.0)
  - Downloading doctrine/persistence (2.5.3)
  - Downloading symfony/doctrine-bridge (v5.4.10)
  - Downloading symfony/console (v5.4.10)
  - Downloading symfony/asset (v5.4.7)
  - Downloading symfony-cmf/routing (2.3.4)
  - Downloading symfony-cmf/routing-bundle (2.5.1)
  - Downloading thecodingmachine/safe (v2.2.2)
  - Downloading paragonie/constant_time_encoding (v2.6.3)
  - Downloading beberlei/assert (v3.3.2)
  - Downloading spomky-labs/otphp (v10.0.3)
  - Downloading spatie/schema-org (3.11.0)
  - Downloading simplepie/simplepie (1.6.0)
  - Downloading scssphp/scssphp (v1.10.3)
  - Downloading scrivo/highlight.php (v9.18.1.9)
  - Downloading scheb/2fa-bundle (v5.13.2)
  - Downloading stella-maris/clock (0.1.4)
  - Downloading lcobucci/clock (2.2.0)
  - Downloading lcobucci/jwt (4.1.5)
  - Downloading scheb/2fa-trusted-device (v5.13.2)
  - Downloading scheb/2fa-backup-code (v5.13.2)
  - Downloading phpspec/php-diff (v1.1.3)
  - Downloading nikic/php-parser (v4.14.0)
  - Downloading paragonie/random_compat (v9.99.100)
  - Downloading nelmio/security-bundle (v2.12.0)
  - Downloading nelmio/cors-bundle (2.2.0)
  - Downloading matthiasmullie/path-converter (1.1.3)
  - Downloading matthiasmullie/minify (1.3.68)
  - Downloading league/mime-type-detection (1.11.0)
  - Downloading league/flysystem (3.1.1)
  - Downloading league/flysystem-bundle (2.2.1)
  - Downloading nette/utils (v3.2.7)
  - Downloading nette/schema (v1.2.2)
  - Downloading dflydev/dot-access-data (v3.0.1)
  - Downloading league/config (v1.1.1)
  - Downloading league/commonmark (2.3.4)
  - Downloading knplabs/knp-time-bundle (v1.19.0)
  - Downloading knplabs/knp-menu (v3.3.0)
  - Downloading knplabs/knp-menu-bundle (v3.2.0)
  - Downloading imagine/imagine (1.3.2)
  - Downloading friendsofsymfony/http-cache-bundle (2.12.1)
  - Downloading dragonmantank/cron-expression (v2.3.1)
  - Downloading doctrine/instantiator (1.4.1)
  - Downloading doctrine/inflector (2.0.4)
  - Downloading doctrine/dbal (3.3.7)
  - Downloading doctrine/common (3.3.0)
  - Downloading doctrine/orm (2.12.3)
  - Downloading doctrine/sql-formatter (1.1.3)
  - Downloading doctrine/doctrine-bundle (2.7.0)
  - Downloading contao/imagine-svg (1.0.3)
  - Downloading webmozart/assert (1.11.0)
  - Downloading webmozart/path-util (2.3.0)
  - Downloading contao/image (1.1.1)
  - Downloading contao/core-bundle (4.13.6)
  - Downloading contao/calendar-bundle (4.13.6)
  - Downloading contao/comments-bundle (4.13.6)
  - Downloading contao/faq-bundle (4.13.6)
  - Downloading contao/listing-bundle (4.13.6)
  - Downloading twig/extra-bundle (v3.4.0)
  - Downloading toflar/psr6-symfony-http-cache-store (3.0.1)
  - Downloading symfony/web-profiler-bundle (v5.4.10)
  - Downloading symfony/stopwatch (v5.4.5)
  - Downloading laminas/laminas-code (4.5.2)
  - Downloading friendsofphp/proxy-manager-lts (v1.0.12)
  - Downloading symfony/proxy-manager-bridge (v5.4.6)
  - Downloading symfony/monolog-bundle (v3.8.0)
  - Downloading symfony/dotenv (v5.4.5)
  - Downloading symfony/debug-bundle (v5.4.3)
  - Downloading sensiolabs/ansi-to-html (v1.2.1)
  - Downloading contao/installation-bundle (4.13.6)
  - Downloading contao/manager-bundle (4.13.6)
  - Downloading contao/news-bundle (4.13.6)
  - Downloading contao/newsletter-bundle (4.13.6)

In PluginManager.php line 768:

  contao-components/installer contains a Composer plugin which is blocked by   
  your allow-plugins config. You may add it to the list if you consider it sa  
  fe.                                                                          
  You can run "composer config --no-plugins allow-plugins.contao-components/i  
  nstaller [true|false]" to enable it (true) or disable it explicitly and sup  
  press this exception (false)                                                 
  See https://getcomposer.org/allow-plugins                                    

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--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
aschempp commented 2 years ago

what does your composer.json look like?

jochi44 commented 2 years ago

composer.json

{
    "type": "project",
    "require": {
        "contao/conflicts": "*@dev",
        "contao/manager-bundle": "4.13.*",
        "contao/calendar-bundle": "4.13.*",
        "contao/comments-bundle": "4.13.*",
        "contao/faq-bundle": "4.13.*",
        "contao/listing-bundle": "4.13.*",
        "contao/news-bundle": "4.13.*",
        "contao/newsletter-bundle": "4.13.*"
    },
    "extra": {
        "public-dir": "web",
        "contao-component-dir": "assets"
    },
    "scripts": {
        "post-install-cmd": [
            "@php vendor/bin/contao-setup"
        ],
        "post-update-cmd": [
            "@php vendor/bin/contao-setup"
        ]
    }
}
xprojects-de commented 2 years ago

Hello,

same here!!! My Composer.json


{
    "type": "project",
    "require": {
        "contao/conflicts": "*@dev",
        "contao/manager-bundle": "4.13.*"
    },
    "extra": {
        "public-dir": "public",
        "contao-component-dir": "assets"
    },
    "scripts": {
        "post-install-cmd": [
            "@php vendor/bin/contao-setup"
        ],
        "post-update-cmd": [
            "@php vendor/bin/contao-setup"
        ]
    }
}
xprojects-de commented 2 years ago

see also https://contao.slack.com/archives/CK4J0KNDB/p1658731977257359?thread_ts=1658729485.256049&cid=CK4J0KNDB

xprojects-de commented 2 years ago

Short description for workaround:

add

"config": {
        "allow-plugins": true
    }

to composer.json and try again...

fritzmg commented 2 years ago

see also https://contao.slack.com/archives/CK4J0KNDB/p1658731977257359?thread_ts=1658729485.256049&cid=CK4J0KNDB

Please do not post links to slack. Post any solution that a slack thread might have provided directly instead.

Short description for workaround:

That won't work with the Cloud Resolver though, if that is relevant. You should instead add each individual composer plugin package, if you need the cloud.

jochi44 commented 2 years ago

I'll close this issue as with v1.6.0 the installation of Contao 4.13 works without problems.