I've just upgraded a site from 4.7.1 to 4.7.2 following the instructions in the 4.7.2 release notes (http://umbraco.codeplex.com/downloads/get/372341) and now have the following error.
Where should I be looking for the cause of this?
Server Error in '/' Application.
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 not set to an instance of an object.]
umbraco.cms.businesslogic.macro.MacroModel..ctor(Macro m) +21
umbraco.macro..ctor(String alias) +344
umbraco.presentation.templateControls.Macro.CreateChildControls() +1319
System.Web.UI.Control.EnsureChildControls() +181
System.Web.UI.Control.InitRecursive(Control namingContainer) +132
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1969
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Request Details
Session Id:
5pr2isuoblh20uhj5btjtnd1
Request Type:
GET
Time of Request:
22/05/2012 15:36:09
Status Code:
500
Request Encoding:
Unicode (UTF-8)
Response Encoding:
Unicode (UTF-8)
Trace Information
Category
Message
From First(s)
From Last(s)
aspx.page
Begin PreInit
umbracoInit
handling request
0.00709019415089703
0.007090
request handler
current url ''
0.0267978926026051
0.019708
umbracoRequestHandler
xpath: '/root/*'
0.0337275743425903
0.006930
umbracoRequestHandler
xpath: '/root/* [@urlName = ""] | /root/*'
0.0337575264192676
0.000030
umbracoRequestHandler
xpath: '/root/* [@urlName = ""] | /root/*'
0.0337721184566233
0.000015
umbracoRequestHandler
Just before xPath query (False, '/root/* [@urlName = ""] | /root/*')
0.0337836384861145
0.000012
umbracoRequestHandler
pageXPathQueryStart: '/root'
0.0337920865077415
0.000008
umbracoRequestHandler
After xPath query
0.0338247265913001
0.000033
umbracoRequestHandler
Access checking started
0.0338519906610961
0.000027
umbracoRequestHandler
Page not protected
0.0338677347014008
0.000016
umbracoRequestHandler
Access checking ended
0.0338765667240108
0.000009
umbracoInit
Done handling request
0.0338865507495699
0.000010
umbracoPage
Element loaded: headerGraphics
0.0450602113541411
0.011174
umbracoPage
Element loaded: centreWidgets
0.0450993794544114
0.000039
umbracoPage
Element loaded: tagGroups
0.0451185795035635
0.000019
umbracoPage
Element loaded: umbracoPageNotFound
0.0451381635536987
0.000020
umbracoPage
Element loaded: rightWidgets
0.0451562115999017
0.000018
umbracoPage
Element loaded: mainContentRight
0.0451734916441386
0.000017
umbracoPage
Element loaded: leftWidgets
0.0451923076923077
0.000019
umbracoPage
Element loaded: mainContentleft
0.0452095877365446
0.000017
umbracoPage
Element loaded: pageTitle
0.0452280197837306
0.000018
umbracoPage
Element loaded: metaDescription
0.0452452998279676
0.000017
umbracoPage
Element loaded: mainContentFull
0.0452618118702384
0.000017
umbracoPage
Element loaded: umbracoNaviHide
0.0453190280167117
0.000057
umbracoPage
Pagedata loaded for Home (ID: 1082)
0.0453340040550504
0.000015
umbracoPage
Looking up skin information
0.0453720201523716
0.000038
default.aspx
Culture changed to en-GB
0.059095063283362
0.013723
aspx.page
End PreInit
0.121258294421234
0.062163
aspx.page
Begin Init
0.121295158515606
0.000037
item
Start parsing 'pageTitle'
0.142199788031457
0.020905
item
Done parsing 'pageTitle'
0.142481644753011
0.000282
renderMacro
Rendering started (macro: Meta Description, type: 1, cacheRate: 0)
Object reference not set to an instance of an object. at umbraco.cms.businesslogic.macro.MacroModel..ctor(Macro m) at umbraco.macro..ctor(String alias) at umbraco.presentation.templateControls.Macro.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I also recall seeing this before (but can't find the thread) where the solution was clearing the ClientDependency cache or something similar...sounds strange though :)
Site upgrade from 4.7.1 to 4.7.2
I've just upgraded a site from 4.7.1 to 4.7.2 following the instructions in the 4.7.2 release notes (http://umbraco.codeplex.com/downloads/get/372341) and now have the following error.
Where should I be looking for the cause of this?
Hi Matthew,
Here's a similar thread stating it might be a macro that doesn't exist anymore: http://our.umbraco.org/forum/getting-started/installing-umbraco/31355-New-Umbraco-472-installation-gives-Object-reference-not-set-to-an-instance-of-an-object-error
I also recall seeing this before (but can't find the thread) where the solution was clearing the ClientDependency cache or something similar...sounds strange though :)
-Tom
Thanks Tom,
It was indeed a reference to an XSLT Macro that doesn't exisit any more!
Thanks again,
Matt.
I've logged this in CodePlex to be fixed asap hopefully.
http://umbraco.codeplex.com/workitem/30836
Thanks Pete,
Don't know why I didn't think of that myself.
is working on a reply...