Title: WP_SMUSH_API_TIMEOUT
Last modified: January 3, 2018

---

# WP_SMUSH_API_TIMEOUT

 *  Resolved [abhirosh1](https://wordpress.org/support/users/abhirosh1/)
 * (@abhirosh1)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/)
 * getting error “Skipped due to a timeout error, You can increase the request timeout
   to make sure Smush has enough time to process larger files. `define('WP_SMUSH_API_TIMEOUT',
   150);`.”
    i exceeded the time limit to 150 still same problem…
 * and while smushing individual got error “Error posting to API: cURL error 6: 
   Couldn’t resolve host ‘smushpro.wpmudev.org'”
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp_smush_api_timeout%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Umesh Kumar](https://wordpress.org/support/users/umeshsingla/)
 * (@umeshsingla)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/#post-9830173)
 * Hey [@abhirosh1](https://wordpress.org/support/users/abhirosh1/),
 * Can you check with your host if there is a firewall in place which might be blocking
   Smush servers. In case if it’s a local install there might be some issue with
   the Internet access if you’re running on a virtualbox.
 * Let me know the response from your hosting provider.
 * Thanks, Umesh
 *  [Jairo Ochoa](https://wordpress.org/support/users/jairoochoa/)
 * (@jairoochoa)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/#post-9858381)
 * Hi [@umeshsingla](https://wordpress.org/support/users/umeshsingla/) ,
 * Since a few days some websites are down when opening Media because a timeout.
   
   If I deactivate WP Smush everything works fine again.
 * As you say, maybe our server firewall is blocking Smush servers.
    What are they
   IP to add them to the white list ?
 * Thanks
 *  [Umesh Kumar](https://wordpress.org/support/users/umeshsingla/)
 * (@umeshsingla)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/#post-9858404)
 * Hey [@jairoochoa](https://wordpress.org/support/users/jairoochoa/),
 * That seems like a different issue altogether, Can you please open a separate 
   thread, I’ll help you out with this.
 * Thanks, Umesh
 *  [Jairo Ochoa](https://wordpress.org/support/users/jairoochoa/)
 * (@jairoochoa)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/#post-9858441)
 * Thanks [@umeshsingla](https://wordpress.org/support/users/umeshsingla/), I’ve
   just already open the ticket.
 *  Thread Starter [abhirosh1](https://wordpress.org/support/users/abhirosh1/)
 * (@abhirosh1)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/#post-9893039)
 * now getting error:
 * Error posting to API: cURL error 6: Couldn’t resolve host ‘smushpro.wpmudev.org’
 *  Plugin Support [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/#post-10217193)
 * Hello [@abhirosh1](https://wordpress.org/support/users/abhirosh1/),
 * I’m really sorry for the huge delay here, somehow we missed this topic.
 * Is this still on-going in your end?
    Have you contacted your hosting provider
   like Umesh mentioned above? Please advise!
 * Warm regards,
    Dimitris
 *  [buyyes](https://wordpress.org/support/users/buyyes/)
 * (@buyyes)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/#post-10429138)
 * Hey, same problem. What i can to do?
 * Пропущено из-за ошибки таймаута. Вы можете увеличить таймаут запроса чтобы убедиться
   что Smush достаточно времени для обработки больших изображений. `define('WP_SMUSH_API_TIMEOUT',
   150);`
 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/#post-10429751)
 * Hey [@buyyes](https://wordpress.org/support/users/buyyes/),
 * Hope you’re well.
 * Did you try that code recommendation? If it does not help it can be the same 
   problem that your server can block Smush servers, can you ask that to hosting
   provider?
 * Also, according to WordPress.org forum guides, you need to create a new thread;
 * > Unless users have the exact same version of WordPress on the same physical 
   > server hosted by the same hosts with the same plugins, theme, and configurations,
   > then the odds are the solution for one user will not be the same for another.
   > For this reason, we recommend people start their own topics.
 * ([https://make.wordpress.org/support/handbook/forum-welcome/#post-in-the-best-place](https://make.wordpress.org/support/handbook/forum-welcome/#post-in-the-best-place))
 * Can you create your own thread?
 * Cheers,
    Oguz
 *  [buyyes](https://wordpress.org/support/users/buyyes/)
 * (@buyyes)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/#post-10430075)
 * Hello again. Hope you too.
 * I’ve tried over and over and over and over… After 6-10 attempts, the program 
   finally checked all my images. So I don’t need help any more. I use Cloudflare,
   maybe this information will be useful for you.
 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/#post-10431964)
 * Hey [@buyyes](https://wordpress.org/support/users/buyyes/),
 * Hope you’re well.
 * We had some issues related to Cloudflare but they are should fix after the latest
   release. But I will check it again to be sure. Thanks for the information.
 * Cheers,
    Oguz

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

The topic ‘WP_SMUSH_API_TIMEOUT’ 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/)

## Tags

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

 * 10 replies
 * 6 participants
 * Last reply from: [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/wp_smush_api_timeout/#post-10431964)
 * Status: resolved