"Uncaught TypeError: Cannot read property 'msie' of undefined"

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

After adding a JIRA Issue Collector to a website, the following exception is thrown when the page is loading:

Uncaught TypeError: Cannot read property 'msie' of undefined
com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs.js:1

Diagnosis

This error is thrown when using jQuery 1.9.0.

Cause

This happens because the "$.browser" property was removed in jQuery 1.9.0, and most of the users still use the "$.browser" property in the Issue Collector's code. There is a bug or this issue tracked on  JRA-31576 - Getting issue details... STATUS

Workaround

Use jQuery Migrate which allows using removed functions and gives a notice about removed functions (in the console.log).

Resolution

  • The following code should help to resolve the issue

    navigator.appName == 'Microsoft Internet Explorer'
    

    This will have the same effect as:

    $.browser.msie
    
Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.