Copied to clipboard

Flag this post as spam?

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


  • Marco 12 posts 92 karma points c-trib
    Apr 09, 2018 @ 09:33
    Marco
    0

    YSOD on creating new member group

    I just installed the latest Umbraco version (7.10.1) on a blank SQL database. Since my project requires role based protection I created a few members and was about to create the appropriate member groups.

    However, when I click the three dots on Member Groups folder and select Create I get the following YSOD:

    Server Error in '/' Application.
    Value cannot be null.
    Parameter name: type
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.ArgumentNullException: Value cannot be null.
    Parameter name: type
    
    Source Error: 
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace: 
    
    
    [ArgumentNullException: Value cannot be null.
    Parameter name: type]
       System.Activator.CreateInstance(Type type, Boolean nonPublic) +12532133
       System.Activator.CreateInstance(Type type) +11
       Umbraco.Web.UI.LegacyDialogHandler.GetTaskForOperation(HttpContextBase httpContext, User umbracoUser, Operation op, String nodeType) +441
       Umbraco.Web.UI.LegacyDialogHandler.UserHasCreateAccess(HttpContextBase httpContext, User umbracoUser, String nodeType) +13
       Umbraco.Web.UI.Umbraco.CreateDialog.SecurityCheck(String nodeTypeAlias) +71
       Umbraco.Web.UI.Umbraco.CreateDialog.OnLoad(EventArgs e) +50
       System.Web.UI.Control.LoadRecursive() +59
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2633.0
    

    Did anyone else had this problem? Or even better, does someone know how to fix this?

    Thanks for any help

  • Michaël Vanbrabandt 756 posts 2935 karma points c-trib
    Apr 09, 2018 @ 09:37
    Michaël Vanbrabandt
    100

    Hi Marco,

    there is an issue created here with a PR already: http://issues.umbraco.org/issue/U4-11155

    You can vote it up.

    Hope this helps!

    /Michaël

  • Marco 12 posts 92 karma points c-trib
    Apr 09, 2018 @ 09:39
    Marco
    0

    Thanks Michaël.

    I up-voted the issue. Hopefully the fix will be available soon :-)

  • Michaël Vanbrabandt 756 posts 2935 karma points c-trib
    Apr 09, 2018 @ 09:47
    Michaël Vanbrabandt
    0

    Hi Marco,

    it will be in version 7.9.4 and 7.10.2 but no release date available for the moment.

    Have a nice day.

    /Michaël

  • Dave Woestenborghs 2847 posts 8817 karma points MVP 3x admin c-trib
    Apr 09, 2018 @ 12:07
    Dave Woestenborghs
    1

    If i'm correct they will be released tomorrow.

    Dave

  • Michaël Vanbrabandt 756 posts 2935 karma points c-trib
    Apr 09, 2018 @ 12:11
    Michaël Vanbrabandt
    0

    Thanks for the info Dave!

    /Michaël

  • Chris Lord 43 posts 195 karma points
    Apr 09, 2018 @ 10:31
    Chris Lord
    1

    Hope it's released soon, this is a huge issue for me and my client

  • Roman Dufek 3 posts 73 karma points
    Apr 09, 2018 @ 18:20
    Roman Dufek
    0

    I get the same error in Umbraco version (7.10.1). I created member groups programmatically using the following method.

        static void CreateMemberGroup(string name)
        {
            Umbraco.Core.Services.IMemberGroupService mgs = ApplicationContext.Current.Services.MemberGroupService;
            if (mgs.GetByName(name) != null)
            {
                return;
            }
    
            MemberGroup group = new MemberGroup()
            {
                Name = name
            };
    
            mgs.Save(group);
        }
    
  • Olly Fray 5 posts 75 karma points
    Apr 10, 2018 @ 09:00
    Olly Fray
    0

    You can also simply create a group with:

    var memberService = ApplicationContext.Current.Services.MemberService;  
    
    memberService.AddRole("Group Name");
    

    And delete it with:

    var memberGroupService = ApplicationContext.Current.Services.MemberGroupService;
    
    var group = memberGroupService.GetByName("Group Name");
    
    memberGroupService.Delete(group);
    
  • Marco 12 posts 92 karma points c-trib
    Apr 10, 2018 @ 10:15
    Marco
    1

    I just downloaded version 7.10.2 and I can confirm the issue has been resolved.

    Thanks everyone!

  • Michaël Vanbrabandt 756 posts 2935 karma points c-trib
    Apr 10, 2018 @ 13:10
    Michaël Vanbrabandt
    0

    Hi Marco,

    thanks for reporting it back to the community! #h5yr

    Have a nice day!

    /Michaël

  • Dave Clinton 17 posts 90 karma points
    Apr 11, 2018 @ 14:13
    Dave Clinton
    2

    Just upgraded one of ours to 7.9.4 and can confirm it's fixed on this version also.

  • Ismael 65 posts 336 karma points
    May 16, 2018 @ 20:07
    Ismael
    0

    I'm getting this error now on 7.9.6 - Previously I was on 7.9.4 and it was working without issue.

  • Ismael 65 posts 336 karma points
    May 16, 2018 @ 20:25
    Ismael
    0

    Looking at the CMS source in github, looks like a fix was merged into branch 7.9.4 but was not included into 7.9.5 - So that's why it's also not in 7.9.6.... the >7.10.2 branch seems fine, so may i'll just try upgrade to that.

  • Dave Woestenborghs 2847 posts 8817 karma points MVP 3x admin c-trib
    May 16, 2018 @ 20:30
    Dave Woestenborghs
    0

    Probably you need to create a issue than at http://issues.umbraco.org

    Is strange it's not included anymore.

    Dave

  • Ismael 65 posts 336 karma points
    May 17, 2018 @ 21:59
    Ismael
    0

    Actually found another issue that had been fixed but was missing from 7.9.5 and 7.9.6, logged it: http://issues.umbraco.org/issue/U4-11346

Please Sign in or register to post replies

Write your reply to:

Draft