Weird behavior of Articles forum

In the past week or so, a couple of malfunctions in the Articles forum have apparently been repaired, but one remains: Pages 59-71 are blank, and page 72 has only one thread on it.

If the thread on page 72 can be moved to the bottom of page 58, and then pages 59-72 deleted, it would improve the look and feel a lot. Plus, we could then find out if there is still some kind of off-by-one error that will eventually, over time, once again strand the final (oldest) thread onto a page by itself, and once again leave a gap between this thread and the newer threads.

Bill Smythe

The recent problems were the result of garbage records in the database, how they got there is still being explored. That it occurred twice is a matter of concern.

The problem with the index pages from 59 to 71 is most likely a startup issue with that forum. (It was not possible to comment on articles at first.)

This has exposed a weakness in either phpbb3 or the custom modification to that forum to skip the initial dummy entry that is created for each new CLO article. The code probably never expected there to be 20 articles in a row with no comments in them. We do not plan to try to correct this at this time.

Maybe, but there is another possibility:

Every time someone posts a comment, the entire Articles forum gets re-sorted, in order of comment posting date, most recent first. Articles without comments probably are treated as though they have a posting date of zero. So, in the sort, they’ll end up at the end of the list.

Whatever the problem is, I just had a brainstorm. Instead of a dummy record for each article, why not make a real record for each article. It could say something like, “To view this article, click on the link above. To post a comment, click on Post Your Own Comment below.” This real record could remain visible (as the top record) even after one or more comments have been submitted.

Bingo – no more discrepancies between total number of records and apparent number of records. In addition, user friendliness would be improved, because:

(a) Forum viewers would be made aware of the article, even if there are no comments as yet. This would be a real boon to goofballs such as myself, who never bother to view CLO the “regular” way. (Have you noticed that I have never made the first comment on any article? That’s because I didn’t know it was there!)

(b) At present, some potential posters may not even be aware of how to view the article. (I must admit that, when the Articles forum was first established, I was in that boat myself.) The new “real record” could easily include these instructions, as suggested above.

As QuickDraw McGraw once said, what do you think of that idea, Baba Looey? Yes, I know, Baba Looey responded “I thin’ we should forget the whole thin’.” – but maybe this time QuickDraw has a good idea. :slight_smile:

Bill Smythe

Update – I see that the stray article formerly on page 72 now appears on page 58. But blank pages 59-72 are still there.

Bill Smythe

When my response to a post was going to be the first one on the third page I received a message saying that I was the first one to post on the topic and asking if I really wanted to.

I answered yes and it went through fine, so it was only a trivial annoyance to me.

That’s almost certainly that off-by-one error again, caused by the dummy (invisible) post at the top of the first page.

Likewise, if you choose “first unread post” when there are 15 (real) posts, and the 15th is the first unread, it will think it’s the 16th and go to page 2, which will be blank.

I suppose the same would happen if there are 30 real posts, with the 30th being the first unread.

Oh well.

Bill Smythe