WordPress.org

Ready to get started?Download WordPress

Forums

Resize Image After Upload
Not Working/Bug/Problem with XMLRPC API (2 posts)

  1. animeout
    Member
    Posted 1 year ago #

    Hey guys,
    First of all really nice plugin you have here, saves way much resources by avoiding onpage image resizing, so thanks for such a nice plugin.

    I wanted to report a possible bug/problem of your plugin with WP's XMLRPC API.
    I was working on making a code in php using the API and wp.getPosts function.

    As you can see it as a post_thumbnail field for featured image (imageid) and there is a uploadFile function to upload media and get the media id

    I am using both functions (upload the image via uploadFile and get the id and use that id in post_thumbnail field in newPosts) but have come across a problem with your plugin if its enabled.

    It throws this error

    Warning: getimagesize(animeout-logo-v2.png): failed to open stream: No such file or directory in /home/animeout/public_html/wp-content/plugins/resize-image-after-upload/resize-image-after-upload.php on line 163

    Warning: getimagesize(animeout-logo-v2.png): failed to open stream: No such file or directory in /home/animeout/public_html/wp-content/plugins/resize-image-after-upload/class.resize.php on line 106

    The error also halts the function in between and it doesnt lets the API return a callback response successfully and so the image uploads on WP but the overall API response fails.

    As you can see it cant find the image, I debuged a bit and found that actual response returned is this

    <member><name>id</name><value><string>6296</string></value></member>
    <member><name>file</name><value><string>animeout-logo-v2.png</string></value></member>
    <member><name>url</name><value><string>http:// ~~link ~~ /animeout-logo-v246.png</string></value></member>
    <member><name>type</name><value><string>image/png</string></value></member>

    The image exists at above url (have removed the link) and as you can see the image name in the link is a bit diff than the one its trying to find I guess.

    I dont know if I was able to explain it enough but thats the problem I am facing and due to this I have to disable the plugin to use the API.

    Please see if you can fix this so we can continue using the plugin with the API working :)

    http://wordpress.org/extend/plugins/resize-image-after-upload/

  2. JEPSONRAE
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Strange one there. We'll look into the issue and try and find a resolution.

    Kind regards
    Phil

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic