SAVEDOCUMENT error: NullReferenceException

Bryan Drenner asked on August 14, 2014 23:50

We just upgraded to Kentico 8.0.18. Our content editor is unable to save new documents or save updates to existing documents. The event log entries says:

EventID: 266199

EventType: E

EventTime: 8/14/2014 5:38:59 PM

Source: Content

EventCode: SAVEDOCUMENT

UserID: 42

UserName: foobar

EventDescription: 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.Controls.CMSEditableRegion.IsValid() at CMS.PortalControls.CMSPortalManager.Validate() at CMS.PortalControls.CMSPortalManager.DocumentManager_OnValidateData(Object sender, DocumentManagerEventArgs e) at CMS.FormControls.CMSAbstractManager`2.RaiseValidateData(EventArgsType args) at CMS.FormControls.CMSDocumentManager.SaveDocumentInternal(String actionContext)

Site: New Victory Theater

EventUrl: /cms/getdoc/80555f2a-39c9-4293-9f71-2781c3e1af45/TestPage.aspx?viewmode=3&showpanel=1&lang=en-US&langobjectlifetime=request&cmscontentchanged=false

EventMachineName: AWS-S16

EventUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36

EventUrlReferrer: http://beta.newvictory.org/cms/getdoc/80555f2a-39c9-4293-9f71-2781c3e1af45/TestPage.aspx?viewmode=3&showpanel=1&lang=en-US&langobjectlifetime=request&cmscontentchanged=false

Correct Answer

Juraj Ondrus answered on August 28, 2014 16:30

Just an update on this - it was a bug in Kentico 8.x. It will be fixed in the hotfix 8.1.1

1 votesVote for this answer Unmark Correct answer

Recent Answers


Andrey Lurye answered on August 18, 2014 16:57

Check your design for

0 votesVote for this answer Mark as a Correct answer

Bryan Drenner answered on August 18, 2014 18:06

Andrey: Thanks, but our pages only have one form, the one from the master page template.

0 votesVote for this answer Mark as a Correct answer

Morgan Lynch answered on August 20, 2014 10:12

Hi was there an answer to this problem as I seem to have the same issue

0 votesVote for this answer Mark as a Correct answer

Bryan Drenner answered on August 20, 2014 18:16

Morgan, I'll post here as soon as I figure anything out. I am currently at a loss.

0 votesVote for this answer Mark as a Correct answer

Bryan Drenner answered on August 25, 2014 21:41

I discovered the cause of the error. Our master page has editable regions on it, and some hacky codebehind made it work. It looks like this hack will no longer work as of Kentico 7/8.

0 votesVote for this answer Mark as a Correct answer

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