WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Importer
Does not import images & file attachements (24 posts)

  1. J
    Member
    Posted 1 year ago #

    Hi,

    It seems that the plugin does not import any images including featured images on posts, custom post types or any other type of content (sliders etc')

    This is happening when importing individual types of content (like only posts for example). even when the box fo import files and attachments is checked.

    http://wordpress.org/extend/plugins/wordpress-importer/

  2. Jason Judge
    Member
    Posted 1 year ago #

    It will import the images and other media, so long as you select the option to import *everything*. This is really only suitable for populating a new site from fresh.

  3. CouponCodePlugin
    Member
    Posted 1 year ago #

    Surely this is an error/issue as it provides you the option to "import attachments" it does not import any of the attachments.

    This means that you have to export everything and then import it all, selecting to import attachments, then manually delete items you do not need.

    Why else would the plugin provide an option to import attached files and then it does not import them?
    This plugin really is a mess, even with a full import, many items seem to fail.
    I just exported everything and then imported everything. All it imported was images, no posts, no pages, nothing.

    The only way I can get this to work is to export and import everything so that it imports images. Then I need to export and import posts, pages etc separately so that it imports the content. Then I need to manually edit the db so that the address for all attached content is correctly referenced. Yet WordPress claim that the plugin works with v3.6! Come on WordPress, this is a vital plugin and needs to be addressed.

  4. ajamm
    Member
    Posted 1 year ago #

    I have never seen it import images... even with *everything* ticked

  5. imagiNed
    Member
    Posted 1 year ago #

    I've used the WordPress importer off & on successfully for years, it used to import the images associated with a post directly into your Media Library and reference them correctly.

    I needed to use the importer again this week and find that the images do NOT get imported. Instead the posts/pages have links to the images residing in the Media Library of the site that I exported from.

    Something got broken somewhere, it doesn't work the way it used to.

  6. imagiNed
    Member
    Posted 1 year ago #

    OK, I looked through more forum postings, including this one, that gave me a clue: http://wordpress.org/support/topic/import-feature-does-not-import-file-attachments

    The clue is if you export everything, then when you use the importer the media is actually imported. (That's the way I've always done it.)

    This last week, I exported only the posts (not the pages). When I went to import the XML file, none of the attachments got imported. I just now went back, re-exported (with the "everything" radio button selected) and then was able to import successfully.

    (Of course, then I had to go delete the pages that I didn't want imported.) Sucks, but that's how "workarounds" work.

  7. Jason Judge
    Member
    Posted 1 year ago #

    That's my experience with WP 3.5.1 - if you export and import EVERYTHING then all media is physically moved across. If you opt for anything less than everything, then the media does not get imported, but links to that media does.

    Like I said in an earlier post, this is what we seem to be stuck with. Use it to migrate or copy a site right at the start, then remove what you don't want.

    However, do keep an eye on this. because it may just be a transient problem, to be fixed later.

  8. snapalot
    Member
    Posted 1 year ago #

    I have more than 11 000 posts on my website. When I export it all, the file is to big for a one-time import due to server upload limits. This is quite frustrating.

  9. animalien
    Member
    Posted 1 year ago #

    I would like to see this fixed as I also have never seen the Images get moved over. I moved my first website over in 2010 and it didn't work. I had to manually move over media, then re-associate the files. That was a long arduous task.

  10. robertwbradford
    Member
    Posted 1 year ago #

    +1

    I used a version of the WordPress Importer that another user had tweaked (discussion here: http://wordpress.org/support/topic/plugin-wordpress-importer-not-importing-media-library)

    I didn't go through the code to find the differences, but perhaps the original plugin's authors could implement the changes.

  11. I have not used this plugin so I can not verify if it works to bring attachments over along with their correct source URLs but maybe a few of you could give it a try and report back here.

    http://wordpress.org/plugins/attachment-files-importer/

  12. jimbox
    Member
    Posted 11 months ago #

    Landed here with the same woes on 3.6.

    Consistent with @imagiNed I was able to get media imported by "Exporting All" rather than just Posts. Unfortunately the Import process is also somewhat dim in that it does not ask to apply any filters on import forcing an all or nothing requirement to get media transferred.

    Tangentially- I also discovered the image links still referred back to the old site/url. Understandably images may link to any site and thus likely one wants to maintain those links during export/import... but considering 99.9% of image links will be internal it would nice if those were adjusted during the import too.

  13. snapalot
    Member
    Posted 11 months ago #

    If you haven't yet, check out the Media Tools plugin.

    After importing the posts to your new blog, use this plugin to download images associated with posts to the new WordPress uploads directory, import it into the Media Library, attach it to the correct post and optionally set it as the featured image.

    Beware though that if you have alot of posts, this could use as much as all the processing power from your server, denying visitors access to the site. The plugin can be disabled afterwards.

  14. JosiahW
    Member
    Posted 11 months ago #

    Media Tools did not change the URL of the images for me. It did import the images into my Media directory but the posts still display the images as being linked to the old site.

    There has to be a better import/export plugin available for wordpress!
    Anybody know of one? I would pay for a working plugin that exported all of my posts with post and featured images and then imported them all into the new site properly.

    Also if this can be done by copying over the "uploads" directory and using a search/replace plugin I would do that as well. Anybody know of any way to do this?

  15. nims
    Member
    Posted 10 months ago #

    Same problem here ... did anyone find the solution ?

  16. jimbox
    Member
    Posted 10 months ago #

    @nims-

    I've found success through exporting "all" (as wordpress xml file). When importing, and after choosing your import file to upload, the next screen will have a checkbox to enable importing of page/post media.

    This worked for me.
    However, when I tried only exporting/importing just Posts or any other subset of "all" this functionality did not work.

  17. nims
    Member
    Posted 10 months ago #

    @jimbox
    Well thats what the issue is. We are looking for the solution to exporting and importing posts with media.

  18. Unfortunately, it looks like the Google summer of code project for the exporter/importer didn't go as planned. I heard that we may have to wait until 3.8 or 3.9 before some of the work applied to the project is concentrated on by the core team. Until that time, I have no idea what every one is supposed to do except try your best to do full export.imports in order to bring your media over. But even though the media gets transferred over, you'll still have to change the domain in the attachment urls so it has the new one in it or all the images will be broken.

  19. Bart van Maanen
    Member
    Posted 10 months ago #

    I would like to import my blog to a fresh install of WP. My database was messed up (so no .sql export) and so were the images folders (in wp-content instead of wp-content/uploads). Can I edit (search and replace) the xml file before the import with the new URL's of the fresh install?

    So: wp-content/2010 becomes wp-content/uploads/2010

    Will that get the images on the right place?

  20. jimbox
    Member
    Posted 9 months ago #

    @nims - My regrets if the post didnt help or seem obvious.

    I found this thread, like many others seeking a "fix" to importing media. What I realized is there won't be any "fix" because it aint broken.

    You must export ALL content types and import All. Exports of any subset will not offer the option to import media. Many trial and errors led me to this realization. And for the sake of being explicit- exported WXR/xml files do not contain media... just URI's to them so those media links MUST be LIVE when doing the import operation such that it can retrieve them.

    If still having problems it's almost version/plugin conflict. Ensure your export and import WordPress environments are *identical*. Meaning version of WordPress, installed plugins, and versions of each and every plugin.

  21. WebTechGlobal
    Member
    Posted 9 months ago #

    Well put jimbox. The plugin needs a troubleshooting guide, a checklist approach covering what developers see as the basics.

    Plugins that work with data in a CMS and deal with the core in this manner will never get a lot of support. It's too time consuming and can be very frustrating.

    Hence why there are so many premium solutions in this area.

  22. CricketPond
    Member
    Posted 9 months ago #

    As others have said, you need to export everything. Click only the first radio button for "ALL CONTENT" and nothing below that.

    On import, after you "assign Authors" you need to make sure that you check the box under "IMPORT ATTACHMENTS", where it says "Download and import file attachments"

    Having just forgotten to do this, and then going back and checking this box, all images showed up.

    If you've remembered to check that box and your images and attachments still aren't showing up, then I'd check for conflicts with plugins.

  23. Barb82
    Member
    Posted 8 months ago #

    Well, that's a BIG problem for me, as i have thousand of posts to move to another WP installation, and from the tests i did the ONLY solution is to export "all", as others said.

    But, since i can import directly the "uploads" folder i thought that exporting "all", but leave unticked the "import images" part could do the trick, as long as the images maintained their links... but they didn't.

    I have imported ALL my posts, and looking at the code from the frontend the <img /> tags have an empty "src" attribute, which is not recoverable in any way, even if the images are already in the right place.

    Could it be that i'm exporting from v3.5.2 to v3.7.1?

  24. SpenceDesign
    Member
    Posted 8 months ago #

    Seems to me that using Media Tools might be a decent work around as one could always do a bulk search and replace in a text editor to properly reference the new blog image URL's etc. I was able bulk replace the old URL in my exported .xml easily.

    However, my problem is that I cannot seem to get WP Import to run at all in WordPress version 3.7.1. I am going to go back and try exporting all content to see if that does the trick.

    Here is another plugin I ran across. I have not used it yet, but may resort to, depending on how my next attempt goes with WordPress Importer.

    WP All Import: http://wordpress.org/plugins/wp-all-import/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic