Cannot read property 'contentData' of null -- Publish (when EPiServer.Marketing.Testing installed)

Vote:
 

Hello All,

I am starting out my journey into EpiServer and trying to spin up the AlloyDemo application. I am playing around with Users and associated permissions (more specifically Publishing a page). I ran into an issue where the Publish "popup" is not showing up. When I see the console I get the following error. This error goes away and the Publish popup comes up correctly when I uninstall the EPiServer.Marketing.Testing (I am not sure about the dependency between the Marketing.Testing and popups)

Uncaught TypeError: Cannot read property 'contentData' of null
at Object._isOpenSetter (widgets.js:2)
at Object.set (epi.js:2)
at Object.onOpen (widgets.js:2)
at Object.open (widgets.js:2)
at Object.advice (dojo.js:15)
at Object._264 [as open] (dojo.js:15)
at Object.openDropDown (widgets.js:2)
at Object.<anonymous> (widgets.js:2)
at dojo.js:15
at Object.loadAndOpenDropDown (widgets.js:2)

Would really appreciate any pointers.

Sincerely

#200227
Edited, Jan 07, 2019 0:16
Vote:
 

I just started getting this myself today.   I don't think it has to do with the Episerver.Marketing.Testing as much as it has something to do with the new version EPiServer.CMS.UI.   I went back down the 11.13.2 on EPiServer.CMS.UI & dependencies, and it worked for me.   I then grabbed the new version  of this (11.14.0) and I got the same error.

Try taking EPiServer.CMS.UI back and see if it works for you.   In the meantime, I'll report this as a bug.

#200262
Jan 07, 2019 20:55
Vote:
 

Could you detail the reproduction steps? I am running a 11.14.0 site without issue.

#200328
Jan 09, 2019 8:22
Vote:
 

I've just tried updating to EPiServer.CMS.UI 11.14.0 and also EPiServer.Forms 4.22.0 and we're seeing the same issue.

#200351
Jan 09, 2019 14:52
Vote:
 

Can you enable debug scripts by adding the <clientResources debug="true" /> to the episerver.framework section of the web.config. This will produce a more traceable strack trace. Also reproduction steps would help a lot.

#200353
Jan 09, 2019 14:57
Vote:
 

Here's the stack trace:

