Search code examples
javascriptjquerysitecoresitecore6sitecore7

Getting JS error after upgrade Sitecore version 6.6 to 7.0


We have upgraded Sitecore v6.6 to Sitecore v7.0.But I'm not able to publish.When I clicked on Publish link nothing happens. Then I checked error in Mozilla Web Console as given below:

enter image description here

ERROR:

TypeError: this.browser.showModalDialog is not a function.

What did I miss.

Thanks


Solution

  • This is because showModalDialog is deprecated in modern browsers.

    showModalDialogs was used in pre-7.1 Sitecore releases.

    What you need is to install a proper package for you Sitecore version.

    Here is a list of Sitecore Support patches for different Sitecore versions:

    Sitecore Knowledge Base: Sitecore does not work in Chrome 37 and later

    or

    Fixing Chrome's ShowModalDialog JavaScript Error In Sitecore