Drupal HTTP request status fails on localhost

  • strict warning: Non-static method view::load() should not be called statically in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/views.module on line 843.
  • strict warning: Declaration of views_plugin_display::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/plugins/views_plugin_display.inc on line 1877.
  • strict warning: Declaration of views_plugin_display_page::options_submit() should be compatible with views_plugin_display::options_submit(&$form, &$form_state) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/plugins/views_plugin_display_page.inc on line 481.
  • strict warning: Declaration of views_plugin_display_block::options_submit() should be compatible with views_plugin_display::options_submit(&$form, &$form_state) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/plugins/views_plugin_display_block.inc on line 193.
  • strict warning: Declaration of views_handler_field_broken::ui_name() should be compatible with views_handler::ui_name($short = false) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/handlers/views_handler_field.inc on line 641.
  • strict warning: Declaration of views_handler_sort_broken::ui_name() should be compatible with views_handler::ui_name($short = false) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/handlers/views_handler_sort.inc on line 82.
  • strict warning: Declaration of views_plugin_row::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.
  • strict warning: Declaration of views_plugin_row::options_submit() should be compatible with views_plugin::options_submit(&$form, &$form_state) in /home/curiousm/public_html/blog.curiousmedia.com/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.

I was working on a test Drupal site in Windows XP using XAMPP and it was running really slow.  Status Reports showed the following error:

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 is a pretty common issue with a wide variety of causes, judging from the amount of entries at http://drupal.org/node/222454.  None of the solutions on that page worked for me though.  Finally, I found that the problem went away if I directed my browser to http://127.0.0.1/mySite as opposed to http://localhost/mySite.  My etc/hosts file already has a 127.0.0.1 localhost entry, which I thought meant those two were interchangeable, but apparently I don't understand how that really works (and I'm man enough to admit that). If you can enlighten me, please do so. Otherwise, if you are experiencing this issue, try using the numeric localhost ip as a workaround.

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <pre> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options