Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
http://api.drupal.org/api/function/drupal_http_request/7
if (!$fp) {
...
variable_set('drupal_http_request_fails', TRUE);
if drupal_http_request is called before the database is installed, variable_set will make a Fatal error..
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedNot nice, but what could you do about it? ;)
Comment #2
Pasquallecan we check the db?
Comment #3
David_Rothstein CreditAttribution: David_Rothstein commentedOne option is to get rid of the whole 'drupal_http_request_fails' thing altogether -- it is causing enough other troubles as it is.
See #245990-124: HTTP request testing unreliable and may be undesirable.
Comment #4
Gábor HojtsyThat discussion is now at #965078: HTTP request checking is unreliable and should be removed in favor of watchdog() calls.
Comment #5
Sutharsan CreditAttribution: Sutharsan commentedFor info: This now fixed for Drupal 8. See #965078-58: HTTP request checking is unreliable and should be removed in favor of watchdog() calls. Needs work for backport to D7.
Comment #6
PasqualleDuplicate of #965078: HTTP request checking is unreliable and should be removed in favor of watchdog() calls
Comment #7
Pasqualle