cURL error 28: Connection timed out

I’ve got Gravity Forms version 2.4.16 installed and in System Status under WordPress Environment for “Background Tasks” it indicates “no - cURL error 28: Connection timed out after 2001 milliseconds.”

After an hour of googling this and troubleshooting, I still can’t seem to get resolve this error. Any help would be much appreciated. I’m on a dedicated Ubuntu 18.04 server with PHP 7.2 installed. Here are the troubleshooting steps I’ve done so far:

  • Confirmed that cURL is installed (looking at phpinfo() page I have version 7.58.0)
  • confirmed that I have OpenSSL 1.1.1
  • confirmed that I have the TLS 1.1 and 1.2 SSL protocols enabled
  • forced certificate validation with a custom function in function.php
  • increased cURL timeout to 30 seconds
  • ran cURL from the command line successfully
  • checked NGINX and PHP7.2-FPM logs for errors

What else should I be doing/checking to resolve this?


It sounds like you covered all the bases. My colleague Sam wrote this comprehensive guide:

I think you’ve checked everything, but check the article to be sure.

The last report we’ve had of this issue turned out to be a conflict with another plugin (the Easy Modal plugin.) So if you don’t find anything with the troubleshooting steps, please check for theme and plugin conflicts using these steps: