Error reading from Database

Error reading from Database

von Oliver Bay -
Anzahl Antworten: 2

Hallo,

beim Versuch, mein Profil (als admin) zu ändern, bekomme ich die Fehlermeldung "

Error reading from database

More information about this error

(Der Link führt nicht weiter.)

Die folgende Debug info sagt mir auch nicht so viel.

Hat jemand eine Idee, wo ich was ändern muss?

Im Voraus vielen Dank.

Oliver

COLLATION 'utf8mb4_bin' is not valid for CHARACTER SET 'utf8'
SELECT 'x' FROM mdl_user WHERE LOWER(email) COLLATE utf8mb4_bin = LOWER(?) AND mnethostid = ? AND id <> ? LIMIT 0, 1
[array (
0 => '((MEINE NEUE MAIL ADRESSE, DIE ICH EINGEBEN MÖCHTE))',
1 => '1',
2 => 2,
)]
Error code: dmlreadexception
×Stack trace: 
  • line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
  • line 1212 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1955 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_recordset_sql()
  • line 1940 of /lib/dml/moodle_database.php: call to moodle_database->record_exists_sql()
  • line 310 of /user/editadvanced_form.php: call to moodle_database->record_exists_select()
  • line 615 of /lib/formslib.php: call to user_editadvanced_form->validation()
  • line 551 of /lib/formslib.php: call to moodleform->validate_defined_fields()
  • line 661 of /lib/formslib.php: call to moodleform->is_validated()
  • line 171 of /user/editadvanced.php: call to moodleform->get_data()

Mittelwert:  -
Als Antwort auf Oliver Bay

Re: Error reading from Database

von Visvanath Ratnaweera -
Nutzerbild von Besonders aktive Moodler Nutzerbild von Translators
Site administration > Server > Environment sollte zeigen wie man das löst. Ganz nach unten scrollen!
Als Antwort auf Visvanath Ratnaweera

Re: Error reading from Database

von Oliver Bay -
Vielen Dank für die Antwort. Ganz unten gab es nur einen Hinweis auf die slash arguments, was in diesem Fall nicht nützlich war.
Ich habe im englischen Forum einige Recherchen durchgeführt. Das Problem gibt es wohl öfter. Die Lösung war dann folgende:
- Ich habe in der PHP Datenbank den char set von "utf8mb4_unicode_ci" auf "utf8_bin" umgestellt und
- das gleiche in der config.php Datei vorgenommen.
Jetzt funktioniert alles ohne Fehler.
Warum das eine Fehlerbehebung ist, kann ich nicht erklären. Ich habe nur das gemacht, was ich gelesen habe. Vielleicht hilft es bei dem gleichen Problem noch jemandem.

Viele Grüße
Oliver