• 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?

Viewing 15 replies - 31 through 45 (of 48 total)
  • I added the two plugins and imported the 300+ posts this morning. Posts were imported, but content (text content) is missing on many of the posts. Posts that had multiple images in them were treated as galleries, even though there weren’t formatted as galleries in the original post. I’m assuming this is due to the GPP slideshow.

    I received a 687+ line message in the WordPress dashboard, with over 300+ messages saying “Skipping XXX XXX XXX” for the posts, which ended in a fatal error Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 62173146 bytes) in /xxx/xxx/public_html/wp-includes/class-http.php on line 1152

    Looks like I’ll be going through each of the 300+ posts to add content.

    Weird, I’ve never run into that one for the Posterous importer. I wonder if there’s something weird with the post type you’re using.

    The media plugin inserts the gallery shortcode for posts with images, which in conjunction with the GPP slideshow plugin is what’s causing the galleries. You could just comment out that bit of code in the plugin if you want to skip it.

    You could possibly avoid the memory issue by increasing memory available to php. I suppose it’s possible that this’d resolve the empty posts issue, though it honestly doesn’t sound to me like it’d be related (I’d expect in the case of a memory limit that posts would import to a point and then stop, but not that post content wouldn’t come in).

    Hey Daryl,

    Thanks for the quick response. I sighed when I checked the first post and saw text content missing. I ran the importer on WordPress.com, and had no issues with missing text content. Not sure what I should be checking for the post type?

    Yes, I figured the GPP slideshow plugin was causing the issues with galleries.

    Any idea why the message says “skipping ….” multiple times for many of the posts?

    I’d guess it’s skipping because you’ve already imported the posts in question. The importer tries not to redo previously imported posts (even if they’re in the trash).

    If you’ve got a successful import on wpcom, maybe it’d be simplest just to export a WXR from there?

    Hi Daryl,

    I tried the export from wpcom multiple times last week. The markup produced was crazy, with divs around paragraphs, and many references to posterous CSS classes.

    Deborah, we’re not adding any markup to what Posterous sends us, so I have trouble imagining you’d get anything different via the .org importer. I suppose it’s possible that if you edited any of the posts, the tinymce editor added some weird stuff, though I wouldn’t really expect that to be the case. Posterous CSS classes we obviously didn’t add. ??

    It might be interesting to look at the markup on Posterous itself and via the API to see what they send.

    Hi Daryl,

    You’re right, Posterous does add some unusual divs in their code.
    I should have been specific: the markup from wpcom had divs wrapped around every image < div class="p_embed p_image_embed" >.

    From the 10+ posts I’ve modified so far, I haven’t seen that. But then I’m adding almost all images to the posts individually via the Media Library.

    Ah, yep, that’s definitely Posterous-supplied markup. There is in fact some markup we strip out.

    And I thank you for it, Daryl. ??

    Hi Daryl and All –

    I have a blog that I successfully used the posterous importer direct from posterous to my blog – ie not through wordpress.com

    All worked fine (had to run it a few times though) except for videos in my posts. ie:

    https://brettstark.com/imported/jack-and-jill-by-millie

    On my server they are all .mov files.

    Is there a way I have these show up as videos in wordpress? I am not sure how wordpress handles video. Does wordpress support .mov files? I would like the posts to show up with a video window within the post and a ‘play’ icon and have the video simply play if you click it – like on posterous. Now if you hit the link, you get a whole new page with the .mov eventually playing…

    I’ve already done an import so not sure I really want to do it again since most of the site/posts are OK. Is there a way I can manually fix the few video posts I have (not many)?

    thanks,
    Brett

    ok, just answered my own question i guess…
    I edited above link manually using quicktime viper tag and that worked….So, I guess manual might be the way to go rather than re-import.

    Although i am interested in the GPP slideshow….I might fiddle with that. Can you edit a single post manually to make just that post use GPP?

    I don’t know the GPP slideshow, but you ought in theory to be able to edit a single post manually to make it use whatever you’d like. ??

    Hi guys, thanks for all this work.

    Maybe I’ve missed something, but I’ve just imported my posterous site using the method above, which has a few hundred video’s and several hundred photos. The photo’s have come in correctly, but the video’s all link back to posterous (although the video’s themselves have come into the gallery).

    Firstly, should the video’s have had their URL’s rewritten to point to the local site?

    Secondly, given that they haven’t been rewritten, and if they are supposed to be, how do I re-run the import without skipping all the posts in the second run.

    Thirdly, if I’m supposed to update the video’s manually (which I think I am), can someone explain in a bit of detail, how I do that without spending forever browsing the gallery (i.e. is there any quick way to find a name of a video filename in wordpress from the link to posterous?)

    Many thanks,

    Will

    I’ve answered this in a few other Posterous threads. Please browse around for the answer. The quick answer is that the importer has no idea what video players you may have installed in your site and so can’t know what code to use to insert a player. I wrote a plugin to help one guy, and he wrote the process up in detail.

    dllh, thanks for the quick reply. I thought this was the thread that had the reply written up (I’ve done several threads, and all the ones with ‘video’ in end up here. Maybe I’m missing something though). AIC73 seems to have lots of .mov files that haven’t imported (which is the same problem that I have), but others seem to have videos that have imported (maybe these are in a different format?).

    Hence the question – has anyone got .mov import working?

    In my case, What gets imported is this:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    < a href="https://hohoholland.posterous.com/walking-like-a-drunk"><img alt="" src="https://getfile5.posterous.com/getfile/video.posterous.com/hohoholland/GHfFBpydlAaBgvDjmaCfwaeApAHjnBGiHaBGAiDdrtcDmgmwqbwrJwrvbCyB/frame_0000.png" /> < /a\>

    so it shouldn’t be too difficult to change the <img src=""> to the one in wordpress (the file got copied) and the href link to the .mov file in wordpress (not ideal, but it’ll be fine for my purposes)… But I’m guessing at this point I’m best to find some way to re-process the imports?

Viewing 15 replies - 31 through 45 (of 48 total)
  • The topic ‘Re-Import attachments into media library after migrating’ is closed to new replies.