I've been running my Sharepoint web page for a long time with no problems (well, not this problem), and today I got:
Message: 'console' is undefined
Line: 1124
Note: this problem was occuring in IE, but not in Chrome. In IE, Browser Mode is IE 8; Document Mode is IE 8 Standards (Page Default)
Line 1124 is the "console.log()" line below:
$(document).ready(function () {
console.log('The ready function has been reached');
});
I found the solution to this here.
windowskm's comment below kennytm's answer says, "place if (!window.console) console = {log: function() {}}; at the top of your page!"
I did that, and the error went away. But I would like to know why and how that problem popped up "out of the murky grey sky" (it's raining here in Santa Cruz as I keyboard this) - it's not just academic curiosity, but I'm wondering if whatever caused that issue might also have had some as-yet undetected deleterious effects elsewhere that I need to look out for.
IOW, one problem is solved using the solution above, but is there something deeper that I need to root out?