Copied to clipboard

Flag this post as spam?

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


  • sritchie 48 posts 80 karma points
    Jul 07, 2009 @ 06:22
    sritchie
    0

    Object reference not set to an instance of an object.

    Hi guys,

    After a long couple of days my brain is close to shutting down.

    Just upgraded from V3 - V4.0.2.1 & am having this Object Reference error occur with the below stack trace.

    This may be a simple fix but my head is about to implode. - Appreciate any help.   :)

     

    <table border="0" cellspacing="0" cellpadding="0" align="center"> <tbody><tr> <td style="padding: 0pt 9pt;" align="left" valign="top"><pre><span style="font-size: 9pt; font-family: "Lucida Console";">[NullReferenceException: Object reference not set to an instance of an object.]</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>TidyNet.Clean.CleanNode(Lexer lexer, Node node) +493</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +61</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +39</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +39</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +39</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +39</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +39</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>  </span><span> </span>TidyNet.Clean.CleanTree(Lexer lexer, Node doc) +23</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>TidyNet.Tidy.ParseInternal(Stream input, String file, Stream Output, TidyMessageCollection messages) +534</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>TidyNet.Tidy.Parse(Stream input, Stream output, TidyMessageCollection messages) +41</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>umbraco.cms.helpers.xhtml.TidyHtml(String html) +372</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>umbraco.library.Tidy(String StringToTidy, Boolean LiveEditing) +5</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>umbraco.editorControls.tinyMCE3.TinyMCE.Save() +219</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +91</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +19</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13</span></pre> <pre><span style="font-size: 9pt; font-family: "Lucida Console";"><span>   </span>System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36</span></pre> </td> </tr> </tbody> </table> </div> <span style="font-size: 9pt; font-family: "Lucida Console";">


    Thanks Guys :)</span>

    
    
                    
  • sritchie 48 posts 80 karma points
    Jul 07, 2009 @ 06:24
    sritchie
    0

    Ok that formatting didn't work out - try again   :(

    This should be better

    [NullReferenceException: Object reference not set to an instance of an object.]
    TidyNet.Clean.CleanNode(Lexer lexer, Node node) +493
    TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +61
    TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +39
    TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +39
    TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +39
    TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +39
    TidyNet.Clean.CreateStyleProperties(Lexer lexer, Node node) +39
    TidyNet.Clean.CleanTree(Lexer lexer, Node doc) +23
    TidyNet.Tidy.ParseInternal(Stream input, String file, Stream Output, TidyMessageCollection messages) +534
    TidyNet.Tidy.Parse(Stream input, Stream output, TidyMessageCollection messages) +41
    umbraco.cms.helpers.xhtml.TidyHtml(String html) +372
    umbraco.library.Tidy(String StringToTidy, Boolean LiveEditing) +5
    umbraco.editorControls.tinyMCE3.TinyMCE.Save() +219
    umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +91
    umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +19
    System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
    System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118
    System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
  • sritchie 48 posts 80 karma points
    Jul 09, 2009 @ 07:24
    sritchie
    0

    The error only appears on publish of certain pages, but the site works fine - I just can't publish updates,

    I feel its an issue with datatypes but can't seem to find the culprit.

    Any other suggestions?

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Jul 09, 2009 @ 08:25
    Peter Dijksterhuis
    0

    Do you use any special datatypes or any other thing that isn't default in umbraco? Looks like there's something that is compatible with v3, but isn't with v4

  • sritchie 48 posts 80 karma points
    Jul 09, 2009 @ 08:54
    sritchie
    0

    The odd thing there is I have two home pages in this umbraco installation for different sites based on the same nodelist & doctypes. One works, but the other throws up this error.

    *scratches head*

    I'll dive back in & see what other evidence I can pick out.

  • MisterG 19 posts 31 karma points
    Nov 22, 2009 @ 17:30
    MisterG
    0

    Hi sritchie,

    Did you find a solution for your error.

    I have the same issue and I've discovered that it's related to nested <ul> in my case.

    Regards,

    MisterG

  • sritchie 48 posts 80 karma points
    Nov 23, 2009 @ 14:53
    sritchie
    0

    I never found the root cause - I ended up starting up with a fresh Umbraco instance & all worked like a dream

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies