Closed contaoacademy closed 1 year ago
I agree that these commands should ignore the warnings - however you should still fix the warnings ;)
Für JSON commands sollten wir
display_errors=0
setzen
https://github.com/contao/contao/pull/5331
und
STDERR
ignorieren (was wir evtl. aber schon tun)
This still needs to be checked.
I think it's best if the Manager disables error output in https://github.com/contao/contao-manager/blob/main/api/Process/ConsoleProcessFactory.php#L253 same as other config handling.
fixed in ae4a0470d9d30444c8f46d978517cc82972a5be1
Wenn beim Aufruf von
contao:migrate
PHP-Warnungen ausgegeben werden, dann führt dies dazu, dass der Contao Manager keine validen JSON-Daten bekommt und keine Migrationen erkennt.Lösungsvorschlag @ausi Für JSON commands sollten wir
display_errors=0
setzen undSTDERR ignorieren
(was wir evtl. aber schon tun)siehe auch Slack: https://contao.slack.com/archives/CGSEPHEV7/p1664287239672519
Beispiel Warnings unter PHP 8 und Contao 4.13 für Erweiterung simple-job-manager