Kentoco Upgrade 7-9, Saving new document ( page) gives "Object reference not set to an instance of a

paul krysiak asked on September 20, 2016 17:16

Hello Everyone

We have recently upgraded Kentico from 7 to 9. Everythign mostly works except when we try to create a new page we get this error.

An error occurred when saving data. Please see event log for more details.

Message: Object reference not set to an instance of an object.

Exception type: System.NullReferenceException

Stack Trace:

at CMS.DocumentEngine.VersionManager.SaveVersionInternal(TreeNode node, String versionNumber, String versionComment, String updateColumns, WorkflowInfo forceWorkflow)

at CMS.DocumentEngine.DocumentHelper.UpdateDocument(TreeNode node, TreeProvider tree, String updateColumns)

at CMS.DocumentEngine.TreeNode.Update(Boolean useDocumentHelper)

at CMS.DocumentEngine.VersionManager.EnsureVersionInternal(TreeNode node, Boolean nodeIsPublished, Boolean nodeDeletion, WorkflowInfo forceWorkflow)

at CMS.DocumentEngine.DocumentHelper.InsertDocument(TreeNode node, TreeNode parentNode, TreeProvider tree, Boolean allowCheckOut)

at CMS.FormControls.CMSForm.SaveDataInternal()

at CMS.FormControls.BasicForm.SaveData(String redirectUrlAfterSave, Boolean showChangesSaved)

at CMS.FormControls.CMSForm.DocumentManager_OnSaveData(Object sender, DocumentManagerEventArgs e)

at CMS.FormControls.CMSAbstractManager`2.RaiseSaveData(EventArgsType args)

at CMS.FormControls.CMSDocumentManager.SaveDocumentInternal(String actionContext)

Any insite into resolving this error will be appreciated

Thank you

Correct Answer

Trevor Fayas answered on September 21, 2016 21:14

Each Hotfix / Upgrade to the next version, did you run the website fully before doing the next? We've run into issues where people assume you can just hotfix hotfix hotfix then run the site, but there's processes that need to run after each major hotfix in order to finish.

So you should:

Hotfix 7 to 8.0 -> Load the site -> Hotfix 8.0 to 8.1 -> Load the Site -> Hotfix 8.1 to 8.2 -> Load the site -> Hotfix 8.2 to 9 -> Load the site.

0 votesVote for this answer Unmark Correct answer

Recent Answers


paul krysiak answered on September 21, 2016 22:52

Trevor

That is what i was afraid of.

Thanks for the conformation

Best

Paul

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on September 22, 2016 15:14

No problem paul, sorry to hear this happened to you as well. Good news is after the pain, hard to forget that lesson again!

0 votesVote for this answer Mark as a Correct answer

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