Title: res.data is undefined
Last modified: August 31, 2016

---

# res.data is undefined

 *  Resolved [homeworker](https://wordpress.org/support/users/homeworker/)
 * (@homeworker)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/resdata-is-undefined/)
 * Hi, I’m receiving a JS error when click on SMUSH button.
 * TypeError: res.data is undefined
    [http://www.countryhousegradassi.it/wp-content/plugins/wp-smushit/assets/js/wp-smushit-admin.js](http://www.countryhousegradassi.it/wp-content/plugins/wp-smushit/assets/js/wp-smushit-admin.js)
   Riga: 266
 * I’ve tried to investigate but is a very complex JS.
 * [https://wordpress.org/plugins/wp-smushit/](https://wordpress.org/plugins/wp-smushit/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Umesh Kumar](https://wordpress.org/support/users/umeshsingla/)
 * (@umeshsingla)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/resdata-is-undefined/#post-7097643)
 * Hi [@homeworker](https://wordpress.org/support/users/homeworker/),
 * Can you possibly check the ajax response in the network tab, and paste it in 
   here.
 * That’d help me get to the error, so that I can include a quick fix in upcoming
   release.
 * Cheers
 *  Thread Starter [homeworker](https://wordpress.org/support/users/homeworker/)
 * (@homeworker)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/resdata-is-undefined/#post-7097653)
 * Yes, of course
 * GET
    [http://www.reartuassisi.com/wp-admin/admin-ajax.php?lang=it?action=wp_smushit_manual&attachment_id=492&get_next=0](http://www.reartuassisi.com/wp-admin/admin-ajax.php?lang=it?action=wp_smushit_manual&attachment_id=492&get_next=0)
 * Response
    0
 *  [Umesh Kumar](https://wordpress.org/support/users/umeshsingla/)
 * (@umeshsingla)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/resdata-is-undefined/#post-7097656)
 * Oops! A fix is already on the way for that issue 🙂
 * Hope to have a plugin release, very soon.
 * Thanks
 *  Thread Starter [homeworker](https://wordpress.org/support/users/homeworker/)
 * (@homeworker)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/resdata-is-undefined/#post-7097660)
 * Wow, thank you
 *  [Umesh Kumar](https://wordpress.org/support/users/umeshsingla/)
 * (@umeshsingla)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/resdata-is-undefined/#post-7097714)
 * Hey there,
 * Check for the update, should be fixed with 2.1.4
 * Thanks
 *  Thread Starter [homeworker](https://wordpress.org/support/users/homeworker/)
 * (@homeworker)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/resdata-is-undefined/#post-7097715)
 * Yes, It work now. Thank you

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘res.data is undefined’ is closed to new replies.

 * ![](https://ps.w.org/wp-smushit/assets/icon-256x256.gif?rev=3447113)
 * [Smush – Image Optimization, Compression, Lazy Load, WebP & CDN](https://wordpress.org/plugins/wp-smushit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-smushit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-smushit/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-smushit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-smushit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-smushit/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [homeworker](https://wordpress.org/support/users/homeworker/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/resdata-is-undefined/#post-7097715)
 * Status: resolved