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:
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.
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.
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:
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.
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.
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.
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
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 ;-)
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?
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
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
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
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?
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
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
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
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
That sounds like a problem with uComponents that Jeavon also had. Try and google for that :)
http://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/41082-Bug-in-Tea-Commerce-v211-JS-error-if-no-securitylicense-access
is working on a reply...