Firebug reports this:
uncaught exception: [Exception... "Not enough arguments [nsIXMLHttpRequest.getResponseHeader]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://momtourage.local/sites/all/modules/contrib/fb/fb.js?a :: anonymous :: line 235" data: no]
in response to the second line (line 235) of the following code in FB_JS.ajaxEvent:
error: function(jqXHR, textStatus, errorThrown) {
var header = jqXHR.getResponseHeader();
var headers = jqXHR.getAllResponseHeaders();
debugger;
Patch attached just wraps a try/catch around the bottom 3 lines, but doesn't do anything with the exception thrown.
| Comment | File | Size | Author |
|---|---|---|---|
| fb_ajax_event_error_try_catch.patch | 664 bytes | breathingrock |
Comments
Comment #1
breathingrock commentedEr, sorry for the incomplete title.
Comment #2
Dave Cohen commentedI believe
jqXHR.getResponseHeader();is the problem. Where did I copy that from?Testing now with simply that line deleted. Its intended just to get some debug info that can be seen in a debugger.
I believe this code is reached only when the ajax callback does not return json. Which can happen when code
prints debug info, for example.Thanks for report.
Comment #3
Dave Cohen commentedI hope this is fixed, by removing the call to getResponseHeader().