Search code examples
javascriptmigrationsitecoresitecore7sitecore8.1

Sitecore "Uncaught ReferenceError: MultilistWithSearch is not defined"


We are in the process of migrating a customers website from sitecore 7 to sitecore 8.1 initial release.

We have created packages that contain the items from the sitecore 7 instance and installed these packages on the sitecore 8.1 instance.

Now on some items we get the following console error when we click on the node:

Uncaught ReferenceError: MultilistWithSearch is not defined

Has anyone got an idea how we got this error and how we can solve it?

It's really anoying because once you've got this error alot of the actions (like clicking the right mouse button on an item) show the message:

Please wait while the Content Editor is loading


Solution

  • If the script cannot be found, you can try to following (based on: Bug: Sitecore Multilist and Treelist With Search Field Search Not Working Intermittently).

    Add the following lines right before the closing head tag of the editor layout: Website\sitecore\shell\Applications\Content Manager\Default.aspx

    The relative path to the script is: /sitecore/shell/Applications/Buckets/Scripts/MultilistwithSearch.js