I use Moodle 3.10 and Mariadb 10.6.8 and PHP 8.1.6. Ubuntu Server 20.04.
I get the following error message when I try to create a user:
SELECT 'x' FROM mdl_user WHERE LOWER(email) COLLATE utf8mb4_bin = LOWER(?) AND mnethostid = ? AND id <> ? LIMIT 0, 1
[array (
0 => 'anouk.albrecht@adbk-nuernberg.de',
1 => '1',
2 => -1,
)]
Error code: dmlreadexception
- 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 2002 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 1987 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()
[client]
default-character-set=utf8mb4
[mysqld]
character-set-server=utf8mb4
collation-server=utf8mb4_general_ci
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8mb4 |
| character_set_connection | utf8mb4 |
| character_set_database | utf8mb4 |
| character_set_filesystem | binary |
| character_set_results | utf8mb4 |
| character_set_server | utf8mb4 |
| character_set_system | utf8mb3 |
| character_sets_dir | /usr/share/mysql/charsets/ |
| collation_connection | utf8mb4_general_ci |
| collation_database | utf8mb4_unicode_ci |
| collation_server | utf8mb4_unicode_ci |
+--------------------------+----------------------------+
But I also get the following error:
#0 /srv/www/moodle/lib/navigationlib.php(897): default_error_handler()
#1 /srv/www/moodle/lib/setup.php(610): require_once('...')
#2 /srv/www/moodle/config.php(28): require_once('...')
#3 /srv/www/moodle/admin/cli/mysql_collation.php(27): require('...')
#4 {main} in /srv/www/moodle/lib/navigationlib.php on line 897
PHP Stack trace:
PHP 1. {main}() /srv/www/moodle/admin/cli/mysql_collation.php:0
PHP 2. require() /srv/www/moodle/admin/cli/mysql_collation.php:27
PHP 3. require_once() /srv/www/moodle/config.php:28
PHP 4. require_once() /srv/www/moodle/lib/setup.php:610