hallo zusammen,
habe gerade ein Problem, für das ich keine Lösung finde. Wenn ich einen neuen Nutzer anlegen möchte, kommt wegen der E-Mailadresse die nachstehende Fehlermeldung. Ich habe die komplette Datenbank in der empfohlenen Kollation utf8mb4_unicode_ci. Trotzdem kommt eine Fehlermeldung bzgl. utf8mb4_bin und utf8mb3 ?
Was kann / muss ich machen, um den Fehler abzustellen? In der config.php ist (wie im Artikel MySQL Unicode Unterstützung beschrieben) die globale Variable $CFG->dboptions bereits richtig auf utf8mb4_unicode_ci eingestellt. Wenn ich moodle damit starten will, kann nicht einmal mehr die Anmeldeseite aufgerufen werden. Sobald ich die vormalige config.php (ohne den Eintrag) aktiviere, kann ich mich als admin wieder anmelden, allerdings kommt dann der Fehler, den ich jetzt hier mal poste ... evtl. kann mir ja jemand helfen, der das Problem kennt / ebenfalls hatte ... herzlichen Dank im Voraus! Horst
Fehler beim Lesen der Datenbank
Weitere Informationen über diesen Fehler
Debug-Info: COLLATION 'utf8mb4_bin' is not valid for CHARACTER SET 'utf8mb3'
SELECT 'x' FROM mdl_user WHERE LOWER(email) COLLATE utf8mb4_bin = LOWER(?) AND mnethostid = ? AND id <> ? LIMIT 0, 1
[array (
0 => 'xx@xx.de', (E-Mail-Adresse für diesen Post anonymisiert)
1 => '1',
2 => -1,
)]
Error code: dmlreadexception×Systemnachricht schließen
Stack trace:
- line 497 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
- line 1303 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
- line 2033 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 2018 of /lib/dml/moodle_database.php: call to moodle_database->record_exists_sql()
- line 321 of /user/editadvanced_form.php: call to moodle_database->record_exists_select()
- line 674 of /lib/formslib.php: call to user_editadvanced_form->validation()
- line 610 of /lib/formslib.php: call to moodleform->validate_defined_fields()
- line 720 of /lib/formslib.php: call to moodleform->is_validated()
- line 176 of /user/editadvanced.php: call to moodleform->get_data()