Closed (works as designed)
Project:
Facebook OAuth (FBOAuth)
Version:
7.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 May 2012 at 12:53 UTC
Updated:
5 Nov 2014 at 11:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
quicksketchI've never been able to reproduce this problem and we haven't gotten any confirming reports. I'm not sure what to do about this issue. Can you provide any additional or new information? Is this problem still occuring?
Comment #2
sbilde commentedI am just starting to have the saem problem, after updating to newest Panels version: 7.x-3.4 : screenshot: http://d.pr/i/5bXi
Im using the Fboauth version: 7.x-1.6
Could anybody please point me in the right direction!?
Comment #3
niknjegovan commentedSame here on a bitnami stack on AWS
Notice: Undefined offset: 2 in drupal_http_request() (line 993 of /opt/bitnami/apps/drupal/htdocs/includes/common.inc).
Notice: Undefined offset: 2 in drupal_http_request() (line 993 of /opt/bitnami/apps/drupal/htdocs/includes/common.inc).
Everything seems to login properly but this notice is being generated for some reason I don't know.
Comment #4
juanramonperez commentedSame here. I didn't do anything in my site. All works fine but the Notice is now showing to the users
Comment #5
graber commentedHi all.
The problem is that drupal_http_request assumes that status message is present in the response header.
Normal response header has it (e.g. HTTP/1.0 200 OK), while the header from facebook has only HTTP/1.0 200.
What needs to be done is a patch to drupal_http_request in common.inc to adopt it to this situation, like so:
line 996 insetead of:
list($protocol, $code, $status_message) = explode(' ', trim(array_shift($response)), 3);we put:
I just hacked drupal core. Hopefully this will be included in the next version, because I don't have permissions to contribute such patches.
Comment #6
intrafusionMarking as duplicate of #2224927: Undefined offset: 2 in drupal_http_request() when querying Facebook URLs
Comment #7
ravi_admec commented@#5
thanks
it is working just like a charm for me. as u hacked the core code don't know what type of challenge i can face in near future.
One suggestion: don't replace the line completely; keep the original content commented for future use.
thanks
again.
Comment #8
intrafusionThe parent issue #205969: drupal_http_request() assumes presence of Reason-Phrase in response Status-Line has been fixed now, so hopefully this should be OK now