TypeError: Cannot read property 'contentData' of null
    at Object._isOpenSetter (http://localhost:49945/EPiServer/CMS/11.14.0/ClientResources/epi-cms/contentediting/viewmodel/PublishMenuViewModel.js:164:50)
    at Object.set (http://localhost:49945/EPiServer/Shell/11.14.0/ClientResources/epi/epi.js:4088:33)
    at Object.onOpen (http://localhost:49945/EPiServer/CMS/11.14.0/ClientResources/epi-cms/contentediting/PublishMenu.js:252:24)
    at Object.open (http://localhost:49945/EPiServer/Shell/11.14.0/ClientResources/dijit/popup.js:272:12)
    at Object.advice (http://localhost:49945/EPiServer/Shell/11.14.0/ClientResources/dojo/dojo.js:6158:45)
    at Object.dispatcher [as open] (http://localhost:49945/EPiServer/Shell/11.14.0/ClientResources/dojo/dojo.js:6139:57)
    at Object.openDropDown (http://localhost:49945/EPiServer/Shell/11.14.0/ClientResources/dijit/_HasDropDown.js:474:23)
    at Object.<anonymous> (http://localhost:49945/EPiServer/Shell/11.14.0/ClientResources/dijit/_HasDropDown.js:353:11)
    at http://localhost:49945/EPiServer/Shell/11.14.0/ClientResources/dojo/dojo.js:3135:55
    at Object.loadAndOpenDropDown (http://localhost:49945/EPiServer/Shell/11.14.0/ClientResources/dijit/_HasDropDown.js:359:5)

for reproducable steps, just make any change to any block and the error is thrown.

Hopefully that's helpful a little bit

EDIT: And this is a pastebin dump of the log file Chrome spits out.

#200357
Edited, Jan 09, 2019 15:18
Vote:
 

Thanks, for the update. We are looking into the issue, you can track the bug here: https://world.episerver.com/support/Bug-list/bug/CMS-12825

#200390
Edited, Jan 10, 2019 14:04
Vote:
 

A workaround is to go back to version: https://nuget.episerver.com/package?id=EPiServer.CMS.UI&v=11.13.2

#200397
Jan 10, 2019 15:59
Vote:
 

Upgraded to latest and we are seeing the same issue.

#200443
Jan 11, 2019 19:18
Vote:
 

@Ben: Is it a way to disable AB testing on the site (like this app setting for projects episerver:ui:IsProjectModeEnabled = false)? Then we do not have to downgrade or uninstall the Marketing nuget packages?

#200508
Jan 14, 2019 16:25
Vote:
 

I'm not sure. I'm not very familiar with the add-on. Uninstalling is probably your best bet if you don't want to downgrade CMS UI while they fix the issue. I have submitted a PR with a fix to the team responsible for the add-on so it should hopefully be available next week.

#200517
Jan 14, 2019 18:30
Vote:
 

The bug is still in there with EPiServer.CMS.UI 11.15.0 released on 21st January 2019 so I've had to downgrade to 11.13.2. Will a fix require an update to the A/B testing package EPiServer.Marketing.Testing?

#200699
Jan 23, 2019 9:13
Vote:
 

The issue will be fixed in the next release of EPiServer.Marketing.Testing

#200705
Jan 23, 2019 9:54
Vote:
 

If seems to work if you remove the Archived Tests gadget from the side panels

EDIT: This was probably just a stroke of luck. Don't work again after logging out and in again.

#200965
Edited, Jan 31, 2019 15:29
Vote:
 

Also stepped back to CMS.UI 11.3.2 to resolve this issue until further notice.

#201048
Feb 04, 2019 9:26
Vote:
 

EPiServer.Marketing.Testing 2.5.5 has been released which fixes this issue: https://nuget.episerver.com/package/?id=EPiServer.Marketing.Testing&v=2.5.5

#201186
Edited, Feb 08, 2019 10:29
Vote:
 

Awesome Ben!

Thanks for letting us know.

#201206
Feb 08, 2019 16:47
Vote:
 

Thank you! Tested in our project. Working w/o any issues. 

#201209
Feb 08, 2019 17:19
Vote:
 

I am not quite there yet. Dojo reports an error about "out of date" jQuery, which might be my problem. How do I that fixed?

In "modules\_protected\Shell\Shell\11.17.1\ClientResources"

there is a file called: EPiJQuery.js, which has verson 1.3.2. Is this the one being used by /episerver ?

I have the following nuget-versions:
* EPiServer.CMS.Core.11.11.2
* EPiServer.CMS.UI.Core.11.17.1

/Robert

--- stacktrace with <clientResources debug="true" .. /> -----

dojo.js:15 Error: Query is out of date, you must observe() the query prior to any data modifications
at widgets.js:2
at _2f2 (dojo.js:15)
at _2ec (dojo.js:15)
at resolve (dojo.js:15)
at _2f2 (dojo.js:15)
at _2ec (dojo.js:15)
at _2f1.resolve (dojo.js:15)
at Object.<anonymous> (XhrWrapper.js:53)
at dojo.js:15
at _2f2 (dojo.js:15) "Error: Query is out of date, you must observe() the query prior to any data modifications
at https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/epi/shell/widgets.js:2:491050
at _2f2 (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:75368)
at _2ec (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:75232)
at resolve (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:76693)
at _2f2 (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:75368)
at _2ec (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:75232)
at _2f1.resolve (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:76693)
at Object.<anonymous> (https://local.asdfsadf.net/ClientResources/Adfs/XhrWrapper.js:53:26)
at https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:30941
at _2f2 (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:75368)
----------------------------------------
rejected at _2f8 (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:76009)
at _2f2 (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:75620)
at _2ec (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:75232)
at resolve (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:76693)
at _2f2 (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:75368)
at _2ec (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:75232)
at _2f1.resolve (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:76693)
at Object.<anonymous> (https://local.asdfsadf.net/ClientResources/Adfs/XhrWrapper.js:53:26)
at https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:30941
at _2f2 (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:75368)
----------------------------------------
Error
at Promise.then._2ff.then (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:77181)
at Function.when (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:82069)
at Array._dd7 (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/epi/shell/widgets.js:2:490920)
at Object._dc8.notify (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/epi/shell/widgets.js:2:490534)
at Object.advice (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:56626)
at Object._264 [as notify] (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:56334)
at TMP._e47.notify (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/epi/shell/widgets.js:2:499370)
at Object.advice (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:56626)
at TMP._264 [as notify] (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/dojo/dojo.js:15:56334)
at TMP.<anonymous> (https://local.asdfsadf.net/EPiServer/Shell/11.17.1/ClientResources/epi/shell/widgets.js:2:497637)"

#201594
Edited, Feb 23, 2019 12:07
Vote:
 

You have misread the stacktrace. The error is about a query to a dojo store. This error can be ignored.

#201595
Feb 23, 2019 13:35
Vote:
 

@Ben, yes you are right! At the time I wrote this, I could not see the publish dialog, but now I can.

All good. Thanks.

#201600
Feb 23, 2019 16:17
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.