Error when trying to create an event

When trying to create an event, I get the following error in my logs:
on(:post_created) handler error : ActiveRecord::RecordInvalid : Validation failed: An event accepts only group names.
events_log

Creating the event:

Topic after thread creation:

This happens to me, when I try to create an event via the “upcoming events” calendar, and also if I try it via normal topic creation.

I could not find anything about it, so I assume it’s a bug?
Does anybody else have this problem?

Discourse version: 2026.6.0-latest

Thanks,
newbit1337

1 Like

Very odd! I can’t seem to reproduce this error… that error message points to an invalid group, but I don’t see any groups in your BBCode and status="public" should allow everyone anyway…

Can you share the raw version of the broken post? You can find it by visiting /raw/<topic_id>/<post_number> (so for example, this Meta post would be https://meta.discourse.org/raw/405428/1

1 Like

Thanks for trying @awesomerobot :hand_with_index_finger_and_thumb_crossed: !
The raw post data did not give me any clues, but I found more details in the log, so I fed them into an AI.
The response was very helpful, and might be something for you to look into.

I do have a user called “trust_level_0” for testing purposes and this might be an issue.
After changing status to status="standalone" the event appeared. :partying_face:

Thanks again, hope this helps!
newbit1337

1 Like

hah yes, I think this is certainly the issue… thanks for mentioning that

it’s an edge case, but we can guard against it, I’ve just merged an update that will avoid the error in the future

4 Likes