Copied to clipboard

Flag this post as spam?

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


  • Nik Wahlberg 639 posts 1237 karma points MVP
    Jul 14, 2011 @ 20:15
    Nik Wahlberg
    0

    Error publishing post

    Hi, looks like there's an error in the event handler when publishing a post. 

    [NullReferenceException: Object reference not set to an instance of an object.]
       uBlogsy.BusinessLogic.EventHandlers.UmbracoExtensions.Document_BeforePublish(Document sender, PublishEventArgs e) in C:\_Projects\_Anthony\Branches\1.4_comment_subscription\uBlogsy\uBlogsy.BusinessLogic\EventHandlers\UmbracoEventHandlers.cs:143
       umbraco.cms.businesslogic.web.Document.FireBeforePublish(PublishEventArgs e) +27
       umbraco.cms.businesslogic.web.Document.PublishWithResult(User u) +74
       umbraco.cms.presentation.editContent.Publish(Object sender, EventArgs e) +236
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +46
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120
       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) +5563

    Anyway to get a patch for this? Cheers!

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jul 14, 2011 @ 23:59
    Anthony Dang
    0

    Thanks for the notification.

    Did the nodes get inserted from RSS? 

    Is this publish crash from clicking the "save and publish" button on the content node? Or is it from right clicking the tree?

     

     

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Aug 28, 2011 @ 13:38
    Nik Wahlberg
    0

    Hi Anthony, I had forgotten about this bug entirely and just double posted. Sorry about that. 

    So, this happens when I clikc the Save and Publish button. 

    Thanks,
    Nik 

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Aug 28, 2011 @ 14:08
    Anthony Dang
    0

    Do you have any custom examine indexes? 

    Can you paste your examine config here.

     

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Aug 28, 2011 @ 14:13
    Nik Wahlberg
    0

    No custom Examine indexes:

    <?xml version="1.0"?>
    <!-- 
    Umbraco examine is an extensible indexer and search engine.
    This configuration file can be extended to create your own index sets.
    Index/Search providers can be defined in the UmbracoSettings.config
    
    More information and documentation can be found on CodePlex: http://umbracoexamine.codeplex.com
    -->
    <ExamineLuceneIndexSets>
        <!-- The internal index set used by Umbraco back-office - DO NOT REMOVE -->
        <IndexSet SetName="InternalIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/Internal/">
          <IndexAttributeFields>
            <add Name="id" />
            <add Name="nodeName" />
            <add Name="updateDate" />
            <add Name="writerName" />
            <add Name="path" />
            <add Name="nodeTypeAlias" />
            <add Name="parentID" />
          </IndexAttributeFields>
          <IndexUserFields />
          <IncludeNodeTypes/>
          <ExcludeNodeTypes />
        </IndexSet>
    
        <!-- The internal index set used by Umbraco back-office for indexing members - DO NOT REMOVE -->
        <IndexSet SetName="InternalMemberIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/InternalMember/">
            <IndexAttributeFields>
                <add Name="id" />
                <add Name="nodeName"/>
                <add Name="updateDate" />
                <add Name="writerName" />
                <add Name="loginName" />
                <add Name="email" />
                <add Name="nodeTypeAlias" />
            </IndexAttributeFields>
            <IndexUserFields/>
            <IncludeNodeTypes/>
            <ExcludeNodeTypes />
        </IndexSet>
    </ExamineLuceneIndexSets>

    Thanks,
    Nik 

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Aug 29, 2011 @ 13:56
    Nik Wahlberg
    0

    Hey Anthony, any chance you would mind sharing the source for 1.4? Would be cool to dig into this and see what may be happening. 

    Thanks,
    Nik 

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Aug 30, 2011 @ 13:40
    Nik Wahlberg
    0

    Hi guys, wondering if anyone else has seen this issue with umbraco 4.7 and uBlogsy 1.4. This is a production issue at this point and without the source I have very little recourse to correct or bypass this issue. 

    Thanks for anyone who has any ideas!

    Best,
    Nik 

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Aug 30, 2011 @ 23:55
    Anthony Dang
    0

    Nik what is your email address?

    1.4 is beta so there are of course bugs.

     

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Aug 31, 2011 @ 03:37
    Nik Wahlberg
    0

    Totally understand bro, beta is inherently risky business :) You can get me at [email protected]

    Thanks for your help! 

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Sep 08, 2011 @ 15:48
    Nik Wahlberg
    1

    Ok, so here's the issue at the end of the day. I had removed some of the SEO fields that ship with uBlogsy because I needed to use my own custom fields for the templates that are in use for the site. So, on the 'uBlogsy - Base Page' docType I removed the following properties:

    • uBlogsySeoKeywords
    • uBlogsySeoDescription

    This resulted in the YSOD errors on both the publish of the post as well as the publish event on the Comments folder that gets created when a new post is published. So, good to know for others I would imagine.

    To fix the issue, I simply added the properties back to the base document type and simply placed them in the General Properties tab with a note that they are not in use. 

    Thanks Anthony for sending the source so I could debug. 

    Cheers,
    Nik 

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 12, 2011 @ 17:57
    Anthony Dang
    0

    Ah

    Yes that will do it.

    Lesson of the day... if you need remove or change things, do it incrementally and TEST TEST TEST :)

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft