As discussing here http://drupal.org/node/1794142 (we'll bother about duplicates later),
when a hierarchical select item is clicked, and after the json response is served, we have this
Uncaught Error: Invalid DOM node passed to FB.XFBML.parse()

Fact is, fb_connect should not be parsing anything in this case.

Comments

brazorf’s picture

Issue summary: View changes

Just adding code tags.

agalitsyn’s picture

FB parse everything instead document on page load.

Drupal.behaviors.fbconnect = function(context) {
    if (context != document) {
      jQuery(context).each(function() { FB.XFBML.parse(this); });
    }
    Drupal.fbconnect.initLogoutLinks(context);
  }

I add condition to disable this parsing in admin theme.

brazorf’s picture

Yeah, that's a workaround, but this looks like we are going to be unable to use any json on the front theme? Hierarchical select might be used on frontend too, for instance.
Maybe this requires a deeper approach, and skip parsing when parser is not matching the right doctype?

MacK’s picture

Same problem here, and more strangely it started to throw in errors on a website with no apparent reason, i didn't updated fbconnect or hierarchicalselect modules in the meanwhile, neither installed new modules.

Chrome tells me that the uncaught error comes from "all.js", which is facebook side. Probably the file got changed from fb the last month.

I'm throwing in the fb.js file a

try { 
    FB.XFBML.parse(); 
} 
catch(e) {
    // 
}

Until someone fixes that.
With this Hierarchical select and other json are working fine for me, front and backend.

Edit
As I expected also drupal for facebook users got the same problem:
http://drupal.org/node/1791986

Exgerth’s picture

once it's enabled all image previews and CK Editor stop working. Tryed to search for a solution, but couldn't find any.

Can anyone help me please?

brazorf’s picture

Exgerth,
please provide more details, how can we know your issue is related to this one?
You have any error in your browser javascript console?

attishu’s picture

subscribe

attishu’s picture

Issue summary: View changes

typo