WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Import Not Working - Photos Not Attached to Posts (18 posts)

  1. mcography
    Member
    Posted 1 year ago #

    Hello all. I'm in the process of rebuilding my website, and I want to import my old posts from my wordpress.com blog so that I can fill out my new blog and use the old posts for testing. I signed into my wordpress.com blog, went to Tools > Export, and performed a full export. Then I signed into the admin area of my new site, went to Tools > Import, and tried to import the XML file, but the importer isn't working properly. The first time, it imported about a third of the photos. The second time another third. Then I tried importing it with the 'import attachments' box unchecked, and that imported the posts but none of the photos are attached to the posts.

    As far as I can tell, all of the content has been imported, but I don't really want to have to go through and manually insert all of the photos to the proper posts. How can I get this to work? The XML file is only 779 KB, so file size is not an issue.

    Here's my site if you want to have a look.

  2. noahjonah
    Member
    Posted 1 year ago #

    Try excluding the images folder from export. FTP the images separately after.

  3. mcography
    Member
    Posted 1 year ago #

    Thanks for responding, but I'm not sure what you mean by "FTP the images separately after." How do I do that and ensure that the photos are all linked to the proper posts?

  4. mcography
    Member
    Posted 1 year ago #

    Does anybody else have a suggestion? Is there a way to contact the WordPress team to let them know the importer doesn't work correctly?

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    There's nothing wrong with the WordPress importer. I've used many times without the slightest problem. The issue probably lies in your exported file or your domain name. What domain name was being used on your wordpress.com site when you carried out the export?

  6. mcography
    Member
    Posted 1 year ago #

    The site I am exporting from is http://megancarroll.wordpress.com/. The site I am importing to is http://mcography.com/test.

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    Did you use the mcography.com domain name on your wordpress.com site previously?

  8. mcography
    Member
    Posted 1 year ago #

    No. They've never been connected at all.

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    Were all of the images originally uploaded to your wordpress.com site or were they links to images on other sites?

  10. mcography
    Member
    Posted 1 year ago #

    I uploaded them to my wordpress.com blog via the media importer in the dashboard.

    Thanks for trying to help me figure this out, by the way.

  11. esmi
    Forum Moderator
    Posted 1 year ago #

    Just wondering if some of these images were rather large and that's what's causing the problem. Do you have access to your site's error logs?

  12. mcography
    Member
    Posted 1 year ago #

    Do you mean mcography.com? I'm not sure - I've never tried to access them. Where would they be located?

  13. mcography
    Member
    Posted 1 year ago #

    I just signed into cPanel and clicked on Error Logs, and there is nothing there. No errors at all...

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    I meant the images that you trying to import from your wordpress.com site. The images aren't in the export file themselves. Just their urls. So, for each image, WP trots back to your .com site and tries to grab the full size image and then process for addition to your new site. Image processing is very memory and copy intensive. So, if there are a lot of images and/or they are large, the server can get overloaded and shut the import down.

    What you could try doing is cutting the import file down into smaller chunks to see if that helps. Have a look at http://www.gbmini.net/wp/2008/11/splitting_wordpress_export_import_file/

  15. mcography
    Member
    Posted 1 year ago #

    Thanks, esmi. I'll check that out and report back.

  16. mcography
    Member
    Posted 1 year ago #

    Hmm, it looks like that program is for Windows, and I have a Mac. I will look for a Mac equivalent. However, I'm not sure that file size is the issue since my file is only 779 KB. But I guess it's worth a shot...

  17. mcography
    Member
    Posted 1 year ago #

    I found a splitter here, but the smallest increment it will split into is 1 MB. My file is only 779 KB, so that won't really work. Any other ideas?

  18. esmi
    Forum Moderator
    Posted 1 year ago #

    You could talk to your hosts and ask them if they can temporarily raise the PHP script timeout on your site to allow you to get the import done.

Topic Closed

This topic has been closed to new replies.

About this Topic