ok, can you go to
dashboard>topics>all topics and look at edit for any topic – does it show a forum ?
Yes, it shows the forums associated with each topic.
I think I might know the issue.
can you
1. backup your site or have the ability to go back to a previous version
2. download this plugin
Fix forum
3. install and activate
4. create a page called whatever you like, and put the shortcode
[fix-topics]
in it
5. view the page, select ‘run’ and click submit
your topics and replies should now be fixed.
Thanks Robin, I’m halfway there! The topics are now showing but the replies still aren’t.
I’ve checked the IDs of a few replies and they’re mapped to the correct topics. If I manually update the reply, it shows up on the site.
ok, that should have worked for replies as well – let me take another look at the code
can you try running
dashboard>tools>forums>repair forums and run the first one – Recalculate parent topic for each reply
and let me know if that now fixes
I ran that but it didn’t fix the issue.
Strangely, the Replies page in the admin says there are over 19,000 replies but only two are showing up now. The others are no longer visible.
Is it possible to run the code again but just for the replies? Maybe it was a memory limit issue. I’ve just upped the max_memory_limit to 256M.
ok, I’ve re-written a bit just in case
can you
BEFORE DLOING THIS backup your site or have the ability to go back to a previous version
1.deactivate and delete the existing plugin
2. download this plugin
fix forum import post parent
3. install and activate
4. create a page called whatever you like, and put the shortcode
[fix-import]
in it
5. view the page – you should be able to see how many topics have blank post_parent before running.
6. If you are happy – run this.
Thanks for this Robin but unfortunately it didn’t work.
After I ran the code the message was…
Topics fixed…
Replies fixed…
All done…
Total topics:2530
Topics with no post_parent:33
Total replies: 19274
Replies with no post_parent:19273
I ran the code twice (removing it and following the same process again), but the result was the same.
Thanks,
you can freely re-run this programme without needing to remove it until I do another version.
ok, can you just confirm that if you go into a reply and click save, the reply now shows , and if you look at the numbers
replies with no parent goes down to 19272?
In the admin, the replies page is blank. Nothing is showing up. I upped the memory_limit and max_memory_limit to 512M but no luck.
ok, so you said earlier
All of the replies say “mismatch” under the Forum column…even the ones that have a Forum listed in the same column.
where were you seeing this ?
Yes I did, but after running the php code snipped, the replies page is blank. Sometimes I get a Server is not available message when going to replies, but not every time.
ok, we may need to go back to a previous version, but first let’s try this.
can you as per previous deactivate and delete the plugin and download a new version
fix forum import post parent
when you access the page, you will see a new line about post meta
you don’t need to run this version
I just need to know what the lines on replies now say
Sorry for the delay in replying. In the end my client has decided to ditch the forum.
Thanks so much for your help. I really appreciate all of your ideas and time spent on this one.
ok, thanks for letting me know
Hi Robin,
I was delighted to find this thread. I’m actually having this same problem. I could see the topics in the Admin>Topics and the topics showed the correct forum. But on the front end nothing. I ran your plugin and it seemed to execute but but I did not get any response like “topic fixed” To make matters worse after I ran the Tools>Forums>repair the topics no longer show the correct forum in the Admin now it just shows a – under the Forum heading.
to answer the last question that you gave: in mine
Replies with no post_parent: 13001
Replies with no parent in post meta: 0
Help me, Obi-Wan Kenobi. You're my only hope.
Still stuck on this issue. Pretty frustrating. I found this from two years ago. Not the exact scenario but sounds similar enough and trying to see if this will help.
Importer major issue
that might work, but so should the fix forum post parent plugin above – not clear if you had tried that ?
Thanks Robin. I did try it with no luck. I’ve completely reset my wp install and starting from scratch with bbpress as the first plugin. I will try data import again with a small test sample and try your plugin again.
Hi Robin,
I’m glad to find this topic because I have the exact same problem.
I can see the topics in Admin>Topics and Replies in Admin>Replies but in the front end only forums appears without any topics inside
I run your plugin fix “forum import post parent”
It said :
Topics fixed…
Replies fixed…
All done….
Total topics: 766
Topics with no post_parent: 766
Topics with no parent in post meta: 766
Total replies: 12071
Replies with no post_parent: 12071
Replies with no parent in post meta: 12071
but nothing change.
I run all the repair forum in the dashboard>Tools and still nothing change
I also try the permalink refresh but again, it’s not working
Can you help me ? I don’t know what to do
Thank you
ok, that tells me that your import failed to pick up which forum each topic belongs to and which topic each reply belonged to.
What are you importing from?
I am having this same issue!! The replies are showing with nothing and none of the Topics or Forums are connected… I tried running the plugin above, but it does nothing.
Any other ideas?!