vendor/bin/contao-console debug:router geht mit APP_ENV=dev nicht
Hallo,
wenn ich "vendor/bin/contao-console debug:router" im development modus (APP_ENV=dev) ausführe erhalte ich folgenden Fehlern:
Code:
contao4-lts % /Applications/MAMP/bin/php/php8.1.0/bin/php vendor/bin/contao-console debug:router
13:51:58 CRITICAL [console] Error thrown while running command "debug:router". Message: "Warning: foreach() argument must be of type array|object, null given" ["exception" => ErrorException { …},"command" => "debug:router","message" => "Warning: foreach() argument must be of type array|object, null given"]
In Route404Provider.php line 107:
Warning: foreach() argument must be of type array|object, null given
debug:router [--show-controllers] [--format FORMAT] [--raw] [--] [<name>]
Wenn ich es mit APP_ENV=prod starte, funktioniert es.
Ich habe ein blankes contao 4.13 (LTS) mit dem Contao-manager installiert (noch gar nichts anderes angepasst).
weiters wenn ich jetzt
composer.phar install aufrufe (ohne Anpassung von composer.json) erhalte ich
Code:
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- contao/core-bundle is locked to version 4.13.6 and an update of this package was not requested.
- contao/core-bundle 4.13.6 requires composer-runtime-api ^2.0.14 -> found composer-runtime-api[2.0.0] but it does not match the constraint.
Problem 2
- contao/core-bundle 4.13.6 requires composer-runtime-api ^2.0.14 -> found composer-runtime-api[2.0.0] but it does not match the constraint.
- contao/newsletter-bundle 4.13.6 requires contao/core-bundle 4.13.6 -> satisfiable by contao/core-bundle[4.13.6].
- contao/newsletter-bundle is locked to version 4.13.6 and an update of this package was not requested.
Der Contao manager ruft mir folgenden Befehl auf
Code:
/Applications/MAMP/bin/php/php8.1.0/bin/php -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=UTC /Users/test/contao4/web/contao-manager.phar.php composer install --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader
dieser Befehl funktioniert. Aber warum?
Vielen Dank