Copied to clipboard

Flag this post as spam?

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

  • Dave Forster 28 posts 74 karma points
    Aug 01, 2012 @ 09:44
    Dave Forster

    No user exists with ID -1

    Got the YSOD ("No user exists with ID -1") when trying to publish via the Notifications Dashboard and judging by the release date of the package and lack of activity on here I figured the developer has washed his hands of it!

    So, my fix (to get it to work on Umbraco 4.7.2) was to download the source.. update the project references, change the target framework to .net 4 and update a couple of lines of code in UmbracoHelper.cs

    internal static void PublishItem(int id, string userId)
        Document document = new Document(id);
        int uid;
        if (int.TryParse(userId, out uid))
            User user = User.GetUser(uid);

    Compile and dump into your bin folder. 

    Hope this helps other who hit the same issue.

  • Rob de Mercado 31 posts 147 karma points
    Jul 31, 2014 @ 17:48
    Rob de Mercado

    I found the same problem. Decompiled the source, did as Dave had done to get it to .NET 4 and made this change (which worked). Made a few other tweaks to what on the surface could be a really useful plug-in. No idea why it was apparently abandoned.

  • Jonathan Roberts 409 posts 1063 karma points
    Mar 16, 2015 @ 17:51
    Jonathan Roberts

    Does this work in Umbraco 7.2?

Please Sign in or register to post replies

Write your reply to: