WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Importer
Broken, images are not linked to post, not all post are importet (34 posts)

  1. nimmolo
    Member
    Posted 2 years ago #

    Edit: I just read Esmi's post above, hope this provides some necessary info for your questions about how the attachment got multiple parents.

    Hi otto, no I didn't manually create the new attachment posts, and I didn't know there were duplicate attachment posts. I just wasn't surprised, because I do have images used in more than one place on the site.

    I use File Gallery plugin to pull in attachments from a post and re-use them in other galleries, say the gallery of a static page. I don't know how that's accomplished in the database by File Gallery. But it is often necessary to do on this site: for example something about a boat is reported in daily news, and one of the pictures goes into a "boat news" mega-gallery on the "boats" page.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    @Otto: Could this "multiple parenting" in the export file cause it to hang? I'm assuming the .xml file is parsed sequentially, yes?

  3. nimmolo
    Member
    Posted 2 years ago #

    Just remembered that (test2), the source site for the exported WXR, is itself the result of imported site content from the original development WP install, now defunct - and that I worked around this problem originally in a naive way that may have masked the duplicate attachment problem.

    Basically I copied the entire /uploads folder to the new install via FTP and imported only posts and pages, no media. It worked like a charm.

    I would love to know how to get rid of these duplicate attachments in the WXR file, however. Manually? Waiting for these uploads to fail is mind-numbing, isn't it?!

    Thanks for the continued interest and sorry I didn't remember this from the get-go.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 years ago #

    esmi: I have no idea how the code would handle it, but yes, I expect it would not handle it gracefully.

    nimmolo: I would recommend no longer using that plugin, since it's creating situations in the database that should not exist, and which are not supported. Multiple parents for attachments is invalid and will not work properly with all code out there.

    As for getting your import to work, well, you probably can't. Not if you have a broken database like this. Expect a lot of manual labor.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic