Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt Bliss 176 posts 234 karma points c-trib
    May 22, 2012 @ 16:44
    Matt Bliss
    0

    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?

    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

    CategoryMessageFrom 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) 0.198668284590809 0.056187
    umbracoMacro Before adding extensions 0.26860100761858 0.069933
    umbracoXsltExtension Extension added: urn:Exslt.ExsltCommon, ExsltCommon 0.529157962644384 0.260557
    umbracoXsltExtension Extension added: urn:Exslt.ExsltDatesAndTimes, ExsltDatesAndTimes 0.529198666748587 0.000041
    umbracoXsltExtension Extension added: urn:Exslt.ExsltMath, ExsltMath 0.529213258785943 0.000015
    umbracoXsltExtension Extension added: urn:Exslt.ExsltRegularExpressions, ExsltRegularExpressions 0.529226698820349 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltStrings, ExsltStrings 0.529239754853772 0.000013
    umbracoXsltExtension Extension added: urn:Exslt.ExsltSets, ExsltSets 0.529253578889162 0.000014
    umbracoXsltExtension Extension added: urn:ucomponents.cms, Cms 0.529267786925535 0.000014
    umbracoXsltExtension Extension added: urn:ucomponents.dates, Dates 0.529280074956992 0.000012
    umbracoXsltExtension Extension added: urn:ucomponents.io, IO 0.529293130990415 0.000013
    umbracoXsltExtension Extension added: urn:ucomponents.media, Media 0.529309643032686 0.000017
    umbracoXsltExtension Extension added: urn:ucomponents.members, Members 0.52932653907594 0.000017
    umbracoXsltExtension Extension added: urn:ucomponents.nodes, Nodes 0.529341131113296 0.000015
    umbracoXsltExtension Extension added: urn:ucomponents.request, Request 0.529356107151634 0.000015
    umbracoXsltExtension Extension added: urn:ucomponents.search, Search 0.529369931187024 0.000014
    umbracoXsltExtension Extension added: urn:ucomponents.strings, Strings 0.529396043253871 0.000026
    umbracoXsltExtension Extension added: urn:ucomponents.urls, Urls 0.529435979356107 0.000040
    umbracoXsltExtension Extension added: urn:ucomponents.xml, Xml 0.529454795404276 0.000019
    umbracoXsltExtension Extension added: urn:umbraco.contour, Library 0.529469387441632 0.000015
    umbracoXsltExtension Extension added: urn:teacommerce, Library 0.529487435487835 0.000018
    umbracoXsltExtension Extension added: urn:GFO, XsltExtentions 0.529501643524207 0.000014
    umbracoXsltExtension Extension added: urn:google.maps, Library 0.529515467559597 0.000014
    umbracoMacro After adding extensions 0.529525835586139 0.000010
    umbracoMacro Before performing transformation 0.530832974932416 0.001307
    Resolve Urls 17 0.579184842713197 0.048352
    umbracoMacro After performing transformation 0.581371344310641 0.002187
    Unhandled Execution Error
    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)
    0.583602006021135 0.002231

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 22, 2012 @ 17:15
    Tom Fulton
    0

    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

  • Matt Bliss 176 posts 234 karma points c-trib
    May 22, 2012 @ 17:49
    Matt Bliss
    0

    Thanks Tom,

    It was indeed a reference to an XSLT Macro that doesn't exisit any more!

    Thanks again,

    Matt.

  • Peter Duncanson 430 posts 1360 karma points c-trib
    Jun 06, 2012 @ 23:13
    Peter Duncanson
    0

    I've logged this in CodePlex to be fixed asap hopefully.

    http://umbraco.codeplex.com/workitem/30836

  • Matt Bliss 176 posts 234 karma points c-trib
    Jun 07, 2012 @ 10:14
    Matt Bliss
    0

    Thanks Pete,

    Don't know why I didn't think of that myself.

Please Sign in or register to post replies

Write your reply to:

Draft