Kentico Application_Error

Oluwatobi Ajepe asked on November 18, 2020 21:35

Hello, I am having this error anytime i try to edit the master page on kentico 9. NOTE: It was all fine at some point

ERROR FORM EVENT LOG:

Description:Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.

Exception type: System.Web.HttpUnhandledException Stack Trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

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

Exception type: System.NullReferenceException Stack Trace: at CMS.DataEngine.SimpleDataClass.CopyOriginalDataTo(IDataClass target) at CMS.DataEngine.AbstractInfoBase1.Clone() at CMS.DataEngine.AbstractInfoBase1.Clone(Boolean clear) at CMS.DataEngine.AbstractInfoBase1.CloneObject(Boolean clear) at CMS.FormControls.UIForm.UIForm_OnBeforeValidate(Object sender, EventArgs e) at CMS.FormControls.BasicForm.ValidateData() at CMS.FormControls.BasicForm.SaveData(String redirectUrlAfterSave, Boolean showChangesSaved) at CMS.FormControls.UIForm.ObjectManager_OnSaveData(Object sender, SimpleObjectManagerEventArgs e) at CMS.FormControls.CMSAbstractManager2.RaiseSaveData(EventArgsType args) at CMS.FormControls.CMSObjectManager.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Recent Answers


Juraj Ondrus answered on November 19, 2020 09:23

So, what was changed? The error you are getting is the most general .Net error - it just says that something is null and the code did not expected it. Was any new web part added to the master page template? Any other web parts were changed? Are you using any custom web parts or any custom Form controls?

0 votesVote for this answer Mark as a Correct answer

Oluwatobi Ajepe answered on November 19, 2020 11:09

Hello @juraj,

I updated some of my HTML, JS AND CSS Codes. I am using the portal engine development model. I noticed this shortly after updating some of these codes. No web part was added, No Web parts changed, No custom form controls, Just a normal code update on my html, js and css codes.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on November 19, 2020 11:13

When you revert back the changes, does it fix the issue?

0 votesVote for this answer Mark as a Correct answer

Oluwatobi Ajepe answered on November 19, 2020 12:29

Hi @Juraj, The issue now is that even if i revert back the changes in the code, I can't save. it comes up with the "System Error An error occurred and your request couldn't be completed.

Click here to go back to the home page"

The last time i had this issue i had to restart the project and that's a lot of work.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on November 20, 2020 05:22

Are there any more details in the Event log this time?

0 votesVote for this answer Mark as a Correct answer

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