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
Installation Contao 4.9 und MAMP Pro schlägt fehlt wegen server_version #1631
Comments
Dieses Problem ist mir auch schon begegnet, geholfen hat folgendes: Ein Verzeichnis «config» erstellt und darin die Datei mit Namen «parameters.yml» mit folgendem Inhalt angelegt: parameters:
database_host: localhost
database_port: 3306
database_user: benutzer
database_password: 'passwort'
database_name: datenbankname Danach die Paket Aktualisierung erneut starten. |
Ich konnte jetzt die Ursache für den Fehler herausfinden. Der Fehler entsteht dann, wenn ein anonymer User angelegt ist. Frage Ein ähnliches Thema in einem anderen Zusammenhang siehe contao/core-bundle#736 |
Es ist auf jeden Fall kein Contao-Problem. Vermutlich hast Du |
Für die lokale Entwicklung kannst du deinem Datenbankserver auch klarmachen, dass er Benutzer und Passwörter generell ignorieren soll:
Macht das Leben leichter. 😄 |
Aus meiner Sicht ist es etwas, das wir verbessern sollten. |
Und hast Du auch eine Idee, wie man das verbessern könnte? |
Naja, wir machen ja bereits ein DB Connect um herauszufinden ob wir die server_version setzten müssen. Scheinbar reicht das nicht, d.h. wir müssten auch prüfen ob der (anonyme) User effektiv was tun kann? Vielleicht ein |
see #1698 for the bug fix |
Description ----------- | Q | A | -----------------| --- | Fixed issues | Fixes #1631 If the database server allows anonymous connections, the current DB check does not fail as it should. The added `SHOW TABLES` is actually the same procedure already used by the install tool, I have also locally reproduced the problem and this fixes it. Even though #1631 says the issue only appears in Contao 4.9 (which I can confirm), I think we should also fix/change this in 4.4, as it might be related to a change in Doctrine or Symfony that _could_ somewhen apply to 4.4 as well. Commits ------- 66732c7 Fetch tables to check the database connection
Affected version(s)
Description
Bei einer frischen Installation von Contao 4.9 über den Contao Manager bricht die Installation kurz vor Schluss ab. Problem ist wohl die Prüfung der Datenbankverbindung. (siehe Ausgabe)
Leider konnte ich bisher den Fehler nur bei 2 Kunden sehen, allerdings bei meinem eigenen System nicht nachvollziehen und reproduzieren.
Das Problem tritt erst seit Contao 4.9 auf.
Wenn Contao 4.4 installiert wird, läuft alles fehlerfrei durch.
Hier auch ein Beitrag im Forum zu diesem Problem.
https://community.contao.org/de/showthread.php?77266-Lokale-Installation-von-contao-4-9-in-MAMP-mit-php7-4-2-unvollst%C3%A4ndig-bricht-ab
Wie kann das Problem analysiert werden bzw. wie kann ich zur Fehlersuche beitragen?
The text was updated successfully, but these errors were encountered: