I would guess that there is some eventhanlder that is listening to some event like IContentEvents.PublishedContent or similar and is expecting the content to be a PageData. If you turn on log4net logging can you see any stacktrace for this error?
Thanks for the reply Johan.
Here's what I found in the stacktrace
2018-06-26 12:04:40,549 [7] ERROR EPiServer.Cms.Shell.UI.Rest.ContentChangeManager: Unexpected error when saving 237_1482
EPiServer.Core.TypeMismatchException: Content with id '237_1482' is of type 'EPiServer.Core.ContentFolder' which does not inherit required type 'EPiServer.Core.PageData'
at EPiServer.Core.Internal.DefaultContentLoader.ThrowTypeMismatchException(ContentReference link, Type actual, Type required)
at EPiServer.Core.Internal.DefaultContentLoader.Get[T](ContentReference contentLink, LoaderOptions loaderOptions)
at EPiServer.Templates.RelatePlus.InitializationModules.CmsIntegrationModule.GetClubId(ContentReference contentRef)
at EPiServer.Templates.RelatePlus.InitializationModules.CmsIntegrationModule.ContentEvents_PublishingContent(Object sender, ContentEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at EPiServer.Core.Internal.DefaultContentEvents.RaiseCancellableContentEvent(String key, String defaultReason, ContentEventArgs eventArgs)
at EPiServer.Core.Internal.DefaultContentRepository.RaisePreSaveEvents(SaveContentEventArgs eventArgs, StatusTransition transition, Boolean isNew, Boolean isNewLanguageBranch)
at EPiServer.Core.Internal.DefaultContentRepository.Save(IContent content, SaveAction action, AccessLevel access)
at EPiServer.Cms.Shell.Service.Internal.ContentService.Save(IContent content, SaveAction saveAction, AccessLevel accessLevel)
at EPiServer.Cms.Shell.UI.Rest.ContentChangeManager.UpdateContentProperties(ContentReference contentReference, IDictionary`2 properties, SaveAction saveAction)
EPiServer.Core.TypeMismatchException: Content with id '237_1482' is of type 'EPiServer.Core.ContentFolder' which does not inherit required type 'EPiServer.Core.PageData'
at EPiServer.Core.Internal.DefaultContentLoader.ThrowTypeMismatchException(ContentReference link, Type actual, Type required)
at EPiServer.Core.Internal.DefaultContentLoader.Get[T](ContentReference contentLink, LoaderOptions loaderOptions)
at EPiServer.Templates.RelatePlus.InitializationModules.CmsIntegrationModule.GetClubId(ContentReference contentRef)
at EPiServer.Templates.RelatePlus.InitializationModules.CmsIntegrationModule.ContentEvents_PublishingContent(Object sender, ContentEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at EPiServer.Core.Internal.DefaultContentEvents.RaiseCancellableContentEvent(String key, String defaultReason, ContentEventArgs eventArgs)
at EPiServer.Core.Internal.DefaultContentRepository.RaisePreSaveEvents(SaveContentEventArgs eventArgs, StatusTransition transition, Boolean isNew, Boolean isNewLanguageBranch)
at EPiServer.Core.Internal.DefaultContentRepository.Save(IContent content, SaveAction action, AccessLevel access)
at EPiServer.Cms.Shell.Service.Internal.ContentService.Save(IContent content, SaveAction saveAction, AccessLevel accessLevel)
at EPiServer.Cms.Shell.UI.Rest.ContentChangeManager.UpdateContentProperties(ContentReference contentReference, IDictionary`2 properties, SaveAction saveAction)
Hi,
We have an EPiServer website with Relate Plus 7.5 and CMS 10.8.
Whenever we update a folder in the assets page, we get the following error
Content with id '237_1482' is of type 'EPiServer.Core.ContentFolder' which does not inherit required type 'EPiServer.Core.PageData'
Has anyone experienced this before or would have an idea of what's causing it and how to fix it?
Any help would be greatly appreciated.
Regards,
Jan