Can't submit post with multiple polls?

AI-generated summary

User BCHK reported an inability to submit posts containing multiple polls on beta 7, receiving repeated error messages. After testing various categories and isolating the issue, BCHK discovered that copying poll examples from the Discourse cheat sheet caused the failure, while removing them allowed the post to submit successfully BCHK. While davemaxwell suggested checking category behaviors, zogstrip suspected a recent Ember upgrade or a specific poll constraint. zogstrip confirmed the root cause: the system requires unique names for each poll, but the error was being swallowed. A fix for this issue was subsequently provided via a GitHub commit zogstrip.

I’m trying to post a message on how to create polls in my forum but I get repeated error messages no matter what Category I assign to the post.

Here is the error message I’m getting - and I can’t make the post. I’m running on beta 7 code (the one release before the release yesterday):

https://www.evernote.com/shard/s106/sh/7af5e07b-15ac-4702-9d4f-dcc02d02d718/2d6483ee30fac1e33721578b9043a9a0/deep/0/Schizophrenia%20Forums.png

Perhaps the issue is that I have three examples of the poll options in the body of the post?

Polls shouldn’t be a problem here. Maybe it’s related to our recent ember upgrade? (cc. @eviltrout)

Did you try changing the category to something else, then changing it back to the category you want? We’ve got an issue with moving topics, and the behavior seems to be exactly the same,

related topic: Admin/mods can post to "uncategorized" with "allow uncategorized topics" disabled - #5 by cpradio

YEs - many times. No luck.

I finally cut out the sample code that actually produced the three poll types and it posted ok.

I was copying and pasting the poll description information from here (the discourse cheat sheet)- and had put the first examples formated as “code” - and left the second three examples of “How they look” in the forum as they were. But then when that didn’t work, I cut out the “how they look” part - and it would post ok.

There was indeed an error with the polls (you need to give a unique name to the polls) but the error was swallowed. Here’s a fix :ant:

https://github.com/discourse/discourse/commit/d7b3f9bfe26466d821265a71cbde2612e0d75cde

3개의 좋아요