Copied to clipboard

Flag this post as spam?

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


  • Tom Fulton 2030 posts 4998 karma points c-trib
    Apr 03, 2013 @ 00:06
    Tom Fulton
    0

    DateFolders in 6.0.3

    Hi Anthony,

    Just noticed a couple issues trying to use uDateFoldersy (with and without uBlogsy) in v6.0.3

    1 - Null reference exception in ContentService_Creating when creating a new node
    It looks like e.Entity is now null in this event - not sure if this changed in a recent version?  Anyway, replacing this line:

    if (!ConfigReader.Instance.GetTargetDocTypeAliases().Contains(e.Entity.ContentType.Alias)) { return; }

    with:

    if (!ConfigReader.Instance.GetTargetDocTypeAliases().Contains(e.Alias)) { return; }

    seems to fix that issue.

    2 - Nothing happening on create/save/publish/etc
    Everything appears to be configured properly, but the DateFolders never get created on any of these events.  I debugged and it looks like everything stops when it hits the Flagged checks.  My guess is these were a workaround for Umbraco calling the event several times, but I wonder if that got fixed in v6.0.3?  If I comment out those lines (117-127), it seems to work again.

    I haven't dug in too deep on #2 yet, just wanted to let you know and see if you've ran into this yet.

    Thanks for your hard work on what looks to be an awesome package :)

    Thanks,
    Tom

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 10, 2013 @ 01:45
    Anthony Dang
    0

    Thanks for the big report. Your completely correct with #2.it's a work around for an umbraco big which they now fixed. Now my workaround is a bug. Doh. 

     

    Not sure what #1 is though. Will look into it. 

Please Sign in or register to post replies

Write your reply to:

Draft