November Happy Hour will be moved to Thursday December 5th.

Dojo error in CMS edit mode on a specific page after CMS 12 upgrade.

Vote:
 

Hello all,

We did an upgrade from CMS 11 to 12 and while the site is up and running, we have observed that for a couple of page types am not able to get to the CMS. There is error in DOJO and I tried debugging it and see following error.

epi.js:4092 TypeError: Cannot read properties of undefined (reading 'hasSubProperties')
    at Object.populateContentModel (ModelPopulation.js:25:38)
    at Object.<anonymous> (ContentViewModel.js:808:45)
    at dojo.js:3135:55
    at signalListener (dojo.js:8325:21)
    at signalWaiting (dojo.js:8316:4)
    at Deferred.resolve (dojo.js:8480:5)
    at epi.js:1137:16
    at signalListener (dojo.js:8325:21)
    at signalWaiting (dojo.js:8316:4)
    at Deferred.resolve (dojo.js:8480:5)

On this page type I have a property ContentReference for HeroImage and in debugging this ModelPopulation.js I see that propertyMetadata for HeroImage is undefined and it errors out. Any inputs on what could I be missing and how to resolve this?

#309950
Oct 04, 2023 2:05
Vote:
 

The error suggest that some property wasn't migrated properly. Have you checked so the content types don't have any dangling properties?

How does this look for the page types that are having issues? (Navigate to /EPiServer/EPiServer.Cms.UI.Admin/default#/ContentTypes)

#309957
Oct 04, 2023 8:13
Vote:
 

Content type does have some dangling properties but the property (HeroImage) on which it is erroring out exists in code.

#309968
Oct 04, 2023 12:20
Vote:
 

Found that there were some properties marked as JsonIgnore (along with HeroImage). On removing those attributes the issue got resolved and able to get into edit mode.

#310087
Oct 05, 2023 0:15
Eric Herlitz - Oct 05, 2023 7:36
Still seem like a bug to me. Thanks for telling.
Vote:
 

Sounds like this (now fixed) issue, I think?
https://world.optimizely.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=CMS-30050 

Fixed in: EPiServer.CMS.UI 12.22.7

#310111
Oct 05, 2023 14:28
Dileep D - Oct 05, 2023 15:28
Thank you for the update Daniel. I will try to upgrade and check it out by putting back the code.
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.