Skip to:
Content
Pages
Categories
Search
Top
Bottom

Topics and Replies not showing after import


  • malinky
    Participant

    @malinky

    Hi all,
    I’ve seen this issue in the forum but I haven’t found a solution that works yet.

    I have exported and imported my forum, topics, replies, and users using the WP import / export functionality. Everything appears in the admin but only the forums appear on the site…not the topics and replies.

    If I manually update a topic in the admin, it appears on the site.

    All of the replies say “mismatch” under the Forum column…even the ones that have a Forum listed in the same column.

    I have tried switching to the TwentyTwenty theme but this didn’t fix it. I also tried the repairs in the forum tools but that didn’t work either. And also tried the permalink refresh that someone suggested. No luck.

    WP version 5.4.2
    bbPress version 2.6.5
    Theme Beaver Builder
    Site link https://dev.karebou.com/forums

Viewing 25 replies - 1 through 25 (of 25 total)

  • Robin W
    Moderator

    @robin-w

    ok, can you go to

    dashboard>topics>all topics and look at edit for any topic – does it show a forum ?


    malinky
    Participant

    @malinky

    Yes, it shows the forums associated with each topic.


    Robin W
    Moderator

    @robin-w

    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.


    malinky
    Participant

    @malinky

    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.


    Robin W
    Moderator

    @robin-w

    ok, that should have worked for replies as well – let me take another look at the code


    Robin W
    Moderator

    @robin-w

    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


    malinky
    Participant

    @malinky

    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.


    Robin W
    Moderator

    @robin-w

    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.


    malinky
    Participant

    @malinky

    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.


    Robin W
    Moderator

    @robin-w

    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?


    malinky
    Participant

    @malinky

    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.


    Robin W
    Moderator

    @robin-w

    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 ?


    malinky
    Participant

    @malinky

    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.


    Robin W
    Moderator

    @robin-w

    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


    malinky
    Participant

    @malinky

    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.


    Robin W
    Moderator

    @robin-w

    ok, thanks for letting me know


    xprojectsx
    Participant

    @xprojectsx

    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.


    xprojectsx
    Participant

    @xprojectsx

    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.


    xprojectsx
    Participant

    @xprojectsx

    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


    Robin W
    Moderator

    @robin-w

    that might work, but so should the fix forum post parent plugin above – not clear if you had tried that ?


    xprojectsx
    Participant

    @xprojectsx

    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.


    Robin W
    Moderator

    @robin-w

    ok


    aurelia1986
    Participant

    @aurelia1986

    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


    Robin W
    Moderator

    @robin-w

    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?


    bethgee
    Participant

    @bethgee

    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?!

Viewing 25 replies - 1 through 25 (of 25 total)
  • You must be logged in to reply to this topic.
Skip to toolbar