Copied to clipboard

Flag this post as spam?

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


  • Braydie 148 posts 346 karma points
    Feb 08, 2013 @ 12:53
    Braydie
    0

    Event Handlers and 'Publish At' date

    Hi,

    I've got an event hanlder that fires on Document Before Publish. This works every time when publishing normally, but I have run into some problems when using the scheduled publishing with the 'Publish At' property. It seems that when using this, event handlers are not fired consistently.

    I wonder if anyone has any experience of this at all? I'm running 4.7.2

  • Braydie 148 posts 346 karma points
    May 23, 2013 @ 16:10
    Braydie
    100

    For anyone who stumbles across this post - the issue was that my event handler was dependent on their being a User doing the publishing, so when Umbraco tried to publish a document via 'Publish At', my event handler would fail silently. I resolved this by checking that the current user is not null before proceeding (User.GetCurrent() != null)

Please Sign in or register to post replies

Write your reply to:

Draft