I have two duplicate posted topics, each titled the same as the category they’re in, and each with a -1 reply count. If clicked, neither topic has content, and there isn’t a wrench to delete the topic.
Two questions: (1) how do I delete these topics? (2) how did this happen? I’d like to avoid this happening in the future.
Thank you in advance!
Joshua_Kogan:
(2) how did this happen?
How did you create these two topics? By any chance, did they show up after a migration of some sort? Are you running any unofficial plugins?
Does this happen for all new topics you create or just these two?
$ rails c
> Topic.find(id).destroy
Where id
is the topic_id in your browser url.
4 Likes
rishabh:
How did you create these two topics? By any chance, did they show up after a migration of some sort? Are you running any unofficial plugins?
I have no idea how these were created, actually. No migration, and yes, (several) unofficial plugins.
Does this happen for all new topics you create or just these two?
Just these two.
I will try your method of destroying g the topics. Thank you!
You’re confident these are not the required “About {category}” category description topics? Deleting those will cause bad things to happen, so I want to make sure.
3 Likes
The “about” topic is there:
Can I simply destroy the category? I’m not invested in it, and it would be easy to set it back up.
I see -1 reply counts when a topic that was in the review queue gets deleted eg. “?status=deleted”
AFAIK non-staff members would not see any -1 counts so I’ve not considered it to be a high priority concern.
Related, "1"s can go to "0"s
4 Likes
Dax
(Daniela)
August 19, 2019, 4:42pm
#8
@Joshua_Kogan take a look here
I am trying to remove some categories in favor of using tags, but I end up with one system created topic that I cannot delete (it is Technical in the screenshot, notice the -1 replies). If I try to visit this topic the page freezes and I have to close the tab and start over. Any idea how to delete this, possibly in rails?
[image]
you should be able to solve the issue.
4 Likes
Thank you, @Dax . That was a really big help!
3 Likes