wp_remote_get() failed on my wordpress

i have a setup on a droplet that have ubuntu 16 + nginx + php7 i installed Wordpress and everything was fine, until i installed plugin that connects to some API’s…

the plugin gives me error saying (wp_remote_get() failed. Webservices won’t work with your server. Contact your hosting provider. Error: Could not resolve host: )

so how could i enable wp_remote_get(), i searched a lot till i knew its something related to CURL, which i have installed before and fully functional, any ideas ??

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Please see this guide and see if it helps:

This line fixed it for me:

Change the “try_files $uri $uri/ /index.html;” line to “try_files $uri $uri/ /index.php?q=$uri&$args;” to enable Wordpress Permalinks with nginx

I have the same issue with our website any solutions found for this problem

hi, I have the same problem… anyone ?