WordPress.org

Ready to get started?Download WordPress

Forums

Import Feature Does Not Import File Attachments (23 posts)

  1. ventrilqstman
    Inactive
    Posted 3 years ago #

    I have a WP XML export file I'm importing (3.03 to 3.03). The import goes fine, but when I check the option to "Download and import file attachments" it does nothing. No attachments are imported. No file paths change in the post and no files show up in the uploads directory.

    I tried again after CH modding the folder to 777, just in case it was permissions, but no change. It's like WP totally ignores all attachments even though you check the box.

    Any thoughts? Would really like this to work so I can being in image to new location and not have new site depend on files that exist on old site.

  2. Dion Hulse
    WordPress Dev
    Posted 3 years ago #

    Are the images still accessable at their previous locations? WordPress Export files do not include the attachments in the backup file, just the posts, The Importer attempts to download them from the original server.

    Another option could be that your new installation cannot make outgoing Web requests, Can you browse plugins through the plugin installer? (That will show if it can make outgoing requests)

  3. ventrilqstman
    Inactive
    Posted 3 years ago #

    Yes, they are still at the location. The images are fully available to be download. Also yes, the plugin installer works just fine. The feature just doesn't work at all it seems.

  4. dyords
    Member
    Posted 3 years ago #

    same here. importing wont download and upload attachments. any luck? really need this feature.

  5. mountainporcupine
    Member
    Posted 3 years ago #

    I'm also having this issue.

    Does the WP XML need to have any special fields to let the new install know there are attachments to download?

  6. mongushu
    Member
    Posted 3 years ago #

    *bump

    same problem here.

  7. dyords
    Member
    Posted 3 years ago #

    still not working. both blogs are 3.0.4. i also tried setting wp-content/uploads to 777. i also tried manually adding the subfolders for the media (e.g. 2007/12). but still media is not attached even when i check the download and import attachments. no such luck. :(

  8. mongushu
    Member
    Posted 3 years ago #

    Hi all. I [sorta] figured out my problem here.

    If I only export a selection of posts using the provided drop downs (lets say selecting to export only from a particular category) and then IMPORT, I DO NOT get any file attachments to transfer according to my checkbox preference. I do not receive any errors, and all selected post data gets imported.

    However, if I select to just export ALL posts from a blog, ignoring the dropdown options provided, and then IMPORT from that file, I DO INDEED get all attachments and post data uploaded and transfered to the new blog.

  9. dyords
    Member
    Posted 3 years ago #

    gee that's not good. i have a huge blog and i can't transfer them all in one go due to limitations so i'm doing it per category per year.

  10. mongushu
    Member
    Posted 3 years ago #

    I had the same situation... and wanted to do them individually...

    but i trusted the importer (as i've used it before) and I imported exactly 2600 posts at once... took a while... i don't remember how long.... but at least 30+ minute i believe... but the importer is pretty awesome... batching it all out. worked just fine.

    give it a try. you may be surprised.....

  11. ventrilqstman
    Inactive
    Posted 3 years ago #

    Just updated to 3.04 and the importer is still broken. I don't get why this is always such a fiasco. Why have a feature if it does not work for most users.

    monggushu. Using the import all approach may be a workaround, but it's not a great one because it means we can't choose what we import. I did try it. It worked the first time, importing images along with content. But the posts were still in the trash from the previous import and because of that it did not update the posts to reflect the new image locations. I deleted everything and tried again using the same settings and it did not import images this time.

    This is a pretty basic feature. I'm really getting frustrated that WP can't handle it.

  12. ventrilqstman
    Inactive
    Posted 3 years ago #

    I did find another workaround. Certainly no fox, but it got me running.

    I downloaded the export file. Then opened in a text editor and did a find and replace on the image path that leads to the uploads dir (replacing old domain with new).

    Then I download all the image directories from the old domain and re-uploaded into the uploads folder of the new.

    Importing the modified xml file into the new domain and leaving import images NOT checked, the posts imported with the new modified image paths that lead to the image folder I uploaded.

    The posts are displaying fine, but this is still not a great solution. If you had content to import from more than one site it would be an even bigger pain. Please get this fixed WP team. The importer is important.

  13. featheredowl
    Member
    Posted 2 years ago #

    I'm having the same problem when doing a selective export of posts by username. Although "download and import file attachments" is checked, no images are uploaded to the target server. I have upgraded both WP instances to WP v3.2.1 and the WordPress Import plugin to v0.5.

  14. David Chandra Purnama
    Member
    Posted 2 years ago #

    same here..
    not a single attachment imported.

  15. AndruC
    Member
    Posted 2 years ago #

    I've noticed the problem, but I've only attempted it with a custom post type. Unfortunately, it's going to be a major problem to fix manually.

  16. Tony221268
    Member
    Posted 2 years ago #

    Probably get attacked for being strictly off topic here but it strikes me that as I understand it, the wp importer is generally too restrictive when it comes to images/ files.

    Given that this is usually being done by people who are not entirely technophobic then would it be so daft to have a few options on the importer?

    For example, how about an option to just update the domain part of a URL to a new one (implicitly "because I'll ftp the actual images to the right place myself").

    In my case I want that as I have a local machine for dev and for various reasons our live server just won't upload the images from there. I don't care to solve those reasons why.

    FWIW I use the "ventrilqstman" method (see above)

  17. nadine00
    Member
    Posted 2 years ago #

    Woo! Same here. My issue is thumbnails tho, WP just went off and un-attached all the feature images. Did a bunch of SQL queries, fixed a bunch of URLs...zip.

    Frustrating indeed.

  18. knivesOut
    Member
    Posted 2 years ago #

    Yep, this is a major bug in the wordpress export function.

    When no options are selected from the select menus(category, author etc), and select ALL posts and pages, I get the following in in my xml file under each item/post.

    <wp:postmeta>
    <wp:meta_key>_wp_attached_file</wp:meta_key>
    <wp:meta_value><![CDATA[2009/10/IMAGE.jpg]]></wp:meta_value>
    </wp:postmeta>

    HOWEVER, when I select a single category to import, the above postmeta does not exist. I desperately need this attachment information on each post.

    Now, you would say that I should just export all pages and posts, but the xml generated from that is 22mb and my host won't let me upload a 22mb file.

  19. David
    Member
    Posted 2 years ago #

    knivesOut I am seeing the same thing. Does anyone have an answer for this? Surely this is a major issue since many people need the media to follow them when they move a blog.

  20. davidryal
    Member
    Posted 2 years ago #

    @knivesOut
    a 22mb import file is no problem, if you use this to break up and import each piece manually. I normally only see success if I break into <2mb pieces. Use this tool for it: http://www.rangerpretzel.com/content/view/20/1/

    I'm having the same non-attached images problem, after using the "download my images manually via ftp and put them in the right place on the new server" workaround.

    Hopefully I can reexport, get the _wp_attached_file meta information as you describe above, and then split and reimport.

    I've also found it helpful to use this plugin to delete all posts completely before attempting a new import after a failed attempt (i.e. where my changes don't have the intended effect): http://wordpress.org/extend/plugins/wp-mass-delete/

    Hope this helps some people.

  21. bollocks187
    Member
    Posted 2 years ago #

    Seriously the import and export functions do not really work. They are selective.

    To move from one provider to another you need to export everything including database and images and attachments etc etc.

  22. whiteatom
    Member
    Posted 2 years ago #

    Even if the importer can't find the images.. maybe give us an error? I just says all is well.. but doesn't do it's job.

    Frustrating.

  23. bollocks187
    Member
    Posted 2 years ago #

    Seriously we need improvements in this area. While it is less glamorous area it is very important, especially if you work for a software company in the business of making money.

Topic Closed

This topic has been closed to new replies.

About this Topic