Cannot read property 'contentData' of null

  • Updated

The article describes an issue with saving content in the CMS after having upgraded the Episerver.Marketing.Testing package.  The error that the user sees in the browser console is: 

TypeError: Cannot read property 'contentData' of null at Object.


To resolve the issue please follow these steps.

  1. Remove Episerver.Marketing.Testing . Make sure the modules\_protected\EPiServer.Marketing.Testing is not orphaned.
  2. Confirm the solution works fine.
  3. Reintroduce Episerver.Marketing.Testing.
  4. Clear Local Storage, Session Storage and my site cookie.