News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Strange bug in 2.1 RC3 of skipping posts in threads

Started by PoML, October 29, 2020, 09:57:21 AM

Previous topic - Next topic

PoML

Hi!

I have received reports from some users that they do not find all posts when browsing the forum after the upgrade to 2.1 RC3 and TP 2.0.0...

At first, I suspected a local cache-related issue, then I had the same issue when replying to a post.
I had a thread of 2 posts, but did only view one.

It seems to be related to the "Look and Layout" setting "Show most recent posts at the top in topic view.".
If I untick that option, all posts are displayed. Also, the problem is not 100% repeatable, so there are ways to suddenly get to the missing posts by clicking on new posts instead of going into the forum etc.

If a post is skipped, the post number still seems to update correctly, so it says that you are reading post #2 out of 2 even though there are no #1 to see...  Language or Theme settings seems not to impact the error - I have changed between English / Norwegian and Standard / Potato theme without effect if a post does not view. Untick the most recent option, and voila - it is there.

Also, maybe related, users that experience this also seems to trigger a critical error in the error log:

Wrong value type sent to the database. Integer expected. (page_id)
Function: Display
https://smbergen.org/medlemmer/forum/index.php?topic=3300.0
/home/35/w313123/www/medlemmer/forum/Sources/Display.php (Line 1028)

I have had a look at Display.php, and the code looks correct.


Any idea what happens?

SychO

It's a known bug, the devs are working on a fix for one of the next releases.
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

PoML

Quote from: SychO on October 29, 2020, 10:43:51 AM
It's a known bug, the devs are working on a fix for one of the next releases.

Thanks for the quick response. I won't have to file a new bug report then :-)

mantu2


albertlast


slinke

I am having this same problem. When "Show most recent posts at the top in topic view" is selected, the replies do not show up correctly when there are multiple pages of replies. I am also seeing errors like

Wrong value type sent to the database. Integer expected. (page_id)
Function: Display

ozp

If it is RC3 downloaded from SMF it will have this bug.

If you have downloaded the latest code from github, this issue should be fixed.

slinke

Quote from: ozp on June 02, 2021, 01:41:22 AM
If it is RC3 downloaded from SMF it will have this bug.

If you have downloaded the latest code from github, this issue should be fixed.

Thank you.

Advertisement: