jQuery Uncaught TypeError: Cannot read property 'msie' of undefined in drupal
21,270
Solution 1
Probably you have the jQuery update module installed in your Drupal Website.
Try to disable it. Also you can add jQuery migrate.
Solution 2
This issue happens because the "$.browser" property was removed in jQuery 1.9.0. You can fix this problem by adding the code below:
<script>
jQuery.browser = {};
(function () {
jQuery.browser.msie = false;
jQuery.browser.version = 0;
if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
jQuery.browser.msie = true;
jQuery.browser.version = RegExp.$1;
}
})();
</script>
Related videos on Youtube
Comments
-
Hitu Bansal almost 4 years
I'm facing following error on my Drupal Website:
caught TypeError: Cannot read property 'version' of undefined jquery.formalize.js?nkmwqx:13 Uncaught TypeError: Cannot read property 'msie' of undefined caught TypeError: Cannot read property 'version' of undefined jquery.formalize.js?nkmwqx:13 Uncaught TypeError: Cannot read property 'msie' of undefined jquery.bgiframe.min.js?v=2.1:11 Uncaught TypeError: Cannot read property 'msie' of undefined
-
A. Wolff about 9 yearsThis error is relevant to
jQuery.browser
that has been removed from jq>1.9. Upgrade plugins or downgrade jQuery version. The former, if possible, is of course better. I'd suggest you to test it using jQuery migrate: blog.jquery.com/2013/05/08/jquery-migrate-1-2-1-released
-