I've just upgraded a 3.0.6 umbraco install to 4.0.2, and am getting
the following error when I try to access pages in the content section:
Object reference not set to an instance of an object.
Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.
Exception Details:
System.NullReferenceException: Object reference not set to an instance of an
object.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException:Object reference notset to an instance of an object.] umbraco.cms.presentation.editContent.OnInit(EventArgs e)in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\presentation\umbraco\editContent.aspx.cs:404 System.Web.UI.Control.InitRecursive(Control namingContainer)+333 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+378
Haven't found anything in forums about this. Any ideas.
Have you tried right-clicking on the node and choosing "publish"? That helps for me a lot of the times. If that works then you could publish all nodes and their children in this way.
I've actually solved the problem with help from another post. I had lost my templates and was getting an error when trying to access the docTypes. The error seemed to suggest that there was a corrupted node id in the db. here is what I did to solve the problem.
I checked the cmsTemplate table in
the DB and saw that some of the "master" fields contained invalid
IDs. I guess some of my templates from the v3 version of the site were corrupt
and didn't get copied over but the DB still made records and tried to reference
them. I simply removed the records from the cmsTemplate table that referenced
non existing master page IDs and everything works now.
Getting weird error in content section v.4
I've just upgraded a 3.0.6 umbraco install to 4.0.2, and am getting the following error when I try to access pages in the content section:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Haven't found anything in forums about this. Any ideas.
Thank you,
Hans
Have you tried right-clicking on the node and choosing "publish"? That helps for me a lot of the times. If that works then you could publish all nodes and their children in this way.
I've actually solved the problem with help from another post. I had lost my templates and was getting an error when trying to access the docTypes. The error seemed to suggest that there was a corrupted node id in the db. here is what I did to solve the problem.
I checked the cmsTemplate table in the DB and saw that some of the "master" fields contained invalid IDs. I guess some of my templates from the v3 version of the site were corrupt and didn't get copied over but the DB still made records and tried to reference them. I simply removed the records from the cmsTemplate table that referenced non existing master page IDs and everything works now.
is working on a reply...