Zitat von
Spooky
Du solltest mal Composer aktualisieren.
Code:
composer selfupdate
Ich habe jetzt den composer upgedated und noch einmal Contao mit dem contao-manager komplett neu installiert.
wen im .env file APP_ENV=prod steht funktioniert
Code:
/Applications/MAMP/bin/php/php8.1.0/bin/php vendor/bin/contao-console debug:router
wenn jetzt aber beim .env file APP_ENV=dev steht, erhalte ich immer noch folgende Fehlermeldung.
Code:
/Applications/MAMP/bin/php/php8.1.0/bin/php vendor/bin/contao-console debug:router
09:21:30 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>]
Hat jemand eine Idee? Habe nur ich das Problem?
das Composer.json sieht wie folgt aus
Code:
{
"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"
]
}
}
Lesezeichen