Failure to load content tree - Kentico 10

jeff McDaniel asked on November 2, 2017 21:51

Hello,

Recently we had to split off some of our sites so I recently exported a full site and imported it into a new, fresh Kentico 10 install.

I imported this site and am getting a very strange issue in the kentico pages back end interface. The pages won't load and a red message appears on the side stating that Kentico "Failed to load the content tree. See event log for more details."

I checked the event log and the error was revealed to be a "page type not found in the data"

Message: Page type class not found in the data.

Exception type: CMS.DocumentEngine.DocumentTypeNotExistsException
Stack trace: 
at CMS.DocumentEngine.VersionManager.GetClassName(IDataContainer container)
at CMS.DocumentEngine.VersionManager.GetVersionDocumentName(IDataContainer versionContainer)
at CMS.DocumentEngine.VersionManager.CorrectAutomaticallyGeneratedProperties(IDataContainer container, IDataContainer versionContainer)
at CMS.DocumentEngine.VersionManager.ApplyVersionDataInternal(DataSet data, Boolean coupled, ISet`1 excludedColumns)
at CMS.DocumentEngine.DocumentQueryProperties.ApplyVersionData(DataSet data)
at CMS.DocumentEngine.DocumentQueryProperties.GetDataInternal(IDocumentQuery query, Func`1 baseGetDataMethod, Action`1 setTotalRecords)
at CMS.DataEngine.DataQueryBase`1.GetData()
at CMS.DataEngine.ObjectQueryBase`2.GetData()
at CMS.DocumentEngine.DocumentQueryBase`2.GetData()
at CMS.DataEngine.DataQueryBase`1.get_Result()
at CMS.DataEngine.DataQueryBase`1.GetResults(IDataQuery query, Int32& totalRecords)
at CMS.DataEngine.DataQueryBase`1.GetDataFromDB()
at CMS.DocumentEngine.MultiDocumentQueryBase`3.b__4()
at CMS.DocumentEngine.DocumentQueryProperties.GetDataInternal(IDocumentQuery query, Func`1 baseGetDataMethod, Action`1 setTotalRecords)
at CMS.DataEngine.DataQueryBase`1.GetData()
at CMS.DataEngine.DataQueryBase`1.get_Result()
at CMS.DocumentEngine.Web.UI.CMSAbstractMenuProperties.GetMenuItems(String resolvedPath, Boolean siteMap)
at CMS.DocumentEngine.Web.UI.CMSAbstractMenuProperties.GetDataSource(Boolean siteMap)
at CMS.DocumentEngine.Web.UI.CMSListMenu.ReloadData(Boolean forceLoad)
at CMS.DocumentEngine.Web.UI.CMSListMenu.InitControl(Boolean loadPhase)
at CMS.DocumentEngine.Web.UI.CMSListMenu.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

This is a weird issue to me as the Page types used are all there, and most of them are standard page menu item types. Even weirder, if you are not logged into the admin interface you can view the site and have no issues with it. However, if you log in and view the pages application the site will crash from the front end and back end.

Does anyone have any thoughts? The only suggestion I can find is here - http://blogs.jeroenfurst.nl/blog/february-2017/upgrade-to-10-page-type-class-not-found-in-the-da and that did not apply to me as the root page was showing to have the same class as CMS.Root in my DB.

I've deleted the site, cleared cache, re-imported, and re-imported only the pages and forms. The site isn't extravagant by any means, and is pretty much built using kentico built in parts.

Let me know what you guys think and I'm willing to try any suggestions while I figure out another option.

Thanks, Jeff

Correct Answer

jeff McDaniel answered on November 2, 2017 22:11

This has been solved, I had to update the Page Menu Items, folders, pdfs, and custom page types. Essentially I had to run the query below for every page type in my site to reflect the appropriate ID.

UPDATE [CMS_VersionHistory] SET [NodeXML] = REPLACE([NodeXML], '', '')

0 votesVote for this answer Unmark Correct answer

Recent Answers


jeff McDaniel answered on November 2, 2017 21:52

Also - the root page type is showing up as being used by the root page of my site

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on November 2, 2017 22:36

When you exported, was that from a v10 instance or an older instance?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.