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
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)
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
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)
is working on a reply...