I'm a Moodle administrator that I recently changed the site's operating system from Centos to Ubuntu and also upgraded the version of Moodle from 3.9 to 3.11.2. Everything was going well until I wanted to change the email address of my profile (or that of other users), that I got an "error reading from database" error message. (Error message) Therefore, the Moodle does not allow changing the email address.
I am asking for guidance and help from users who have experience in solving this problem.
Thanks a lot.