When I attempt to access the "Nomination" phase of an election which has concluded, I get the "Oops! Something Bad Happened" page. This happens both on sites which I am a member of and on those of which I am not. I get the page both when navigating by direct link (e.g. https://rpg.stackexchange.com/election/6?tab=nomination) or when clicking on the tab from the main election page:

election phase tabs: Nomination, Primary, Election, with the nomination tab circled

From a (Discord) conversation with a CM, it seems that she could see the tab, but only when logged in. The other two tabs, "Primary" and "Election", work fine for me. I discovered the bug when attempting to read nomination comments for an old election I had stumbled across. Notably, since comments are only displayed within "Nomination", this means I am completely unable to access any election comments for old elections which weren't cancelled; such comments are often useful to understand a site's context at a certain point in time.

Per comments, this is also happening for several entire elections, e.g. Freelancing's two elections with candidates and Community Building's single one.

  • I'm very confident that this is due to a withdrawn nomination (more rarely, it may have been a withdrawn nomination by a now-deleted user). CM's (but not, to my knowledge, site moderators) can see those, which would allow the CM you were speaking with to see it when she was logged in.
    – Spevacus
    Commented Nov 24, 2021 at 3:06
  • 5
    Hrmph. Lame. I might be completely incorrect. Simply browsing the one and only CommunityBuilding.SE election throws a 500 server error. I don't believe they had a withdrawn nomination there. More interestingly, Sound Design had an election in which nobody nominated, and navigating to that election at all throws the error for me as well.
    – Spevacus
    Commented Nov 24, 2021 at 3:11
  • 2
    Reproduced. Worth noting that I can, however, view that tab on sites where I have a diamond. On sites that I don't I get an error.
    – Mithical
    Commented Nov 24, 2021 at 4:38
  • 1
    @Spevacus: Looks like that Community Building election was canceled (and the one candidate appointed). That Sound Design election was also canceled... I can access both while logged in.
    – V2Blast
    Commented Nov 24, 2021 at 4:46
  • The nomination tab is broken for every election, at least for every ended one. Just try going one-by-one on SO: stackoverflow.com/election/6?tab=nomination Commented Nov 24, 2021 at 9:24
  • 2
    Interestingly, the nomination pages still work for moderators, so it must be an access/privilege-level issue. Commented Nov 24, 2021 at 9:50
  • 2
    @Adam, should I be expecting an answer with juicy debugging deets? :)
    – bobble
    Commented Nov 24, 2021 at 18:06
  • 2
    @bobble Yes, I just got distracted :) The deets aren't as juicy as one might like, but I'll do what I can.
    – Adam Lear StaffMod
    Commented Nov 24, 2021 at 18:11

1 Answer 1


I finally got around to refactoring some of the election views to use a partial for the nomination menus instead of having the markup written out explicitly in three different places. And in the process, I ended up introducing a null reference exception for non-moderator users - it was when we look up pending flags on a nomination. Whoops. ¯\_(ツ)_/¯

The fix is out in production. Thanks for the report!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .