• Resolved lchogan

    (@lchogan)


    I’m getting this error when I try to create/update an image post from WordPress:

    Crossposting to Tumblr failed. Remote service said:
    Response code: 400
    Response message: Bad Request
    Debug output:
    object(stdClass)#3687 (2) {
    [“meta”]=>
    object(stdClass)#3686 (2) {
    [“status”]=>
    int(400)
    [“msg”]=>
    string(11) “Bad Request”
    }
    [“response”]=>
    object(stdClass)#3668 (1) {
    [“errors”]=>
    array(1) {
    [0]=>
    string(22) “Error uploading photo.”
    }
    }
    }

    The weird thing is that I can work around this if I first post the entry as a standard format post, then change the format to image, add a featured image, and update.

    This was all working fine before I updated the plugin to the latest version.

    Any thoughts on this?

    Thanks!

    https://wordpress.org/plugins/tumblr-crosspostr/

Viewing 1 replies (of 1 total)
  • Plugin Author Meitar

    (@meitar)

    Hi lchogan, I’m trying to verify this but can’t. I’m not seeing any errors when I try to do the same thing.

    A few things to double check and stay aware of:

    • You must use the correct Post Format (which you set in WordPress’s Post Format module) for the post type you’re sending to Tumblr. This means to create a photo post on Tumblr, you have to use the Image post format in WordPress.
    • Tumblr needs to have access to any images you upload to it, because Tumblr Crosspostr does not support in-band data transfers, yet. This means if your post’s photo isn’t somewhere Tumblr can get to it, even if Tumblr Crosspostr can see it, Tumblr can’t upload it. In other words, you can’t upload images whose URLs require passwords or are otherwise not public to Tumblr.
    • Tumblr will not let you change the format of a post once a post has been created, so it will treat whatever it receives as data intended for the type of post you first published (or clicked “Save Draft”) it as. So if you first save the post as a standard format, any images you add to the post will be treated as inline images, not a post’s “featured image” by Tumblr.

    So if I were you I’d double check that the posts I’m making have the right format before I click “Save draft” or “Publish,” and that if I’m making image posts that there is indeed a tag like <img src="http://public-website.com/publicly/accessible/image.jpg" /> in the post body, or else there’s a featured image set that is also publicly accessible.

    There’s not really a lot else I can suggest without more information. If you’re still running into trouble, please read How to file a good bug report and consider using the template linked from that post to help us narrow down the scope of the problem.

    Thanks. 🙂

Viewing 1 replies (of 1 total)

The topic ‘400 Error With Photo Post Type’ is closed to new replies.