Copied to clipboard

Flag this post as spam?

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


  • Simon Dingley 1474 posts 3431 karma points c-trib
    Apr 12, 2010 @ 16:08
    Simon Dingley
    0

    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?

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Apr 12, 2010 @ 16:38
    Hendy Racher
    0

    Hi Simon,

    Thanks for the heads-up, not tried it with 4.1 yet, but I'll investigate....

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Apr 12, 2010 @ 17:20
    Hendy Racher
    0

    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

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Apr 13, 2010 @ 11:17
    Simon Dingley
    0

    I will try again and come back to you on that with results.

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Apr 14, 2010 @ 09:56
    Simon Dingley
    0

    Reinstalled and trees now all present and correct, not sure what happened the first time around.

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Apr 14, 2010 @ 11:33
    Simon Dingley
    0

    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.

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Apr 16, 2010 @ 15:23
    Hendy Racher
    0

    Is this working for you now Simon ?

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Apr 16, 2010 @ 15:58
    Simon Dingley
    0

    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?

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Apr 16, 2010 @ 16:29
    Hendy Racher
    1

    I'll email you the source - I've not had any problems with 4.1 beta, so not sure where the problem is.

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Apr 16, 2010 @ 17:39
    Simon Dingley
    0

    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:

    Error: illegal character
    javascript:openModal(\u0027plugins/Relations/NewRelationType.aspx?id=\u0027 + nodeID, \u0027Create New RelationType\u0027, 275, 400);;}},{"id":"o","label":"\u003cdiv class=\u0027menuSpr sprNew\u0027\u003e\u003c/div\u003e\u003cdiv class=\u0027menuLabel\u00

  • Guus Hamann 3 posts 23 karma points
    Jul 06, 2010 @ 14:18
    Guus Hamann
    0

    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:

    illegal character
    openModal(\u0027plugins/Sitereactor/Go...iv\u003e\u003cdiv
     class=\u0027menuLabe

    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);;}}];     

  • Guus Hamann 3 posts 23 karma points
    Jul 06, 2010 @ 14:34
    Guus Hamann
    0

    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 

    openModal(\u0027plugins/Sitereactor/GoogleAnalytics/CreateReport.aspx?id=\u0027 

    Thank you for helping

    Guus Hamann

  • Stephen 767 posts 2273 karma points c-trib
    Jul 19, 2010 @ 15:14
    Stephen
    1

    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:

    return string.Format("{0}.actionNewRelationType()", umbraco.BasePages.ClientTools.Scripts.GetAppActions);

    And RelationTypeTree RenderJs method now looks like

                javascript.Append(@"
    function viewRelationType(id) {
        UmbClientMgr.contentFrame('plugins/Relations/ViewRelationType.aspx?id=' + id);
    }
    UmbClientMgr.appActions().actionNewRelation = function () {
        if (UmbClientMgr.mainTree().getActionNode().nodeId != '0' && UmbClientMgr.mainTree().getActionNode().nodeType != '') {
            UmbClientMgr.openModalWindow('plugins/Relations/NewRelation.aspx?id=' + UmbClientMgr.mainTree().getActionNode().nodeId + '&rnd=' + this._utils.generateRandom(), 'Create New Relation', true, 500, 600);
        }
    };
    UmbClientMgr.appActions().actionNewRelationType = function() {
        if (UmbClientMgr.mainTree().getActionNode().nodeId != '0' && UmbClientMgr.mainTree().getActionNode().nodeType != '') {
            UmbClientMgr.openModalWindow('plugins/Relations/NewRelationType.aspx?id=' + UmbClientMgr.mainTree().getActionNode().nodeId + '&rnd=' + this._utils.generateRandom(), 'Create New RelationType', true, 275, 400);
        }
    };
    ");

    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...

     

Please Sign in or register to post replies

Write your reply to:

Draft