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 16 replies - 1 through 16 (of 16 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

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