Copied to clipboard

Flag this post as spam?

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


  • Jeremy Holland 20 posts 103 karma points
    Mar 20, 2013 @ 16:31
    Jeremy Holland
    0

    Tea Commerce tree won't load

    I installed Tea Commerce on Umbraco 6.0.2 and the section tree will not load.

    The root "Tea Commerce" node is there and under that is a spinner with the word "Loading". This never goes away. I tried resetting the app pool, but that didn't do anything.

    Looking at the results that I get back from Fiddler for the TreeDataService call, the JSON seems to be missing data. I don't know what to do next to fix or troubleshoot this.

    The first call to TreeClientService looks like this:

    json=[{"data":{"title":"Tea Commerce","attributes":{"class":"sprTree sprTreeFolder","href":"javascript:UmbClientMgr.appActions().openDashboard(\u0027teacommerce\u0027);","umb:nodedata":"{\u0027menu\u0027:\u0027L\u0027,\u0027nodeType\u0027:\u0027teacommerce\u0027,\u0027source\u0027:\u0027/umbraco/tree.aspx?rnd=f4e5106bfb9a49eb837705d4b8730470\\u0026id=-1\\u0026contextMenu=true\\u0026isDialog=false\\u0026app=teacommerce\u0027}"}},"state":"closed","attributes":{"id":"-1","class":"","rel":"rootNode","umb:type":"NullTree"}}]

    The following is an approximation of the JSON:

    JSON
    -- null
    -- null
    -- null
    -- {}
       -- attributes
          -- class=
          -- id=NeedHelp
          -- rel=rootNode
          -- umb:type-tea-commerce-need-help-tree
       -- data
          -- attributes
             -- class=sprTree noSpr
             -- href=javascript:(function(){UmbClientMgr.contentFrame('/umbraco/plugins/tea-commerce/Views/Developer/NeedHelp.aspx');})
             -- umb:nodedata={'menu':'','nodeType':'tea-commerce-need-help-tree-need-help','source':null}
          -- icon=/umbraco/images/umbraco//WebResource.axd?d=4oVDqpR_PSIbWgiz8QlacUM8b3Rj1tPEGbWsZYniE0Rl6fgOkMTasUeFz8YkU_1lpc95opg9I6owQEBGKpieMmrcSk7o31MS7bWx0VbKOvF560PPxLzXAa1b6bCZ9y8BZi6ai218zOEck0CDbNhHQBVsq3tJcL__82Gh0Azp8uMMTgoqw9DUbvCsgL4o32jba9cJlOl3bVASxlXwTGuPMw2&t=634993893834767938
          -- title=Need help?

  • Anders Burla 2560 posts 8256 karma points
    Mar 20, 2013 @ 16:41
    Anders Burla
    0

    Could you verify that this file is present in your website:
    /umbraco/plugins/tea-commerce/Views/Developer/NeedHelp.aspx

    The Tea Commerce starter kit is installed on Umbraco 6.0.2 so we know it works :)

    Kind regards
    Anders

  • Jeremy Holland 20 posts 103 karma points
    Mar 20, 2013 @ 18:27
    Jeremy Holland
    0

    Hi Anders,

    The file is there, and the markup seems ok.

    Is there anything else I can check? The website is an upgraded Umbraco instance. Originally installed as 4.7.1 in 2011 and upgraded to 6.0.1 then 6.0.2 recently.

    Regards,

    Jeremy Holland

  • Anders Burla 2560 posts 8256 karma points
    Mar 21, 2013 @ 08:58
    Anders Burla
    0

    Could you try and clear your ClientDependency cache. And also check that the trees config files isnt corrupted or have duplicate trees. I think it has something to do with the Umbraco upgrade proess and not Tea Commerce.

    Kind regards
    Anders

  • Jeremy Holland 20 posts 103 karma points
    Mar 21, 2013 @ 19:28
    Jeremy Holland
    0

    That didn't help. I walked through the code using a debug build of Umbraco, and I think I'm seeing the cause of the null JSON result. Inside the LoadAppTrees method in the TreeDataService class at line 78, the bTree.RootNode is null. Digging further into the CreateRootNode method in the BaseTree class I found this:

     

    protected abstract void CreateRootNode(ref XmlTreeNode rootNode);   
    protected void CreateRootNode()
    {
           m_initNode = XmlTreeNode.CreateRoot(this);
    m_initNode.Icon = FolderIcon;
    m_initNode.OpenIcon = FolderIconOpen;
            CreateRootNode(ref m_initNode);
    }

    The m_initNode property has a valid object reference until the final call to CreateRootNode then the m_initNode is null, and that makes the rootNode of the TeaCommerce tree nodes null as well. The only difference is the help node of the tree seems to make it through, but if any of the nodes in the returned JSON are null the tree does not render so it is not rendered.

    Any thoughts on why this is happening?

     

  • Anders Burla 2560 posts 8256 karma points
    Mar 22, 2013 @ 10:57
    Anders Burla
    0

    Could I get you to install Tea Commerce in a fresh 6.0.2 install and see if you have the same problem? Just want to know if it has something to do with your updated Umbraco solution.

    Kind regards
    Anders

  • Søren Tidmand 129 posts 366 karma points
    Oct 17, 2013 @ 11:00
    Søren Tidmand
    0

    Hi Anders,

    Did you ever find a solution for this issue?

    I'm having the same problem with an installtion - Umbraco 6.1.6 and TC 2.2.0. The TC-section is loading without any problems but ONLY for the admin account. All added Umbraco users (even with Administrators) experience the "spinner"-loading issue. I've cleared ClientDependency cache and checked configs.

    Best regards,
    Søren 

  • Anders Burla 2560 posts 8256 karma points
    Oct 17, 2013 @ 11:42
    Anders Burla
    1

    If it loads for the admin account then the tree should work. So if you give access to Tea Commerce section AND have given the user access to the specific store then does it work? You give access when you are logged in with the admin user.

    Else try and check the log file if any errors has happend

    Kind regards
    Anders

  • Søren Tidmand 129 posts 366 karma points
    Oct 17, 2013 @ 14:11
    Søren Tidmand
    0

    Hi Anders,

    It seems that a user needs to have access to Security and Licenses before the Tea Commerce tree will actually load. However the user can't change much in the two areas other than remove the marker for the corresponding areas ... also for other users. A little odd ... but now the end user has access to the orders and that's a good thing ;-)

    /Søren

  • Anders Burla 2560 posts 8256 karma points
    Oct 17, 2013 @ 14:22
Please Sign in or register to post replies

Write your reply to:

Draft