Drupal: HTTP request status fails / Drupal Status Page Reports Errors
February 23rd, 2010 | by admin |
HTTP request status Fails
Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services.
This error is actually caused by web server settings – in particular PHP’s settings (detailed in php.ini). Your web host may have disabled the following features:
- allow_fopen_url
- allow_url_fopen
If you are lucky you can add a quick hack to the top of index.php in Drupal’s root…
ini_set('allow_fopen_url','On'); ini_set('allow_url_fopen','On');
Try again after adding the above. If it still wont work your host may have disabled fsockopen() function in php.ini. You will need to ask them to enable it for you.
As far as I have found Drupals drupal_http_request function needs fsockopen() as you can see here – (http://api.drupal.org/api/function/drupal_http_request/6) and to have
allow_fopen_url and allow_url_fopen enabled in order to work.
If this won’t work then you may have to call and beg your host to enable these two PHP features – then Drupal will be fine
Home
HYGEN Web Design

October 7th, 2011 at 4:11 am
Thanks guys…
Guess you were unlucky with the above
September 29th, 2011 at 8:59 pm
So true as Indie says, I found this blog as first result by Google, but the proposed solution doesn’t worked for me. Doing as Indie says, adding an entry in etc/hosts with the hostname for my app was the way for it…
September 20th, 2011 at 6:25 am
Maybe the parameters are:
* allow_url_fopen
* allow_url_include
http://php.net/manual/en/filesystem.configuration.php
October 8th, 2010 at 7:38 pm
I had exactly the same same problem and your blog was one of the first results returned by Google. However your solution didn’t solve my problem. To fix it I had to add an entry to /etc/hosts with the hostname I was accessing the server by.