Title: Not Working/Bug/Problem with XMLRPC API
Last modified: August 21, 2016

---

# Not Working/Bug/Problem with XMLRPC API

 *  Resolved [animeout](https://wordpress.org/support/users/animeout/)
 * (@animeout)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/not-workingbugproblem-with-xmlrpc-api/)
 * 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/](http://wordpress.org/extend/plugins/resize-image-after-upload/)

Viewing 1 replies (of 1 total)

 *  [jepsonrae](https://wordpress.org/support/users/jepsonrae/)
 * (@jepsonrae)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/not-workingbugproblem-with-xmlrpc-api/#post-3659273)
 * Hi,
 * Strange one there. We’ll look into the issue and try and find a resolution.
 * Kind regards
    Phil

Viewing 1 replies (of 1 total)

The topic ‘Not Working/Bug/Problem with XMLRPC API’ is closed to new replies.

 * ![](https://ps.w.org/resize-image-after-upload/assets/icon-256x256.png?rev=1940740)
 * [Resize Image After Upload](https://wordpress.org/plugins/resize-image-after-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/resize-image-after-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/resize-image-after-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/resize-image-after-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/resize-image-after-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/resize-image-after-upload/reviews/)

## Tags

 * [xmlrpc](https://wordpress.org/support/topic-tag/xmlrpc/)

 * 1 reply
 * 2 participants
 * Last reply from: [jepsonrae](https://wordpress.org/support/users/jepsonrae/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/not-workingbugproblem-with-xmlrpc-api/#post-3659273)
 * Status: resolved