Copied to clipboard

Flag this post as spam?

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


  • sundip 76 posts 339 karma points
    Feb 26, 2013 @ 20:19
    sundip
    0

    Error creating new post

    Hi,

    I am getting the error after creating a new node (right click on month), however the new post has been created if I reload the root node.

    What could be the reason for this. How can I get rid of the error?

    Please, help.

    [NullReferenceException: Object reference not set to an instance of an object.]
       uBlogsy.Web.Extensions.UmbracoExtensions.Document_New(Document sender, NewEventArgs e) in D:\_PROJECTS\uBlogsy - Blog\Branches\1.3.6.1\uBlogsy\uBlogsy\Extensions\UmbracoExtensions.cs:82
       umbraco.cms.businesslogic.web.Document.OnNew(NewEventArgs e) +27
       umbraco.cms.businesslogic.web.Document.MakeNew(String Name, DocumentType dct, User u, Int32 ParentId) +864
       umbraco.contentTasks.Save() +95
       umbraco.presentation.create.dialogHandler_temp.Create(String NodeType, Int32 TypeId, Int32 NodeId, String Text) +385
       umbraco.cms.presentation.create.controls.content.doCreation() +160
       umbraco.cms.presentation.create.controls.content.sbmt_Click(Object sender, EventArgs e) +5
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
       System.Web.UI.WebControls.Button.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) +5563

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 27, 2013 @ 02:14
    Anthony Dang
    0

    Which version of umbraco? 

    What other packages are installed? 

    Do you have custom indexes? 

    Did you delete or rename anything? 

     

  • sundip 76 posts 339 karma points
    Feb 27, 2013 @ 15:05
    sundip
    0

    Hey Anthony,

    Version 4.7.1

    I have installed uComponents.  I deleted the default nodes and created new ones, also added some more properties to the base document type and the main thing I have moved the main 'my-blog' node under my website node, so that I can make the whole navigation dynamic.

    I am not sure why the error is coming because it still creates the post.

    Any idea!

    Thank you

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 27, 2013 @ 15:30
    Anthony Dang
    100

    The line it's crashing on is this:

     

    sender.getProperty("uBlogsyPostDate").Value = sender.CreateDateTime;

     

    Is the PostDate property in the post? Is the alias "uBlogsyPostDate"?

     

     

  • sundip 76 posts 339 karma points
    Feb 27, 2013 @ 15:37
    sundip
    0

    Anthony,

    You rock man.. that was the problem, thank you so much for making my life easy.

    Can I ask you a question, how did you analyze that "uBlogsyPostDate" property is the issue!!!

    Awesome.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 27, 2013 @ 16:13
    Anthony Dang
    0

    Your original stack trace showed D:\_PROJECTS\uBlogsy -Blog\Branches\1.3.6.1\uBlogsy\uBlogsy\Extensions\UmbracoExtensions.cs:82

    I went to that line in the source ;)

     


  • sundip 76 posts 339 karma points
    Feb 27, 2013 @ 16:14
    sundip
    0

    Gr8..:)

    Thanks again.

  • 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