Bug Fix: Message links (from notifications, etc.) go to wrong postThis was a very odd bug.
When Werewolf voting bugged out (you get the white screen), the forums weren't updating topic stats because the code that connects to the Werewolf system to count the vote was placed before the code that updated the topic stats. You would think this wouldn't impact viewing a topic, but it turns out that the forum uses the stat for number of replies to calculate which page a post should be on when you're going to a specific post. If that stat doesn't update that stat, then it throws the matching off. In this case, I found there were actually 10 more replies than the stat was showing. When I updated the stat from 296 to 306, the links started working correctly.
Even odder is that the forum only looks for posts up to the number of posts indicated in the stat. If the stat is less than the actual number of posts made, it doesn't show the amount of posts that's mismatched in the
middle of the topic. This means that some posts would always be missing, but which ones were missing would shift as more posts were made. This may account for the missing posts that people have reported, and why in some cases they've shown up later, but I'll wait for confirmation from people affected by it before I declare that bug fixed. Regardless, when I updated the stat, the 10 missing posts also started appearing.
Interestingly enough, this is a variation of the same bug that afflicted Jurassic Park (in the book), in that their systems were only designed to count up to the number of dinosaurs they thought they had, so when the dinosaurs started breeding the system missed it.
This issue also affected WW25, but it apparently went unnoticed. I've updated the number of replies for that topic to reflect 21 posts it wasn't counting, fixing the link issue there and presumably also revealing 21 missing posts in the middle of the topic.
Ultimately, the fix was moving the code that connected to the Werewolf system for vote casting to the end of the post function so that everything else is done first. You'll still get the white screen when it errors out (such as if you vote for yourself atm), but it shouldn't have any other impact on the forums or the game.