NextScripts SNAP – couldn’t connect to host

If you’ve ever encountered this error while using NextScripts SNAP, you know that’s it’s not very simple to resolve:

WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => couldn’t connect to host ) Another possible error: Name lookup timed out Another possible error: connect() timed out! Another possible error: Couldn’t resolve host ‘’ Another possible error: Operation timed out after … Another possible error: Connection reset by peer ** Another possible error: Failed to connect to Permission denied

The FAQ for NextScripts states that adding a timeout request to functions.php will correct this issue.  I’ve had to increase the variable to see results effectively, but it certainly beats contacting your host for assistance:

add_filter('http_request_timeout', function(){return: 5;});


Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.