Drupal 7: Notice: Undefined offset: 2 in drupal_http_request() (line 993 of

Using Drupal 7, When registering a new user do you get the following message?

  • “Notice: Undefined offset: 2 in drupal_http_request() (line 993 of”

If you get this message, you are not alone. This is the result of an error communicating with Facebook, and facebook is incorrectly responding. Unfortunately, to correct the problem, you must adjust the core file common.inc. On line 993 of /includes/common.inc insert a technical error in Drupal. The following will correct the error.

Replace:
list($protocol, $code, $status_message) = explode(‘ ‘, trim(array_shift($response)), 3);

With:
list($protocol, $code, $status_message) = explode(‘ ‘, array_shift($response), 3);

Leave a Reply