Advertisement:

Author Topic: Odd Behavior When Merging Topics.  (Read 5203 times)

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Odd Behavior When Merging Topics.
« on: March 05, 2015, 06:06:30 AM »
I noticed this earlier on previous 2.1 test sites, but on those sites I had added some mods, and messed around with things a bit so I didn't really think too much about it. Anyway, I just installed the latest version of 2.1 (from last night), it's a completely clean install, and the same issue is happening.

Basically when I merge a topic into another topic, then delete the redirect topic[Merged]; all topics in that category disappear. (2 images below may help explain it better)

Image 1 shows  that there are topics, but when I click on the category, I get a no messages notice. (image 2)





The only way I'm able to see any older topics posted again is if I start another new topic. Once I do, then all the other topics are visible again. The other odd thing though is that the [Merged] Topic now shows in the topic list, but there is now no way for me to be able to delete it. When I do try to open that merged topic, I get an error stating "The topic or board you are looking for appears to be either missing or off limits to you."

As an admin, how is that topic off limits to me- as if it is because the topic was deleted, why is it still listed in the topic list (image 3 below)



Now if I decide to uncheck the " Post a redirection topic." when merging the posts, I get the same "no messages" notice when I go back to the the list of topics in that category. In order to see the list of topics, I have to go ahead and start yet another new topic in that category.

However, now that I have done that and all topics are viewable again; the topic that now has the merged other topic in it does not show on the topic list that new replies have been added. For example; the image below has the merged topic in it which should bump the replies to 1, yet it shows 0 replies.



I've tried different levels of caching, and even emptied out the file cache- but neither made a difference.

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,759
  • Gender: Male
Re: Odd Behavior When Merging Topics.
« Reply #1 on: March 05, 2015, 06:31:43 AM »
That's probably caused by a wrong count of topics inside the board.

Try to "Recount all forum totals and statistics" (Maintenance). When a topic has a record of 0 posts (first image), nothing is fetched. In your second to last image, if you go back to BoardIndex, you should probably see "1 topic".

Anyway, it seems an issue because the count shouldn't really go out of sync. I'm trying this as well.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: Odd Behavior When Merging Topics.
« Reply #2 on: March 05, 2015, 06:55:11 AM »
Thanks Margarett- Recounting all forum totals and statistics does indeed show the correct amount of replies in that topic now.

Another thing I just noticed as well; when I merge a topic, leave the redirection topic checked, and then go back to the list of topics- I see the topic that has all the merged posts in it, as well as the other redirect topic [merged]name of old topic.

When I go to delete the topic that says merged, it actually deletes the topic that has all the merged posts in it- and not the redirected notice topic- that's the topic that now becomes undeletable after I supposedly deleted the redirected notice topic.

lol, I'm sleepy...did that make sense?

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,602
Re: Odd Behavior When Merging Topics.
« Reply #3 on: March 05, 2015, 07:00:35 AM »
you do have the option to not post the redirection topic when you merge topics. there is a scheduled task to auto delete the redirection topics, there is no need to manually delete the redirection topic. also since the redirection topic automatically redirects to the new merged topic it somewhat makes sense that you cant easily delete the redirection topic.

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,759
  • Gender: Male
Re: Odd Behavior When Merging Topics.
« Reply #4 on: March 05, 2015, 07:05:24 AM »
@br360, you are correct. I will see if I can reproduce it and we can discuss it. If we confirm it to be an issue, we track it in GH

@Illori: the option to remove the topic is there :P you should be able to use it ehehehe. And that scheduled task might even be disabled so I think that this is a valid issue (if we can confirm and reproduce it)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,602
Re: Odd Behavior When Merging Topics.
« Reply #5 on: March 05, 2015, 07:14:28 AM »
right now i can only access my 2.1 install via my phone.... on my phone i cant view the redirection topic as it redirections :P. the responsive theme does not have the quick moderation buttons on the message index... so i cant even attempt to delete the redirection topic.

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: Odd Behavior When Merging Topics.
« Reply #6 on: March 05, 2015, 03:14:05 PM »
I just ran the "Remove MOVED: redirection topics" task and it did not remove the merged topics that I can't delete.

And just to confirm- as I'm not sure if I explained it properly. lol-  I started two topics; "Topic 1" and then "Topic 2"

I then merge topic 2 into topic 1, and leave the redirect notice checked- and my list of topics looks like this-

[MERGED] topic2
Started by GXA

topic1
Started by GXA 

When that happens, Topic 1 now has both topics in it as it should-I can delete the redirected notice topic ( merged topic-topic 2) at this time as well- but when I delete that, it actually deletes topic 1 instead, and then locks itself so I can't open or delete the merged topic notification topic.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,602
Re: Odd Behavior When Merging Topics.
« Reply #7 on: March 05, 2015, 03:43:00 PM »
have you tried to run the maintenance task on topics to remove moved/merged topic notices?


i just created a new board, created 3 topics in the board with no replies to each topic. i went into 1 topic and merged it with another topic in that board. the count of posts and topics is, 4 posts, 1 topic. in the board there is 1 redirection topic, and 2 additional normal topics.

delete the merge redirection topic, now the board says i have 3 posts and 0 topics, i can view the board and the message index says i have 2 topics, 1 has 1 reply and the other has 0 replies. the count on the message index is correct.

i have SMF file based caching enabled, level 1.

i just disabled the cache and the total on the board index did not change. 0 topics and 3 posts, which is wrong.

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: Odd Behavior When Merging Topics.
« Reply #8 on: March 05, 2015, 04:11:56 PM »
Yes, I did run the maintenance task, and the merged notification topics are still there.

Have you tried merging a topic (leave the "Post a redirection topic" checked), then deleting the [merged] topic notification in the topic list? If you do, can you see if actually deletes the topic the new one was merged into; like is happening with me?

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,602
Re: Odd Behavior When Merging Topics.
« Reply #9 on: March 05, 2015, 05:30:33 PM »
i did delete the merge redirection topic in my test above. it did not delete any other topic then the one i asked to be deleted.

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: Odd Behavior When Merging Topics.
« Reply #10 on: March 05, 2015, 05:41:01 PM »
Hmmm, ok. I have no idea why then when I delete the [merge] topic, it actually deletes the topic that everything was merged into instead.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,602
Re: Odd Behavior When Merging Topics.
« Reply #11 on: March 06, 2015, 07:28:33 AM »
after letting things site for a while... now the board that shows 3 posts and 0 topics on the board index, shows nothing in the message view at all.

ran recount forum totals.... now the board shows 2 topics and 3 posts like it should and the topics within can be viewed on the message index.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,602
Re: Odd Behavior When Merging Topics.
« Reply #12 on: March 08, 2015, 07:11:18 AM »

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: Odd Behavior When Merging Topics.
« Reply #13 on: March 09, 2015, 12:11:58 AM »
Thanks Illori.