WordPress.org

Ready to get started?Download WordPress

Forums

Re-Import attachments into media library after migrating (49 posts)

  1. sunkast
    Member
    Posted 2 years ago #

    I am in the process of moving a site from WordPress.com to a self hosted WordPress site. But I'm having trouble exporting from WordPress.com and then importing the posts and image attachments afterwards.

    My problem is that even if I check the box to Download and Import Attachments, I get a lot of media already exists or failed error messages, and not every image makes it over. I have about 1000 images, and only get about half of them after importing.

    So I've given up on using the importer to download and import attachments. Instead I've used DownThemAll to download all of the images, then uploaded them to the new server, maintaining the correct directory structure. I also made sure to update the exported XML file to the new URL paths. And now my dilemma is how do I get all of these images back into the Media library.

    Essentially I've already done the job of downloading the image attachments that the importer would do. Now I just want them to show up in the media library, and if possible, attached to the correct posts.

    Is there any way to do this? Or is there a way to have the importer skip downloading the images, and simply attach them, or something like that?

  2. chezpaul
    Member
    Posted 1 year ago #

    Same problem here for me... Exact same...
    Did you find a fix or a work around ?

  3. Xue Faith
    Member
    Posted 1 year ago #

    Uggh, me too. I'd either like to find a way to fix the various errors on importing the WordPress.com file, or as you say, relink the separately uploaded files.

    On various forums I've been told that "your problem is not possible" because it's all the exact same WP 3.4.2 on WP.com and everywhere else. Obviously it's not true that it's not possible! :P

    One strange wrinkle, the same export .xml that has these issues on various hosts like Media Temple or BlueHost... that file Imports flawlessly to WP Engine, or back into WP.com. In theory it's all the same v0.6 WP importer, but it sure seems like something about the WP.com / WP Engine flavors is a little different.

  4. chezpaul
    Member
    Posted 1 year ago #

    I've been working with people at wordpress.org to help them built a better posterous importer into a wordpress hosted site.
    On my side of things, I'd say we are done.
    All pictures, videos and audio and pdf files I had, (over 1500) all import full res into my new wordpress site.

    My new site is up and running just about the way I want it.
    There's just a hickup with pictures which got rotated in posterous during the original posting so you have to go in wordpress and rotate over 50% of your pictures. I've realized that it depends on which camera was used to take the pictures. With an iphone, you have to rotate, with my canon, I don't have to.
    But the dev told me there's no way around this. It's posterous's fault.

    I hope they will release it soon. It works great and it works every time.
    I must have reset and re imported my site at least 50 times.
    I'm also finishing to put a tutorial on what to do to have your new wordpress site look like your posterous one.

    Keep the faith... ;-)

  5. chezpaul
    Member
    Posted 1 year ago #

    haha... then again maybe this won't help you if you are importing from wordpress.com. sorry...

  6. Xue Faith
    Member
    Posted 1 year ago #

    haha, thanks Chezpaul... sadly... probably not.

    Any idea if the coming WP 3.5 will change anything on the Import experience?

    Or will it be the same v0.6 importer that functions the same?

    Other problems I've encountered: the "import media checkbox" doesn't, as far as I can tell, do anything. If it's a FULL Export > Import, then it will try to import media whether you check the box or not... and if it's a partial: like posts or authors or dates, then it will not try to import media, whether you check the box or not.

    Anyway, like you I've exported / imported 50 times now. Yes it's frustrating, demoralizing and all that, but the worst is that it's killed my confidence to set a site up for anyone or even to recommend that they use WordPress at all.

    For sure I'm just a "fake webmaster" and I imagine a "real webmaster" would have a lot more knowledge and tools to "make it work one way or another."

    At this point it's taken so long it's beginning to seem like just manually fixing 700 posts might actually be "easier."

    I still have really no idea what the "bug" or "glitch" or "grain of sand" that's nicked our database and generated so much trouble doing a "simple" WP.com to WP.org export / import.

    Anyway, it IS awesome that you've gotten Posterous to import better! :)

  7. chezpaul
    Member
    Posted 1 year ago #

    Oh and by the way... Once imported, wordpress is soooooo slooooooow.
    If I could import into Joomla, I would but there isn't even an option for that.
    I wish posterous people would have created an export function for the millions of people who MADE THEM.

    Anyway. Stuck with worpress now. Better than posterous at this point.
    I hope the .org people talk to the .com people at wordpress and get the importer together.

    Good luck

  8. Xue Faith
    Member
    Posted 1 year ago #

    I thought the .org peeps WERE the .com peeps!? Isn't AutoMATTic, like, the lead developer on most stuff?

  9. chezpaul
    Member
    Posted 1 year ago #

    That's very possible. But it seems like the code is different wether for .com or for .org. What do I know ? ;-)

    But I was dealing with someone from AutoMattic.

  10. Deborah Edwards-Onoro
    Member
    Posted 1 year ago #

    Chezpaul,

    Did you write your tutorial for importing Posterous to self-hosted WordPress.org? I also have a Posterous blog, but after reading about issues with the WordPress.org plugin, I took the steps of importing my Posterous posts to WordPress.com, then exporting to self-hosted WordPress.

    Only one blog post, out of almost 300, included images. None of the other images were imported for my posts. I received numerous fail error messages on the import of the media.

  11. chezpaul
    Member
    Posted 1 year ago #

    I do have a tutorial ready to go more or less but it won't do any good unless you guys have the correct new import plugins. I have no clue when those are coming out.

  12. Deborah Edwards-Onoro
    Member
    Posted 1 year ago #

    @chezpaul: Thanks for the info. Do you know who's working on the new import plugins? Is there any info you can share on ETA on when the new import plugins will be released? Any advice you can share would be great. Thanks again!

  13. chezpaul
    Member
    Posted 1 year ago #

    I was working with Daryl from Automattic.
    As for the release of the plugin, that's out of my control of course.
    I thought it would be right away but he said it would take several months.
    But I've been done with helping test it for a while now and my site is up and running with a full import from posterous. (over 4000 images and films.)

  14. Deborah Edwards-Onoro
    Member
    Posted 1 year ago #

    @chezpaul: What do you recommend as the best way to reach Daryl? Does he have a beta version available for testing?

  15. chezpaul
    Member
    Posted 1 year ago #

    Well, a little googling (very little) and I found his site @ wordpress
    http://profiles.wordpress.org/koopersmith

    I'm guessing that is him.

    But on the other hand, it seems like he just left Worpress 2 days ago of all things!
    Ha !

    http://shoptalkshow.com/episodes/050-with-daryl-koopersmith/

  16. Deborah Edwards-Onoro
    Member
    Posted 1 year ago #

    @chezpaul - Thanks for the update. I sent a tweet to Daryl, asking if he knew who will be continuing the work on the plugin. #fingerscrossed

  17. Xue Faith
    Member
    Posted 1 year ago #

    Hey Deborah, just wanted to chime in with "Good Luck," and continuing thanks to chezpaul.

    The WP peeps do so much great work that you feel like a jerk to complain about anything, but if the Importer 0.6 is as iffy as it seems like it is to me, that's really kind of shocking. Or if it's not, I'd sure love to know how to use it "properly."

    The weird thing to me is that peeps must move blogs somewhat often, and some of those must be large... how do they do it? If you have 10 posts you can fix everything by hand and not think twice about it... but if you have 1,000 you need a pretty decent importer... ?

    Best Wishes! :)

  18. Daryl L. L. Houston (dllh)
    Member
    Posted 1 year ago #

    Deborah, the version I had Paul testing can be downloaded from a development branch here. It uses a newer version of the Posterous service that's better than the older version. It also does a better job of handling some error conditions than the released plugin.

    I had also worked with Paul to do some stuff with e.g. video, which the Posterous importer can't natively handle (because it can't make assumptions about what video plugins people may have, etc.). If you have mostly (or only) images, the beta importer will hopefully be a step up.

    We deferred releasing it because we wanted to test it out on WordPress.com for a while first. Some more instances of testing on .org sites will boost confidence as well.

    As for other export/import issues from WordPress.com, it'll be best to open support tickets at http://support.wordpress.com/. There's a pretty good chance those'll filter down to me, but it's best to go through proper channels in case I get hit by a bus, so that somebody else can pick up the work. :)

  19. Daryl L. L. Houston (dllh)
    Member
    Posted 1 year ago #

    Oh, one more thing: It's always good to test beta things on beta blogs if possible.

  20. chezpaul
    Member
    Posted 1 year ago #

    Haha, so I found the wrong Daryl... ;-)

    Hey here's my quick little tutorial for what it's worth:

    First of all, thank you Daryll from Automattic (makers of WordPress) for doing all the changes on the posterous importer and the work on the posterous media plugin.
    Without him, this solution would not exist.

    Using this method with the plugins we propose will allow you to transfer all your files (images, videos and audio files) and your comments. All images will be transferred at their highest resolution. There is only one little hiccup to all this.
    Because of how the posterous API works, some of the images are rotated. You will then need to go into each post with rotated images and rotate them back to normal. The alternative would be to have lower resolution pictures in every post which wasn't good enough for me.

    So, what you need:

    1. A posterous site

    2. A hosted wordpress.org site

    3. A Theme
    I used a free wordpress theme called Stumblr.
    http://www.eleventhemes.com/stumblr-theme/
    It has the look and feel of a posterous blog but there are lots of other great wordpress blogging themes out there.

    4. Download and upload the "Viper's Video Quicktags" wordpress plugin to wp-content/plugins. Which allows to view mov video files in wordpress.
    http://wordpress.org/extend/plugins/vipers-video-quicktags/

    5. Download and upload the "Jetpack" wordpress plugin to wp-content/plugins.
    Which allows to view audio files in wordpress.
    http://jetpack.me/

    6. Download and upload the "GPP Slideshow" wordpress plugin to wp-content/plugins.
    Which will allow to view your pictures just like in posterous with almost the same slideshow.
    http://wordpress.org/extend/plugins/gpp-slideshow/

    7. Download and upload the new beta "Posterous importer" wordpress plugin to wp-content/plugins.

    8. Download and upload the "Posterous media" wordpress plugin to wp-content/plugins.

    9. Login to your hosted site and activate these plugins: GPP Slideshow, Jetpack, Posterous importer, Posterous Importer Media Shortcodes and Viper's Video Quicktags.

    10. Click on Options for GPP Slideshow and set a Slidshow Display Time of 100000.

    Also check the Slideshow on all pages checkmark. Save Changes.
    It will tell you that you need to Update Permalinks Now. Click on that button. I set my Permalinks to Post name type the Save Changes.

    11. In order to allow the Gallery Slideshow on your index page you need to do a little hack.
    Open the file wp-content/plugins/gpp-slideshow/css/style.css and add this code at the end of it.

    /* index page fix */
    .flexslider {float: left;}
    .flexslider li, .flexslider ul {padding:0px !important;}
    .flexslider .slides li .flex-caption {padding:10px 4px !important;}
    .slides, .flex-control-nav, .flexslider .flex-direction-nav {margin: 0 !important; padding: 0 !important;}

    12. In order to have the thumbnails show by default open the "wp-content/plugins/gpp-slideshow/gpp_functions.php" file and change the two instances of this line:
         echo '<ul class="gpp_slideshow_thumbnails" style="display:none">',"\n";
    to this
         echo '<ul class="gpp_slideshow_thumbnails" style="display:block">',"\n";

    13. Do the import!

    The import might take a while. Let it do it's thing. Sometimes it won't go all the way. I learned to just walk away from my computer and let it do it's thing. I must have re imported my posterous site at least 40 times and maybe 4 or 5 times it didn't go all the way to the end.

    Now a few things you need to know.
    Once you do the import, some of your pictures will be sideways or even upside down. This is just the way it is. Daryl says there's nothing they can do about it. It's just the way posterous handled pictures.

    Another thing that the importer will not do is size properly all the iPhone vertical movies if you have any of these. So you need to go in manually on each post with these.

    Something else to figure out before you launch the importer is what size you want your movies to be. I used 580 by 326 just because it looked right in my theme but you can use something else. I was just going for the posterous look. You can edit those settings in the posterous media.php file before you do the import.

    Another thing that Daryl might need to fix but we never got around it was that all my posts with movies in them have a [gallery] short code attached to them. I had to manually deleted them all.

    I didn't have any tags or categories in posterous so I had to add all those manually too.

    I hope this helps.

    I'm very happy with the import.

    Much less happy with the speed of wordpress. It's the slowest kind of environment I've ever worked with. You have to jump through hoops to get your site to load in less than 4 seconds. It's crazy.
    For example, just by turning off the jetpack plugin, my site started loading 5 seconds faster. Yes 5…. So I'm in the search for another audio plugin that will work with the audio short code.

    I'm sure I forgot a lot but this is the basics of the import.

    Oh yeah, one more thing. I had problems dealing with all new movies imported from my now iPhone 5.
    I decided to go with html5 and for some reason that only works well in Safari, otherwise the movies are upside down.
    One more thing. GPP Slideshow works great in browsers but on iOS, it will only work if there's one instance of it on the page.
    So it'll work great on a single post with a single instance of GPP Slideshow but on the main index page with maybe sometimes 3 or 4 slideshows it will not work. You'll only see the first picture.

    Okay, I'm done.

  21. Daryl L. L. Houston (dllh)
    Member
    Posted 1 year ago #

    Thanks for that, Paul. The Jetpack plugin definitely shouldn't slow your site down that much (if at all)! If you're still having load issues, look up WP Super Cache in the plugin directory. It'll cache your site for users who aren't logged in, making it run much faster. (There are other caching plugins as well, but Super Cache is fairly simple by comparison and is authored by another Automattic employee, so I have a degree of trust in it.)

  22. Deborah Edwards-Onoro
    Member
    Posted 1 year ago #

    Daryl, thanks you so much for the information and background. Appreciate the quick reply and pointer to the Posterous beta plugin. I'll give it a go this weekend.

    My posts are mostly images, with a few videos, which I'll probably do by hand.

    Paul, thank you for posting your instructions for the plugin and the need to install the three additional plugins to support audio, video, and slideshows. Good to know ahead of time about the issue with the rotated images.

    Again, my thanks to both of you.

  23. Deborah Edwards-Onoro
    Member
    Posted 1 year ago #

    @chezpaul: Can you point me to the Posterous media plugin? I don't see it in the WordPress plugin repository.

  24. chezpaul
    Member
    Posted 1 year ago #

    That's a Daryl question. He built it.
    He would send them to me directly.

  25. Deborah Edwards-Onoro
    Member
    Posted 1 year ago #

    Whoa, that was fast. Thanks Paul. I'll follow up with Daryl.

  26. chezpaul
    Member
    Posted 1 year ago #

    Daryl, beleive me, I''ve been GT metrixing my site like crazy... with W3 with WP Super cache, without... with optimized DB, with out this or that plugin, etc.... allow compression or don't.

    I'll get to a point where my site loads in under 4 seconds and then the next day it's back down to 15 seconds. At this point I've given up.

    My site is for registered family members only anyway..

  27. chezpaul
    Member
    Posted 1 year ago #

    I should add that if you guys want to keep the post by email function of posterous, you should use Postie and not the post by email in jetpack. It does not work. At least not for me. Whatever I send, it get's bounced back. The postie plugin works fine and allows custom post

  28. Deborah Edwards-Onoro
    Member
    Posted 1 year ago #

    Thanks Paul. I don't use the email function very often. Didn't know the email in JetPack wasn't working.

    A follow up on your tutorial:

    You may want to change Step 10 to: Select Galleries, then Options

    An option for people needing to manage their tags after importing: use the Term Management Tool plugin. It allows you to merge terms, move terms from one taxonomy to another, and set parent terms.

  29. Daryl L. L. Houston (dllh)
    Member
    Posted 1 year ago #

    You can download the plugin I had created for Paul here. Just put it in your plugins directory, do the import, and then you can deactivate or delete the plugin, as it's used only during the import itself to rewrite post content.

    This isn't in the plugin repo because it's pretty specific to this use case, by the way. Happy to make it available, though -- it just didn't seem a candidate for the official repo.

    As always, make sure you try this with a test import before wrecking production data. :)

  30. Deborah Edwards-Onoro
    Member
    Posted 1 year ago #

    Thanks Daryl, appreciate the info. Just confirming, I'm copying the plugin directly into the plugins directory? It doesn't need to be in a named folder?

Topic Closed

This topic has been closed to new replies.

About this Topic