Copied to clipboard

Flag this post as spam?

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


  • jonok 243 posts 436 karma points
    Aug 13, 2011 @ 02:38
    jonok
    0

    Multi-Node Tree Picker - Folders not loading sometimes

    This is a very cool datatype, but I've got a strange problem occurring. I'm using Umbraco v4.7 with uComponents 2.2 Beta 3, and with the Multi-Node Tree Picker when I expand the folders within the 'Select Items' tree they sometimes don't load the children (I have 2 levels of folders/nodes beneath the root select node). It just briefly shows the loading/expanding animation and then nothing happens as if the folder is empty. Sometimes this happens quite often, eg. 1 out of every 3 times, other times it will work fine for 10 or so times in a row. Once it fails to expand one tree item, then all other trees within that 'Select Items' section fail (including Multi-Node Tree Pickers in the other tabs) until I refresh the page.  I have tested in different browsers and its happening in Firefox 5, Chrome, IE9.

    I can't see any javascript errors, and I have a few Multi-Node Tree Pickers in different tabs across the top. Has anybody else seen this problem before?

  • jonok 243 posts 436 karma points
    Aug 15, 2011 @ 00:58
    jonok
    0

    I have done some more testing with this using Umbraco 4.7 and uComponents v2.1 RTM, and the problem still occurs but it seems to happen only when I have more than 1 Multi-Node Tree Picker property on a document type. It happens when the properties are on the same tab, and also when they are on separate tabs.

  • Dan Okkels Brendstrup 101 posts 197 karma points
    Sep 20, 2011 @ 15:52
    Dan Okkels Brendstrup
    0

    Same issue here, on Umbraco 4.7.0 and uComponents 2.1 (latest stable release). Oddly enough, the tree pickers work fine on our test server, but on my local dev maching they don't load. As jonok describes, only the root folder is displayed, but no children appear. I experience the problem regardless of whether I have one or more MNTP controls on a single tab or document type.

    My web inspector console displays an Error 500 for each instance of the MNTP, with different "rnd" values for each instance:

    http://domain.local/umbraco/webservices/TreeDataService.ashx?rnd=f5558b788e7f4c99b876bc9ebf82a4cc&id=1046&treeType=FilteredContentTree&contextMenu=false&isDialog=true&dialogMode=id&nodeKey=8204&rnd2=35.1

  • Lee Kelleher 3640 posts 13031 karma points admin core mvp c-trib
    Sep 20, 2011 @ 16:07
    Lee Kelleher
    0

    I have seen this 500 error before ... however it disappears once I restart the app-pool (or touch the Web.config).  I've been unable to debug this, as I can not figure out how to replicate the error, and once I see the error, attaching Visual Studio to the w3p.exe process restarts the app-pool (making the error disppear!)

    If you can figure out how to reproduce the error, that would be great.

    Cheers, Lee.

  • Dan Okkels Brendstrup 101 posts 197 karma points
    Sep 20, 2011 @ 16:58
    Dan Okkels Brendstrup
    0

    Thanks for the quick reply, Lee.

    I'm not hooked up with Visual Studio, so I'm afraid I can't help much there. And unfortunately I have no problem reproducing the error, which is consistent across app pool recycles and web.config touches. But only on my dev machine, not on our test server, and not on my colleagues dev machine either. All are running IIS 7.5 and .NET 4.0.30319, and I can't see any other environment variables, that would affect it. I'll let you know if I discover anything that points to some reason or consistency.

  • jonok 243 posts 436 karma points
    Sep 20, 2011 @ 23:20
    jonok
    0

    It's happening for me on both IIS6 & IIS7 (dev & production servers). However I didn't realise it was a server error - for some reason I thought it was a javascript issue. Now that I check my event log, I'm gettting the following exception when the problem occurs:

    Request URL: http://domain.com/umbraco/webservices/TreeDataService.ashx?rnd=c82d9828543a4444ad330f69dbafb7f8&id=1691&treeType=FilteredContentTree&contextMenu=false&isDialog=true&dialogMode=id&nodeKey=1648&rnd2=99.8

    Exception information:
        Exception type: NullReferenceException
        Exception message: Object reference not set to an instance of an object.
       at umbraco.cms.presentation.Trees.JsTreeNodeConverter.Serialize(Object obj, JavaScriptSerializer serializer)
       at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
       at System.Web.Script.Serialization.JavaScriptSerializer.SerializeEnumerable(IEnumerable enumerable, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
       at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
       at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
       at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat)
       at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, SerializationFormat serializationFormat)
       at umbraco.businesslogic.Utils.JSONSerializer.Serialize(Object obj)
       at umbraco.cms.presentation.Trees.XmlTree.ToString(SerializedTreeType type)
       at umbraco.cms.presentation.Trees.XmlTree.ToString()
       at umbraco.presentation.webservices.TreeDataService.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  • Dan Okkels Brendstrup 101 posts 197 karma points
    Sep 23, 2011 @ 13:04
    Dan Okkels Brendstrup
    1

    @Lee: Mysteriously, all my MNTP instances have started working again. An unrelated bug caused all my Umbraco nodes to unpublish themselves (oh joy), and to solve that problem I deleted my entire App_Data/TEMP directory, including all Examine indexes, and then published all my nodes again (not just "Republish entire site" to refresh the cache, but actually republishing each node). After that, the MNTPs suddenly worked again.

    I can't be sure of the actual cause-and-effect here, as I could easily have done something else that affected it, but is there any chance that the MNTP rendering would be tripped up by unpublished (or "semi-published") nodes, or anything to do with the Examine index? Or more likely something in the ClientDependency folder in the TEMP-directory, which I also deleted?

  • Dan 1208 posts 3534 karma points admin c-trib
    Nov 03, 2011 @ 18:36
    Dan
    0

    I had a similar thing just now whereby no content tree was being rendered by the MNTP at all (on a new 4.7.1 installation running SQLCE).  I deleted everything inside App_Data/TEMP and it fixed it.  I've no idea if this is anything to do with the examine index as per Dan's suggestion above, but I had used the back-office search facility just prior to setting up the MNTP data type, which I think does do something with the Examine index.

  • Lo0 1 post 21 karma points
    Mar 22, 2012 @ 10:37
    Lo0
    0

    Thank you, Dan. Solved my problem

  • Ruald Gerber 20 posts 41 karma points
    Oct 23, 2012 @ 15:52
    Ruald Gerber
    0

    EDIT: Turns out there were just parts of the website that I missed out while publishing. Would still like to know why this happened in the first place.

    Hi

    Has anyone found what is actually causing this? It is happening on my site and deleting the App_Data/TEMP directory didn't solve my problem. I'm running Umbraco 4.7.2 with uComponments 3.1.0.

    A bit more background... my site was running fine until something triggered certain parts of the site to disappear. Went through various attempts to fix it by "Republish entire site", rebuilding indexes, deleting App_Data/TEMP directory. Finally got the site back but had to manually publish the entire site. Now site is running fine however all the MNTP (in content section) are empty.

    Thanks

  • Rasmus Fjord 584 posts 1413 karma points c-trib
    Nov 07, 2012 @ 15:48
    Rasmus Fjord
    0

    i just had the same experience.

    My MNTP are all empty right now, the selections are there but nodetree on the left where missing.

    but after an apppool recycle it all worked again. 

    The call with the error in looked like this : 

     

     

     

     

  • danial 6 posts 26 karma points
    Dec 26, 2012 @ 15:06
    danial
    0

    Hi Guys!

    I have a similar problem with 4.11.1! the problem is content tree is working fine on some clients and does not work at all in some other clients! also in IE9 it does not show at all!

    I've tried clearign temp/clientdependency and various workarounds here and there but still no change in this behaviour!

    I'd appreciate any help I can get!

    Thanks

  • danial 6 posts 26 karma points
    Dec 26, 2012 @ 18:30
    danial
    0

    Hi Guys!!!

    Sorry it was a dumb mistake of me!!!

    Thanks!

  • Sam Pearson 33 posts 86 karma points
    Apr 10, 2013 @ 11:41
    Sam Pearson
    1

    I was getting this issue too, tried most steps suggested including deleting the umbraco.config file in the App_Data folder along with the contents of the TEMP folder without success. Also tried recycling the App pool which also made no difference.

    What finally worked for me was republishing the whole site using  http://MYDOMAIN/Umbraco/dialogs/republish.aspx?xml=true rather than just using the 'Republish entire site' option on the content root.

    Cheers

  • kim Thomsen 59 posts 277 karma points
    Apr 17, 2013 @ 09:43
    kim Thomsen
    0

    Had the same problem. And this  MYDOMAIN/Umbraco/dialogs/republish.aspx?xml=true  also fixed my problem

  • Tom Underhill 13 posts 87 karma points
    Dec 17, 2013 @ 11:35
    Tom Underhill
    0

    Republishing isn't a great option if you have a large content tree (takes too long). Anyone got any real fix ideas?

  • Stefan van Leusden 19 posts 71 karma points
    Jun 05, 2015 @ 14:07
    Stefan van Leusden
    0

    Had the same issue/error in de console log. 

    There was a node created which had a 'SingleOrDefault' in the code and was only allowed to be created once.
    After deleting the node (which only can be done in umb 6.1.6. through the database due a bug), my issue was solved.

Please Sign in or register to post replies

Write your reply to:

Draft