I have tried installing this in 4.1 Beta 2 and it killed all app trees in Umbraco. Not had a chance to invesitgate why yet and I am setting up my relationshpi types manually for the moment I just wondered if you were aware of any issues?
Hi Simon, Just tested it and it installs fine on a virgin 4.1 beta 2 release. The tree hooks into Umbraco by adding a row into umbracoAppTree, via the following package action :
My previous posts were deleted, however as discussed on Twitter the above was posted in error as I realised I had reinstalled in a 4.0.3 site after posting. The issue still exists in 4.1 Beta 2 even after refreshing the application. I will send you my umbracoAppTree table via email for review.
Unfortunately not, I had another little play around with it this morning and the only way I could get my trees back was to remove the dll. At first I tried removing the appTree from the database which I thought had got them back last time but it didn't. Not had much of a chance to try and investigate further but based on an issue I had myself with custom trees yesterday there is very little to go on in terms of debugging OOB.
Is the source available for your package so I can try and debug it locally?
And that should fix the mentionned issues with the tree.
Unfortunately we are running into many more issues with the code, mainly because we run on MySql, not SQL Server, and various things are simply hard-coded for SQL Server. Will try to post patches...
Any known issues in 4.1?
I have tried installing this in 4.1 Beta 2 and it killed all app trees in Umbraco. Not had a chance to invesitgate why yet and I am setting up my relationshpi types manually for the moment I just wondered if you were aware of any issues?
Hi Simon,
Thanks for the heads-up, not tried it with 4.1 yet, but I'll investigate....
Hi Simon, Just tested it and it installs fine on a virgin 4.1 beta 2 release. The tree hooks into Umbraco by adding a row into umbracoAppTree, via the following package action :
<Action runat="install" alias="addApplicationTree" silent="false" initialize="true" sortOrder="4" applicationAlias="developer" treeAlias="relations" treeTitle="Relation Types" iconOpened=".sprTreeFolder_o" iconClosed=".sprTreeFolder" assemblyName="UmbracoRelations" treeHandlerType="RelationTypeTree" action="" />
HTH,
Hendy
I will try again and come back to you on that with results.
Reinstalled and trees now all present and correct, not sure what happened the first time around.
My previous posts were deleted, however as discussed on Twitter the above was posted in error as I realised I had reinstalled in a 4.0.3 site after posting. The issue still exists in 4.1 Beta 2 even after refreshing the application. I will send you my umbracoAppTree table via email for review.
Is this working for you now Simon ?
Unfortunately not, I had another little play around with it this morning and the only way I could get my trees back was to remove the dll. At first I tried removing the appTree from the database which I thought had got them back last time but it didn't. Not had much of a chance to try and investigate further but based on an issue I had myself with custom trees yesterday there is very little to go on in terms of debugging OOB.
Is the source available for your package so I can try and debug it locally?
I'll email you the source - I've not had any problems with 4.1 beta, so not sure where the problem is.
Found the source of the problem just not why it is occurring yet and more confusingly why yours works and mine doesn't!
Strange that by browsing to http://mysite/umbraco/tree.aspx?app=developer I actually get the Tree XML but by browsing to http://mysite/umbraco/treeInit.aspx I see a Javascript error as follows:
I have exactly the same error after upgrading to 4.5, I do not see the tree when starting umbraco
I used this build: http://nightly.umbraco.org/umbraco%204.1%20for%20asp.net%203.5/4.1/
this is the firebug console result:
and this is the full line that gives the error
var ctxMenu = [{"id":"I","label":"\u003cdiv class=\u0027menuSpr sprDomain\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eManage hostnames\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionAssignDomain();}},{"id":"Z","label":"\u003cdiv class=\u0027menuSpr sprAudit\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eAudit Trail\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionAudit();}},{"id":"4","label":"\u003cdiv class=\u0027menuSpr sprExportDocumentType\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eExport to .NET\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionExportCode();}},{"id":"O","label":"\u003cdiv class=\u0027menuSpr sprCopy\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eCopy\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionCopy();}},{"id":"D","label":"\u003cdiv class=\u0027menuSpr sprDelete\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eDelete\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionDelete();}},{"id":"E","label":"\u003cdiv class=\u0027menuSpr sprDelete\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eDisable\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionDisable();}},{"id":"N","label":"\u003cdiv class=\u0027menuSpr sprBinEmpty\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eEmpty recycle bin\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionEmptyTranscan();}},{"id":"9","label":"\u003cdiv class=\u0027menuSpr sprExportDocumentType\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eExport Document Type\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionExport();}},{"id":"8","label":"\u003cdiv class=\u0027menuSpr sprImportDocumentType\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eImport Document Type\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionImport();}},{"id":":","label":"\u003cdiv class=\u0027menuSpr sprLiveEdit\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eEdit in Canvas\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionLiveEdit();}},{"id":"M","label":"\u003cdiv class=\u0027menuSpr sprMove\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eMove\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionMove();}},{"id":"C","label":"\u003cdiv class=\u0027menuSpr sprNew\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eCreate\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionNew();}},{"id":"!","label":"\u003cdiv class=\u0027menuSpr sprCreateFolder\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003e[createFolder]\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionNewFolder();}},{"id":"T","label":"\u003cdiv class=\u0027menuSpr sprNotify\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eNotifications\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionNotify();}},{"id":"X","label":"\u003cdiv class=\u0027menuSpr sprPackage2\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eImport Package\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionPackage();}},{"id":"Y","label":"\u003cdiv class=\u0027menuSpr sprPackage2\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eCreate Package\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionPackageCreate();}},{"id":"P","label":"\u003cdiv class=\u0027menuSpr sprProtect\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003ePublic access\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionProtect();}},{"id":"U","label":"\u003cdiv class=\u0027menuSpr sprPublish\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003ePublish\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionPublish();}},{"id":"Q","label":"\u003cdiv class=\u0027menuSpr sprLogout\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eLogout\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionQuit();}},{"id":"L","label":"\u003cdiv class=\u0027menuSpr sprRefresh\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eReload nodes\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionRefresh();}},{"id":"B","label":"\u003cdiv class=\u0027menuSpr sprPublish\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eRepublish entire site\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionRePublish();}},{"id":"R","label":"\u003cdiv class=\u0027menuSpr sprPermission\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003ePermissions\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionRights();}},{"id":"K","label":"\u003cdiv class=\u0027menuSpr sprRollback\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eRollback\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionRollback();}},{"id":"5","label":"\u003cdiv class=\u0027menuSpr sprSendToTranslate\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eSend To Translation\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionSendToTranslate();}},{"id":"S","label":"\u003cdiv class=\u0027menuSpr sprSort\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eSort\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionSort();}},{"id":"H","label":"\u003cdiv class=\u0027menuSpr sprToPublish\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eSend To Publish\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionToPublish();}},{"id":"A","label":"\u003cdiv class=\u0027menuSpr sprUpdate\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eUpdate\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){UmbClientMgr.appActions().actionUpdate();}},{"id":"r","label":"\u003cdiv class=\u0027menuSpr sprNew\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eCreate\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){openModal(\u0027plugins/Sitereactor/GoogleAnalytics/CreateReport.aspx?id=\u0027 + nodeID, \u0027Create New Report\u0027, 540, 620);;}},{"id":"p","label":"\u003cdiv class=\u0027menuSpr sprPermission\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003ePermissions\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){openModal(\u0027plugins/Sitereactor/GoogleAnalytics/SetRights.aspx?id=\u0027 + nodeID, \u0027Set access rights\u0027, 550, 480);;}},{"id":"v","label":"\u003cdiv class=\u0027menuSpr sprSort\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eSort\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){openModal(\u0027plugins/Sitereactor/GoogleAnalytics/SortNodes.aspx?id=\u0027 + nodeID, uiKeys[\u0027actions_sort\u0027], 450, 600);;}},{"id":"d","label":"\u003cdiv class=\u0027menuSpr sprDelete\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eDelete\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){openModal(\u0027plugins/Sitereactor/GoogleAnalytics/DeleteReport.aspx?id=\u0027 + nodeID, \u0027Delete Report\u0027, 160, 280);;}},{"id":"u","label":"\u003cdiv class=\u0027menuSpr sprUpdate\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eUpdate\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){openModal(\u0027plugins/Sitereactor/GoogleAnalytics/UpdateReport.aspx?id=\u0027 + nodeID, \u0027Update Report\u0027, 550, 480);;}},{"id":"q","label":"\u003cdiv class=\u0027menuSpr sprDelete\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eDelete\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){openModal(\u0027plugins/Sitereactor/GoogleAnalytics/DeleteSection.aspx?id=\u0027 + nodeID, \u0027Delete Section\u0027, 160, 280);;}},{"id":"s","label":"\u003cdiv class=\u0027menuSpr sprNew\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003eCreate\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){openModal(\u0027plugins/Sitereactor/GoogleAnalytics/CreateSection.aspx?id=\u0027 + nodeID, \u0027Create New Section\u0027, 540, 620);;}},{"id":"i","label":"\u003cdiv class=\u0027menuSpr sprAudit\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u0027\u003e[changeicon]\u003c/div\u003e","visible":function() {return true;},"action":function(N,T){openModal(\u0027plugins/Sitereactor/GoogleAnalytics/ChangeIcon.aspx?id=\u0027 + nodeID, \u0027Change Icon\u0027, 160, 280);;}}];
Sorry for the long post, I have found on which character it breaks in the line above
The first backslash breaks the code, in my line that is character number 7406
Thank you for helping
Guus Hamann
We have fixed that issue by slightly refactoring the code to use the new umbraco.BasePages.ClientTools.
Basically, ActionNewRelation and ActionNewRelationType JsFunctionName methods now look like:
And RelationTypeTree RenderJs method now looks like
And that should fix the mentionned issues with the tree.
Unfortunately we are running into many more issues with the code, mainly because we run on MySql, not SQL Server, and various things are simply hard-coded for SQL Server. Will try to post patches...
is working on a reply...