wp_remote_get() failed on my wordpress

May 29, 2016 10k views
LEMP WordPress Ubuntu 16.04

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 (wpremoteget() failed. Webservices won’t work with your server. Contact your hosting provider. Error: Could not resolve host: xxx.xxx.xxxx

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

4 Answers

In addition to curl itself have you installed the php curl module to allow php to make requests?

sudo apt-get update
sudo apt-get install php7.0-curl

ok i did what you suggested, but nothing changed, still get the same error

can somebody please help me with this, i’m really stuck

hi, I have the same problem… anyone ?

Have another answer? Share your knowledge.