- 🇬🇧United Kingdom scott_euser
In case someone comes across this, I managed to reproduce this by:
- Install Drupal 10+ with a different locale than English like en-gb
- Uninstall the language module later
- Attempt to save user 1 for example
- Error "The value you selected is not a valid choice" is shown because uninstalling language/locale does not update user field data table to set all users back to 'en' (for example)
Solutions in that case:
- Re-enable language module and leave just single language, accepting it needs to be there
- Update user field data table with an update hook to reset all users back to 'en'
Fine to stay closed I think, just posting in case its helpful for anyone in the future stumbling across this.
- Status changed to Needs work
4 months ago 1:51am 28 August 2024 - 🇺🇸United States mlncn Minneapolis, MN, USA
This somehow happened to us on an up-to-date Drupal 10 site. I would say this is a bug report in that:
- It is possible to break your site in an important way (people cannot change their password or other things on their profile, and the administrator cannot either!) by installing and configuring, and uninstalling, all core modules. (Per scott_euser's excellent recreation.)
- The error message provides zero indication what the actual problem is. I was very lucky to find this issue.
Hi,
I am not able reproduce the issue in the Drupal 10.x and also 11.x.Steps Followed:
- Install Drupal with the different language English-british or other language in the installation.
- Uninstall the language module
- Tried to update the any user
- Able to save the user information in the edit page.
kindly let me know incase if i missing any steps for the reproduce.
- 🇮🇳India souvik_banerjee
I also had this issue while syncing content and configuration from one site to another. I recreated the contents after deleting them and it worked fine. Luckily I did not have many content, so it worked out.