MyBB Community Forums

Full Version: Threaded Mode buggy after SMF2 merge
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I am running MyBB 1.6.2 and used the latest Merge version to merge an SMF2 RC3 install, which went smoothly. I am using the default MyBB theme with zero mods installed.

I was trying out MyBB's Threaded Mode to view single messages, and then I noticed something strange about the "Messages In This Thread" box under the single message. On some messages the box is empty, on some it has only one message listed, and on others all messages are listed like they should. Note that there are several messages in each of these threads, so there should always be more than one message listed in that box.

This is a bug, right?
Have you run the Recount & Rebuild tools in the ACP?
Even if yes, can you try running them again in this order:
Forums
Threads
User Posts
Statistics
Attachment Thumbs

Then check it again. If that doesn't clear it up, then I'll pass you on to the Support Team, as I don't have any experience with MyBB's Threaded Mode.
I re-ran the tools in the order you mentioned, but it did not help unfortunately.
Ok, I'll get someone from Support in here then.
What's the URL of your MyBB forum?
Actually I am testing this locally (I will convert a large, live SMF forum to MyBB in the near future, but not before I'm done with further testing), but I will upload a copy to my webserver shortly so you can test it for yourself. I will report back here soon.
Alright, I uploaded a live version for you to test.

Here is an example of a thread with an empty "Messages In This Thread" box: http://www.cinema-extreme.com/mybbtest/s...hp?tid=757

Here is an example of a thread with only one message listed in the "Messages In This Thread" box, while there should be more: http://www.cinema-extreme.com/mybbtest/s...hp?tid=513

Remember to click on "Threaded Mode" for each of those threads. Also, I'll mention again that those threads and messages where imported from SMF2 RC3. No mods are running, and the theme is completely unmodified.
Could you run these 2 queries in phpmyadmin and show us the output?

First one:
SELECT pid,fid,tid,uid,replyto,subject,dateline FROM `mybb_posts` where `tid` = 513

Second one:
SELECT pid,fid,tid,uid,replyto,subject,dateline FROM `mybb_posts` where `tid` = 757

Change mybb_ with whatever prefix you have set.
I hope this is clear enough. I cut off alot of the results:

SQL query: SELECT pid,fid,tid,uid,replyto,subject,dateline FROM mybb_posts where tid = 757 LIMIT 0, 30 ;
Rows: 30
pid fid tid uid replyto subject dateline
16630 5 757 2 7490 ANTICHRIST (Lars von Trier, 2009) 1239704248
16634 5 757 2 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1239726086
16844 5 757 2 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1240920428
17095 5 757 2 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1242898943
19423 5 757 2 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1257409003
19432 5 757 2 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1257419155
19475 5 757 2 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1257495948
19477 5 757 2 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1257496621
16636 5 757 18 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1239728515
18511 5 757 18 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1253537711
19327 5 757 18 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1256996954
19430 5 757 18 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1257417741
16632 5 757 23 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1239717105
17092 5 757 23 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1242851376
18510 5 757 23 7490 Re: ANTICHRIST (Lars von Trier, 2009) 1253525079


SQL query: SELECT pid,fid,tid,uid,replyto,subject,dateline FROM mybb_posts where tid = 513 LIMIT 0, 30 ;
Rows: 30
pid fid tid uid replyto subject dateline
12109 5 513 2 4833 Re: Spaghetti Westerns 1204318531
12111 5 513 2 4833 Re: Spaghetti Westerns 1204323803
16077 5 513 2 4833 Re: Spaghetti Westerns 1235647152
17605 5 513 2 4833 Re: Spaghetti Westerns 1247301553
17934 5 513 2 4833 Re: Spaghetti Westerns 1249223124
17940 5 513 2 4833 Re: Spaghetti Westerns 1249316953
18388 5 513 2 4833 Re: Spaghetti Westerns 1252909703
18748 5 513 2 4833 Re: Spaghetti Westerns 1254745717
11616 5 513 23 4833 Re: Spaghetti Westerns 1197844501
11618 5 513 23 4833 Re: Spaghetti Westerns 1197884130
17984 5 513 23 4833 Re: Spaghetti Westerns 1249773175
12370 5 513 65 4833 Re: Spaghetti Westerns 1205357910
12768 5 513 65 4833 Re: Spaghetti Westerns 1207834760
12769 5 513 65 4833 Re: Spaghetti Westerns 1207835474
16064 5 513 65 4833 Re: Spaghetti Westerns 1235548786
Doing some more of those queries, I noticed that for topics where the Threaded Mode works properly, the "replyto" field value is "0", and with topics that don't work correctly, that field is filled with another value ("7490" for example).
Well there is your problem. The replyto field is not being set to the correct value. Why this is happening I can not say. I haven't used the merge system much so not sure if that could be the cause, however, I have not heard of this problem before so it could very well be something else.

You could set the replyto value to 0 for the posts in the threads that are not behaving properly but then doing so will set all the replies of the thread to the first post in the threaded view, probably better than having the replys not show at all.
The firstpost only needs the replyto set to 0, and it should have been by the merge system. All other posts in the thread should have their replyto set to the firstpost.

If this is the case and the threaded mode is still acting up, then the threaded mode is borked.
Pages: 1 2