Copied to clipboard

Flag this post as spam?

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


  • Michael 34 posts 54 karma points
    Aug 03, 2012 @ 15:24
    Michael
    0

    New Umbraco Installation - Object reference not set to an instance of an object. ERROR

    Hi,

    Im currently working through the Wrox Umbraco User Guide and have just done an installation using the simple kit and Green Skin and eveything seems to be working fine except for when I try and view the homepage it gives me the following error.

     

    [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
    

     

    If anyone would be able to help that would be great as I'd like to get learning more about Umbraco.

     

    Regards

     

    Michael

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Aug 10, 2012 @ 05:24
    Tom Fulton
    0

    Hi Michael,

    This is a known issue with the Simple Starter Kit, but luckily there's a simple fix.  The error means that the template is referencing a Macro that doesn't exist.  So you can either remove the macro or re-create it.

    There's a blog post explaining the fix here:  http://www.carbonsoft.co.uk/articles/2012/07/umbraco-simple-starter-kit-object-not-set-error.aspx

    HTH,
    Tom 

Please Sign in or register to post replies

Write your reply to:

Draft