Copied to clipboard

Flag this post as spam?

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


  • Niels Kristiansen 166 posts 382 karma points
    Jan 24, 2011 @ 18:26
    Niels Kristiansen
    0

    Problems with new users and uComponents

    Hi,

    I have placed this wonderful extension in one of my solutions, but when I create new users in Umbraco they get the following error when they try to change content in Umbraco Backend.

    Server Error in '/' Application.

    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    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:
    [NullReferenceException: Object reference not set to an instance of an object.]
       uComponents.Core.DataTypes.MultiNodeTreePicker.BaseTreeExtensions.GetStartNodeId(BaseTree tree, Content definedStartNode, Content userStartNode, Int32 userStartNodeId) +146
       uComponents.Core.DataTypes.MultiNodeTreePicker.FilteredMediaTree.get_StartNodeID() +86
       umbraco.cms.presentation.Trees.XmlTreeNode.CreateRoot(BaseTree bTree) +80
       umbraco.cms.presentation.Trees.BaseTree.CreateRootNode() +38
       umbraco.cms.presentation.Trees.BaseTree.Initialize() +270
       umbraco.cms.presentation.Trees.BaseTree.get_RootNode() +37
       umbraco.cms.presentation.Trees.BaseTree.SetTreeParameters(ITreeService treeParams) +252
       umbraco.controls.Tree.TreeControl.Initialize() +607
       umbraco.controls.Tree.TreeControl.OnPreRender(EventArgs e) +109
       uComponents.Core.Shared.Tree.CustomTreeControl.OnPreRender(EventArgs e) +15
       System.Web.UI.Control.PreRenderRecursiveInternal() +80
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016

     

    All the pages that's not using uComponents work with other users, without any errors.The error happens when I try to create new content or edit existing content.

    I'm running Umbraco ver 3.5.2 with ASP.Net 3.5

     

    Anyone tried this scenario and can someone help me out?

     

    Kind Regards,

    Niels

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jan 24, 2011 @ 23:16
    Lee Kelleher
    0

    Hi Niels,

    I haven't had chance to try to reproduce this issue yet... I will do soon (once I am back from paternity leave).

    In the meantime, best bet is to raise a ticket on CodePlex, so we can track the issue.

    http://ucomponents.codeplex.com/WorkItem/Create

    Thanks, Lee.

  • Niels Kristiansen 166 posts 382 karma points
    Jan 24, 2011 @ 23:27
    Niels Kristiansen
    1

    Hi Lee,

    I found the solution and placed a reply, but I can see it had been deleted.

    The issue had nothing to do with uComponents, but my user permission on the given user. I told the system that he could only see into a folder called Jesper under Media. But my uComponents MultiNode TreePicker was looking in a media folder where the user didn't had the permission.

    So I'm sorry for using your time :)

    /Niels

     

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jan 24, 2011 @ 23:35
    Lee Kelleher
    2

    No worries Niels - glad that you got your problem sorted! :-)  Happy that you like uComponents!

    Cheers, Lee.

  • Niels Kristiansen 166 posts 382 karma points
    Jan 31, 2011 @ 18:35
    Niels Kristiansen
    0

    Hi Lee,

    uComponents rocks, it had help me with a lot of issues. Could be awesome if it was a part of a standard installation with Umbraco :)

    /Niels

  • webangelo 107 posts 190 karma points
    Jun 30, 2011 @ 15:02
    webangelo
    0

    This has been a very useful package so far but I had a similar issue I thought was worth mentioning.

    I had the same error and the solution was to change the starting media node for the user (I had set it to be at a particular folder and had to set it back to the top folder), however the odd thing was that the Multi-node Media Picker was actually picking Content and not Media and shouldn't have needed to access the media tree to pick the node.  I'll add a codeplex issue as this seems to be a bug.  It shouldn't have needed to call MultiNodeTreePicker.FilteredMediaTree when it was picking a content node.

Please Sign in or register to post replies

Write your reply to:

Draft