Closed fritzmg closed 6 years ago
Sounds a bit like the issue in #1422 where Doctrine throws an exception before the kernel is booted (and therefore the listener for pretty error screens doesn't not kick in)?
Right, I forgot about that. Probably not an issue that's easily solved. Closing :)
Hmm. I not sure how the /contao/install
route works before entering database credentials. But wouldn't the same error appear if a wrong username/password/port was entered?
No, because if host and port are correct, Doctrine can establish an initial connection to determine the MySQL server version. Also I think the install tool checks the connection first before saving it to the parameters.yml
? So this problem only occurs, if database connection information is already present in the parameters.yml
.
It's still bad that you can enter whatever you want in the installer and it still works but everything goes away if e.g. the mysql server isn't reachable. :smile:
In Contao 4.5.10, if the database connection is actively refused for whatever reason, every route including
/contao/install
, will only display the following:The
dev
environment will show the following errors: https://pastebin.com/C7cm4HC7Shouldn't the pretty error screen be shown in the
prod
environment instead?