tags:

views:

199

answers:

4

Hey guys

I get this error on my wordpress blog hosted on my server each time i search for plugins or try to upgrade wordpress and on the dashboard. I have tried changing the timeout from 5 to 30 in the http.php file in wp-includes. This did NOT help. My blog works perfectly fine. This problem is really annoying as I have to manuall copy plugins and themes and upgrades.

A: 

If I'm honest, I'm at a bit of a loss. I googled the error and there seemed quite a few resources on it (admittedly most suggesting the timeout fix). But I did find a comment that might help?

TheDeadMedic
A: 

What's your PHP memory_limit? I recently ran into problems when enabling plugins as my limit was set to 24M, upping it to 64M solved all the problems.

deadlyhifi
thanks but it din work..
Ram Bhat
+2  A: 

I had this problem the other day. It was due to my server's firewall settings not allowing outbound connections to port 80 (which is what the Wordpress plugin install stuff uses)

I just restarted the firewall and fail2ban (to be sure) and it started working.

Is your web server behind a firewall?

ZhanZhuang
not too sure... how do i restart it??
Ram Bhat
On most servers, it should be:sudo /etc/init.d/fail2ban restartsudo /etc/init.d/iptables restart(or if you are logged in as root, remove the sudo)
ZhanZhuang
+1  A: 

It seems that your host can't see the WordPress server in order to query it for searches and updates. This will be because of some configuration of your host or its network, controlled by your hosting company.

Raise a support request with your hosting company, telling them that your hosting machine has a problem connecting to api.wordpress.org (which is almost certainly the server you're having trouble connecting to) and asking them to look into the problem.

You may have more luck asking on ServerFault; this isn't really a programming question.

Matt Gibson