Title: Error while connecting: (#0) while insert API-Key
Last modified: May 11, 2018

---

# Error while connecting: (#0) while insert API-Key

 *  Resolved [meeett](https://wordpress.org/support/users/meeett/)
 * (@meeett)
 * [8 years ago](https://wordpress.org/support/topic/error-while-connecting-0-while-insert-api-key/)
 * My WordPress is up to date and when i insert my API-Key I got this message:
 * Error while connecting: (#0)
 * Does anyone can help me?

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

 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [8 years ago](https://wordpress.org/support/topic/error-while-connecting-0-while-insert-api-key/#post-10277658)
 * Hello meeett, the error would happen when the server your WordPress runs on cannot
   connect to the API at api.tinify.com. Would you be able to ask the maintainer
   of the server why it cannot connect?
 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-while-connecting-0-while-insert-api-key/#post-10464844)
 * Hello meeett, we have done some further testing to see where `Error while connecting:(#
   0)` can come from and see that for example disabling the PHP **curl_exec** function
   in php.ini can generate this issue. We will be adding some changes for this error
   to be more clear in what is causing it in the next plugin release.
    -  This reply was modified 7 years, 11 months ago by [TinyPNG](https://wordpress.org/support/users/tinypng/).

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

The topic ‘Error while connecting: (#0) while insert API-Key’ is closed to new replies.

 * ![](https://ps.w.org/tiny-compress-images/assets/icon-256x256.png?rev=3448487)
 * [TinyPNG - JPEG, PNG & WebP image compression](https://wordpress.org/plugins/tiny-compress-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tiny-compress-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tiny-compress-images/)
 * [Active Topics](https://wordpress.org/support/plugin/tiny-compress-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tiny-compress-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tiny-compress-images/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/error-while-connecting-0-while-insert-api-key/#post-10464844)
 * Status: resolved