WordPress.org

Ready to get started?Download WordPress

Forums

Posterous Importer
[resolved] Fixed the plugin (22 posts)

  1. nicolasroberge
    Member
    Posted 2 years ago #

    I fixed the plugin by adding a couple of sleep commands before all posterous.com/api calls.

    To whom I can send the patch?

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

  2. billblandford
    Member
    Posted 2 years ago #

    You can send it to me Nicolas;-)

    <myprofilename>ATgmailDOTcom

    Thanks,
    Bill

  3. Navjot Singh
    Member
    Posted 2 years ago #

    Can you paste the link to patch here so that others can benefit from it?

  4. jasey12345
    Member
    Posted 2 years ago #

    PLEASE post it here, or post the instructions on how to add the sleep commands in manually here, or something ... this is driving me absolutley round the freaking bend!

  5. nicolasroberge
    Member
    Posted 2 years ago #

  6. jasey12345
    Member
    Posted 2 years ago #

    LIFE SAVER, thank you Nicolas. Trying it now ...

  7. jasey12345
    Member
    Posted 2 years ago #

    It doesn't seem to be doing anything Nicolas. I just see a daisy wheel next to the 'submit' button but when I enter my password, nothing happens - except the daisy wheel keeps animating.

  8. nicolasroberge
    Member
    Posted 2 years ago #

    It depends on the size of blog you have. Mine took around 5 minutes to import. It's not a file import, it's an API import, so it may take a couple of minutes.

  9. jasey12345
    Member
    Posted 2 years ago #

    Ah ok. But I'm not sure it's even started yet because the daisy wheel showed up before I even entered the password. Will my password be saved from the previous attempt to use the (broken) Posterous Importer? There's no status showing so I'm not sure if it's actually going.

  10. jasey12345
    Member
    Posted 2 years ago #

    This just doesn't do anything on my side :(

  11. mbjones
    Member
    Posted 2 years ago #

    I'm in the same boat as jasey12345. Doesn't do anything for me either. :/

  12. Navjot Singh
    Member
    Posted 2 years ago #

    Confirmed. It does not work at all. Better option is to create a blog at wordpress.com, import from posterous using its importer(works beautifully), export from there and import to your new wp blog.

  13. Daryl L. L. Houston (dllh)
    Member
    Plugin Author

    Posted 2 years ago #

    A new version of the importer has just landed that should help some with the 403 response errors that the sleep command helps fix. There's also better handling of some types of media (audio/video) that wasn't previously imported.

  14. jasey12345
    Member
    Posted 2 years ago #

    thanks for the heads up dllh. at least this plugin actually imports all the posts, and very quickly too. BUT BUT BUT it fails and returns errors when it gets to the attachment importing stage, and you can see that posterous is returning an error to the plugin's requests to import the attachments, which means that all the photos are still sitting on posterous, which is useless.

    wordpress, what do we do now?

  15. Daryl L. L. Houston (dllh)
    Member
    Plugin Author

    Posted 2 years ago #

    What kinds of attachments are failing for you? My test sites import images without issue. It's entirely possible that there are some cases the importer doesn't handle. Can you post a screen shot of what you're seeing, and either some sample markup surrounding one of the failing images on a post that's failing, or a link to a sample post?

  16. jasey12345
    Member
    Posted 2 years ago #

    all attachments are failing, with the error:

    Remote file error: Remote file returned error response 0

    here are a few lines for you to see what's coming back in the plugin window:

    Checking 'Julius on the farm' for images...1 images found
    Importing attachment http://getfile7.posterous.com/getfile/files.posterous.com/jasonelk/bz3YRDadm6sTOc2fNmZhGkmLGhOrCyFrTqv9Bf12paiyxttrf6pBST2OMWA1/photo.jpg.scaled.1000.jpg...Remote file error: Remote file returned error response 0
    Checking 'When did a postbox become a 'posting box' in SA?' for images...1 images found
    Importing attachment http://getfile4.posterous.com/getfile/files.posterous.com/jasonelk/Fe2iEYXDhEentmgN1lOoOV2O4a6fScbP1jl6mfRIKUO0lfhouDHUjN3KSkPs/photo.jpg.scaled.1000.jpg...Remote file error: Remote file returned error response 0
    Checking 'All aboard!' for images...1 images found
    Importing attachment http://getfile8.posterous.com/getfile/files.posterous.com/jasonelk/t3jmS6P24WaLAlUbMWi8O432BBQEfFurCl8BFAQ9mYjy1m9reJ2mcOqQZdBq/photo.jpg.scaled.1000.jpg...Remote file error: Remote file returned error response 0
    Checking 'On a boat going around Intaka Island. Five minutes from work. Destress!' for images...1 images found
    Importing attachment http://getfile7.posterous.com/getfile/files.posterous.com/jasonelk/pgiLqUNALgHnv07T3rMrXstzPL42bxSUUpjpseaK7f1aZ0lsB7RkEyyrpMjb/photo.jpg.scaled.1000.jpg...Remote file error: Remote file returned error response 0
    Checking 'New Sally Williams chocolate slab - this cannot be good!' for images...1 images found
    Importing attachment http://getfile4.posterous.com/getfile/files.posterous.com/jasonelk/evUEsF4N4uakAbHfUTSJCwdzc82u0nJ1igAvXu80RTqVlfV8oz2F3Bsxz8oS/photo.jpg.scaled.1000.jpg...Remote file error: Remote file returned error response 0
    Checking 'A couple of macro shots: a bee stopping for a drink' for images...2 images found
    Importing attachment http://getfile6.posterous.com/getfile/files.posterous.com/temp-2011-11-13/DcdfuCiitbiakEduHcmnyDIxpwjkhxjotfxHFdozGACwFetwElbsotgzEnjF/beefirst.jpg.scaled1000.jpg...Remote file error: Remote file returned error response 0

    have a look at the posts on jasonelk.com. please let me know once you're done, because i'm going to have to reactive the .htaccess file to point at jasonelk.posterous.com after that, until this is finally resolved.

    thanks!

  17. Daryl L. L. Houston (dllh)
    Member
    Plugin Author

    Posted 2 years ago #

    Took a look, so you can put the .htaccess file back. Can't say that I'm sure what's going on there. My guess would be that maybe the core code that's fetching the files doesn't know how to deal with something about the way Posterous images are pulled from amazon's storage service. Different server setups use different methods of fetching files depending on what's available under the hood. I'd be curious to learn whether you have the curl library compiled into your php.

  18. jasey12345
    Member
    Posted 2 years ago #

    thanks dllh - i checked and curl is definitely running; see:

    array(9) {
    ["version_number"]=>
    int(462597)
    ["age"]=>
    int(2)
    ["features"]=>
    int(1597)
    ["ssl_version_number"]=>
    int(0)
    ["version"]=>
    string(6) "7.15.5"
    ["host"]=>
    string(23) "x86_64-redhat-linux-gnu"
    ["ssl_version"]=>
    string(15) " OpenSSL/0.9.8b"
    ["libz_version"]=>
    string(5) "1.2.3"
    ["protocols"]=>
    array(9) {
    [0]=>
    string(4) "tftp"
    [1]=>
    string(3) "ftp"
    [2]=>
    string(6) "telnet"
    [3]=>
    string(4) "dict"
    [4]=>
    string(4) "ldap"
    [5]=>
    string(4) "http"
    [6]=>
    string(4) "file"
    [7]=>
    string(5) "https"
    [8]=>
    string(4) "ftps"
    }
    }

    what would you suggest i do from here?

  19. Daryl L. L. Houston (dllh)
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for confirming the curl setup. The only thing I can figure out right now, based on this article, is that in some cases, the signature appended to requests for assets that redirect to amazon includes encoded strings (like %2F, which is a slash, and %3D, which is an equal sign) that are fouling with the download because the modified value doesn't match what amazon's expecting when it validates the signature. I'm trying to sort out a good way to handle this case but am so far having trouble debugging (it's made harder by the fact that it's inconsistent -- ie, if I include one of your problem files in a Posterous post of my own, it imports ok because I've so far gotten lucky with the signatures).

  20. jasey12345
    Member
    Posted 2 years ago #

    Would it help if I added a user account for you on my site so that you can use my account for testing as you go?

  21. Daryl L. L. Houston (dllh)
    Member
    Plugin Author

    Posted 2 years ago #

    Sure, if you're willing to do that, I'll give it a try. You can email me account details at daryl at automattic.com.

  22. jasey12345
    Member
    Posted 2 years ago #

    Great Daryl thanks. Mail sent!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic