神秘的“标签无效”消息

We have an “Open Source” plan site hosted on .discourse.group. Recently, a “Tags is invalid” message has been a problem for our users who are trying to post. I cannot quite figure out why this keeps happening, and how to solve it. I am looking for advice with this.

I fear that several new forum members may have been put off from posting by this, and we may never even have noticed. Considering that our forum is still quite new, this is a serious problem.


Our setup:

We have a “Usage” category. The intent is to require all posts in this category to have at least one tag from the language tag group. It may also have other tags, but at least one tag from the language group must always be present. This is because this is a support forum for a software library that has (rather divergent) bindings to several programming languages. Users often forget to mention which binding they are using. Their questions cannot be answered without knowing this.

Here’s the configuration for the “Usage” category:

The language tag group:


Illustration of the problem:

This is what happens if I try to create a new post. Strangely, if I then remove all tags, the post will go through (even though one tag should be required).

Sample post:

Error message:

1 个赞

:warning:: wild guess
Would it be possible that the “c” tag somehow conflicts with the “c” route for category?

2 个赞

Hello,

I have same symptoms but you can edit tags with title editing which is works great to me.

1 个赞

I can not reproduce it at this moment, and I have not idea why. Yet this problem has been occurring for a number of weeks before I asked about it here. I am very confused.

Can someone from Discourse comment please?

1 个赞

I don’t understand what you mean by “you can edit tags with title editing”. Can you clarify?

Sorry my mistake I have the same issue when editing topic tags and not when create new one.

I mean when you edit title then you can add or remove tags and that’s works for me.

1 个赞

well, close enough :sweat_smile:

It might/should work after a rebuild :crossed_fingers:

5 个赞

I’m just surprised that it was even allowed to create the tag!

2 个赞

with 2.6.0.beta1 ( b9174c8e8a ), before the fix, I wasn’t able to create it (without any error message though, clicking on save on a tag group with “c” just doesn’t save the group, after a page refresh, “c” tag doesn’t appear).

You might try to repro the problem with “none” tag ?

1 个赞

Do you know when this fix will come to .discourse.group-hosted sites? I never paid much attention to releases as everything was conveniently managed and updated by Discourse themselves. :slight_smile:

1 个赞

Ah yes I overlooked that part :thinking: I don’t know about the update for hosted sites but in the mean time you can use “language C” or anything else and correct it to “C” as soon as the fix is deployed, https://your.domain/tag/your-tag click on “details” then “rename”
and may I add, for tipping my hat to the new gif component:

:slightly_smiling_face:

1 个赞

Your are probably right, maybe t̶h̶e̶ ̶T̶a̶g̶G̶r̶o̶u̶p̶ ̶c̶l̶a̶s̶s̶ ̶i̶n̶ ̶h̶t̶t̶p̶s̶:̶/̶/̶g̶i̶t̶h̶u̶b̶.̶c̶o̶m̶/̶d̶i̶s̶c̶o̶u̶r̶s̶e̶/̶d̶i̶s̶c̶o̶u̶r̶s̶e̶/̶b̶l̶o̶b̶/̶m̶a̶s̶t̶e̶r̶/̶a̶p̶p̶/̶m̶o̶d̶e̶l̶s̶/̶t̶a̶g̶_̶g̶r̶o̶u̶p̶.̶r̶b something could beneficiate of the validate :name_validator of the Tag class, but i don’t know… way above my paygrade :sweat_smile:

1 个赞

我在 我的 discourse 实例 上创建主题时,偶尔还会遇到此问题:

如果我删除大部分标签,创建就会成功。

之后,我可以编辑标题/标签,然后再次添加缺失的标签,这次不会出现错误消息。

此问题已存在数月/数年。我找不到规律,也许是在撰写初始帖子时尝试创建标签时发生的,但不确定。

更新 1: 我是网站的管理员,并使用此帐户撰写新帖子,因此我强烈认为这不是权限问题本身。

1 个赞