The discussion revolves around the issue of using Arabic usernames in Discourse. f1r4s initially reports an error where the user profile template cannot be found due to the Arabic username, despite the username being set to English.
f1r4s asks for suggestions on applying unique characters to usernames in Arabic language or with unique UTF-8 encoding. JammyDodger suggests using unicode usernames, but f1r4s mentions that this is already enabled and the problem persists.
The error later changes to NoMethodError (undefined method 'url' for nil:NilClass) and f1r4s believes the issue is with the badge section. f1r4s attempts to run the command Discourse.system_user.create_user_profile but faces a duplicate key value error.
cocococosti points out that the create_user_profile method is meant to be run automatically by Discourse after a user is created and suggests that the issue might be related to missing badge images. f1r4s confirms that the issue is only with badge images and tries running the commands rake uploads:clean_up and rake posts:rebake but the issue remains.
I have strange issue with username, my board is using RTL and unique language for Arabic keywords..
The username is set to English words, but when I check the logs it’s show me that the user profile template cannot found… Because it’s in Arabic keywords ..
When I check the username to change it’s set to English, but in error it’s show me Arabic keyword..
Why do you believe so? I don’t think the create_user_profile method is meant to be run manually, is run by Discourse after a user is created discourse/app/models/user.rb at main · discourse/discourse · GitHub
That is why you get the duplicate key value error, because you are trying to create user profiles that already exist.
I tried to replicate this error by creating a user account with username دعم_المجتمع and I also tested it with an account with an English username, both had the interface language set to Arabic, and it works fine.
I don’t think this issue is related to the language or templates anymore, but to the badges missing images, as you pointed out here Badge image missing issue