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.

CommentFileSizeAuthor
fb_ajax_event_error_try_catch.patch664 bytesbreathingrock

Comments

breathingrock’s picture

Er, sorry for the incomplete title.

Dave Cohen’s picture

Title: Exception thrown » uncaught exception in javascript
Version: 6.x-3.0-rc15 » 6.x-3.x-dev
Issue tags: +fb3-blocker

I 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.

Dave Cohen’s picture

Status: Needs review » Fixed

I hope this is fixed, by removing the call to getResponseHeader().

Automatically closed -- issue fixed for 2 weeks with no activity.