1

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.

3
  • You should look at your server error logs to see why this is happening. It should shed some light on the problem. Commented Jun 20, 2010 at 10:24
  • Tell me your server specs and your hosting provider, I'm around hosting businesses and their server configuration problems. Commented Jun 25, 2010 at 17:39
  • Is that the exact error message? Maybe it's possible to search through the Wordpress code and find more detailed info at the point the error is raised. There should be some more info somewhere: Status codes, request URLs... Commented Jun 27, 2010 at 8:52

5 Answers 5

2
+25

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?

Sign up to request clarification or add additional context in comments.

3 Comments

On most servers, it should be: sudo /etc/init.d/fail2ban restart sudo /etc/init.d/iptables restart (or if you are logged in as root, remove the sudo)
What is the address of the Wordpress API in case I want to only allow connections to their site rather than everyone?
@Jon I believe this is what your looking for: api.wordpress.org e.g. to see the version check: api.wordpress.org/core/version-check/1.2
1

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.

Comments

1

I had the same problem and it drove me mad!! The issue was actually in /etc/php5/apache2/php.ini and nothing to do with the time out problem everyone is going on about (for me at least) I was convinced it wasn't a time out issue because I was presented with the problem immediately upon requesting the download, so here is the solution and I hope it helps others:

sudo nano /etc/php5/apache2/php.ini

change: allow_url_fopen = Off
to: allow_url_fopen = On

Then restart apache server: sudo /etc/init.d/apache2 restart

Comments

0

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?

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.