HelloIve been using umbraco the last two days trying to learn from the CMS. However ive had encountering this error when i try to add my own document type, which gives me an error saying; "Object references not set to an instance of an object".
Stack trace gives me the following output:
[NullReferenceException: Object reference not set to an instance of an object.]
umbraco.controls.ContentTypeControlNew.setupInfoPane() +545
umbraco.controls.ContentTypeControlNew.OnInit(EventArgs e) +61
System.Web.UI.Control.InitRecursive(Control namingContainer) +140
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
It's hard to tell what might be the cause of this - have you manipulated the database directly or only through Umbraco? And do you by any chance have provided some weird characters on the alias name of the shown document type? If the alias is named something like "-Test" (without the quotes) it can mess things up.
Thanks for the reply. I have only been messing around within the Umbraco CMS itself, not the database. Thats why ive been curious as to why this error occured to me. Ive had some duplicates of macroes and document types of the same name, that i might have moved or deleted - perhaps this could be making an issue, if the document type(s) is trying to point to a nonexistant macro?
Ive decided to start from scratch again and will be paying more attention as if something like this happens again :-)
Sudden error when creating document types
HelloIve been using umbraco the last two days trying to learn from the CMS. However ive had encountering this error when i try to add my own document type, which gives me an error saying; "Object references not set to an instance of an object".
Stack trace gives me the following output:
Screenshot: http://img401.imageshack.us/img401/8828/documenttypeserror.png
Could the umbraco database be corrupted or something?
Hi Ronni and welcome to the community :)
It's hard to tell what might be the cause of this - have you manipulated the database directly or only through Umbraco? And do you by any chance have provided some weird characters on the alias name of the shown document type? If the alias is named something like "-Test" (without the quotes) it can mess things up.
Looking forward to hear more about this issue.
/Jan
Hi Jan
Thanks for the reply. I have only been messing around within the Umbraco CMS itself, not the database. Thats why ive been curious as to why this error occured to me. Ive had some duplicates of macroes and document types of the same name, that i might have moved or deleted - perhaps this could be making an issue, if the document type(s) is trying to point to a nonexistant macro?
Ive decided to start from scratch again and will be paying more attention as if something like this happens again :-)
is working on a reply...