Episerver Uncaught TypeError: Cannot read property ‘label’ of undefined(…)

Recently, I was tried upgrading my sample site from 7 to 10. Everything looked like it had upgraded and worked as expected until I tried to load the editor. When I tried to view the editor nothing loaded! Using Chrome’s, ‘Inspect’ option, within the console I saw this error:

widgets.js:2 Uncaught TypeError: Cannot read property 'label' of undefined(…)

episerver_label_of_undefinied_1

In How To Render Custom HTML For Episerver Properties I briefly discussed the contents of the ‘modules’ and ‘modulesbin’ folders. The modules folder is the place where the core Episerver framework files get installed. As the editor wasn’t working I assumed something had gone wrong in the update process.

To fix the issue I deleted everything within my modules folder and in the Nuget ‘Package Manager Console’ I re-installed Episerver, using

update-package -reinstall EPiServer.CMS 

When issues like this have happened in the past I’ve always found it a good idea to close the solution, perform an IIS reset and clear my Temporary Internet files.

After doing this Shell.zip was re-added into the ‘Shell’ folder and CMS.zip was re-added into the ‘CMS’ folder (within ‘_protected’ in the modules bin). After opening Episerver in an incognito mode tab, the editor worked again!

Jon D Jones

Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge

More Posts

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *