How to change wording on error messages shown to user?

AI-generated summary

Zee wants to modify the error message “An error occurred: You are not permitted to view the requested resource” that appears when users try to post without choosing a category. The goal is to direct users to choose a category.

Don suggested setting up a pre-filled category using the default composer category site setting. However, Zee replied that this is not the desired solution.

Arkshine pointed out that the error message can be changed in Admin → Customize → Text. Zee confirmed that the desired error message should alert users to choose a category, but the current error message is generic and confusing.

Arkshine offered to help investigate the issue if Zee shares the forum URL. Don suggested that the issue might be related to a trust level restricted default composer category, and provided a link to a relevant topic.

Lilly recommended ensuring that the Discourse version is up-to-date (3.1.1 or 3.2.0beta2-dev).

Forexample
Some of my users get an error message saying “An error occurred: You are not permitted to view the requested resource.”
Whenever they try to post someonthing without choosing any category,
so i want to direct them to choose a category.
Is there a wayt o modify this message ??

Hello :waving_hand:

It’s possible to setup a prefilled category. When users open composer this category will be selected by default.

default composer category site setting.

Hi Don
thanks for quick response but i want to display a different message

This is a generic error message that can be used in other contexts. That’s probably not what you want. (Message can be changed here: Admin → Customize → Text)

I’m not sure why you would see this error here.
If you don’t provide a category or try to validate, you should see that :thinking: :


any body have any solution the whole idea behind this is to alert my users to choose a category and the screen shot you showed above is perfect example @Arkshine.

But my forum is giving geberal irrelevent error which is confusing for users

Would it be okay to share your forum URL? You can also send it in a PM if you prefer.
I can’t determine why you are experiencing permission (or similar) issues in this context. :thinking:

It’s pretty old topic but maybe this is the case :thinking:

If yes and you seted up a trust level restricted default composer category than remove that category from the setting. After that it will require users to select category, as @Arkshine showed above.

Hi @Zee :wave: Also, make sure you are on the latest stable or beta versions of Discourse 3.1.1 or 3.2.0beta2-dev.