Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"ErrorUtils caught an error" - Chrome console error with any Wordpress Facebook plugin

I'm trying to use a Facebook likebox plugin on a staging site and I have tried some different plugins. Independently from plugin installed I receive the same error in Chrome console:

ErrorUtils caught an error: "Cannot listen to an undefined element. TAAL[2]". Subsequent errors won't be logged; see https://fburl.com/debugjs.

I think the problem is generated directly from Facebook plugin inclusion. Unfortunately the url https://fburl.com/debugjs isn't working.

This issue doesn't apparently create any problem to the site, but I would like to have a site without any error in console.

Tee site is http://millennium.alecss.it/

Let me know if you can help me, thank you very much.

like image 922
AleCss Avatar asked Apr 29 '18 12:04

AleCss


1 Answers

This is the bug, when upgrade jQuery since 1.8. Look in your code and replace to on('load')

$(window).load(
function(){
//your code
});

To

$(window).on('load', 
function(){ 
//your code
});
like image 123
Daniel Huynh Avatar answered Oct 21 '22 06:10

Daniel Huynh