-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with installation on Domain Factory #27
Comments
|
Full stack traces: The problem is actually that the manager-bundle only catches So this problem was probably introduced in Contao 4.4.0(-RC2) with contao/manager-bundle@06f1f29#diff-e3375107bffc209723fa127bb186d8c6 . |
This is not true. If you set |
|
Yeah the problem seems to be the manager-bundle's own connection test. It connects to the |
Can you point me to the code please?
😧 |
|
See my second comment. The exception occurs here: https://github.com/contao/manager-bundle/blob/4.4.4/src/ContaoManager/Plugin.php#L167-L181 |
It's fine, they still provide MySQL 5 servers, but with |
This should be fixed. |
|
Fixed in contao/manager-bundle@9a14ef8 and contao/core-bundle@2eb52f3. |
|
@leofeyer wouldn't this change not catch the connection exception that would occur on servers where anyonymous users are allowed (or not allowed... don't remember for which case this was done)? |
|
What exactly are you referring to? |
|
|
The connection exception is a subclass of the driver exception: https://github.com/doctrine/dbal/blob/2.5/lib/Doctrine/DBAL/Exception/ConnectionException.php#L29 |
|
Ah I see, I missed that, sorry. |
In the Managed Edition, the database credentials are created by the Contao Install Tool. This leads to a problem on Domain Factory if you are using the Contao Manager for installation (presumably) or
composer create-projectduring the post-install/update-cmds:As we know, Doctrine (unfortunately) always tries to make a connection to a MySQL server no matter what when initialized, even if the database credentials haven't been defined yet. It uses its default values, which includes
localhostas the hostname for the MySQL server.This is a problem on Domain Factory, because the MySQL server that is reachable under
localhostis of version 3 ... See https://www.df.eu/at/support/df-faq/webhosting/datenbanken/mysql-datenbanken/The MySQL 5.x server is behind
mysql5.example.org.The text was updated successfully, but these errors were encountered: