Copied to clipboard

Flag this post as spam?

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


  • Arie 224 posts 675 karma points
    Feb 16, 2013 @ 17:02
    Arie
    0

    Bug: exception when trying to create dictionary item during installation

    This results in the text [UsergroupPermissions] to be displayed in the context menu instead of the correct name.

    2013-02-16 08:53:31,792 [123] ERROR Umbraco.Core.PluginManager - [Thread 135] Error creating type UserGroupPermissions.Events.InstallLanguageskeys
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.HttpException: Request is not available in this context
       at System.Web.HttpContextWrapper.get_Request()
       at umbraco.BusinessLogic.StateHelper.Cookies.get_HasCookies()
       at umbraco.BasePages.BasePage.get_umbracoUserContextID()
       at umbraco.BusinessLogic.User.GetCurrent()
       at UserGroupPermissions.Businesslogic.Languagefiles.KeyMissing(String key)
       at UserGroupPermissions.Businesslogic.Languagefiles.InstallLanguageKey(String key, String value)
       --- End of inner exception stack trace ---

     

  • Richard Soeteman 3895 posts 12098 karma points MVP
    Feb 17, 2013 @ 07:27
    Richard Soeteman
    0

    HI Arie,

    What version of Umbraco are you using? Maybe the files can't be edited due file permissions

    But you can add it manually, open the language xml file(s) in /umbraco/config/lang, search for <area alias="actions" then add the key <key alias="UsergroupPermissions"><![CDATA[User group permissions]]></key>

    You might need to refresh the cache but then all should worok again.

    Cheers,

    Richard

  • Arie 224 posts 675 karma points
    Feb 17, 2013 @ 07:30
    Arie
    0

    Hi Richard,

    I'm running 6.0.0.

    I haven't run into any permissions issues before, though. I'll have to keep an eye it that.

    Adding the key manually should work, though. Thanks!

  • Arie 224 posts 675 karma points
    Feb 17, 2013 @ 07:38
    Arie
    100

    Adding them manually worked. I'm not sure about the syntax, though. You specified "![CDATA[User group permissions]]", but all the other entries simply have the label name. Would/should the following work?

    <key alias="UsergroupPermissions">User Group Permissions</key> 
  • Richard Soeteman 3895 posts 12098 karma points MVP
    Feb 17, 2013 @ 07:40
    Richard Soeteman
    0

    Hi Arue, yes that should work, mine had cdata wrapped around it

Please Sign in or register to post replies

Write your reply to:

Draft