Copied to clipboard

Flag this post as spam?

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


  • Stefano Beretta 102 posts 247 karma points
    Mar 29, 2018 @ 12:46
    Stefano Beretta
    1

    mainTreeEventHandler.syncTree is not a function

    Hi everyone!

    After the upgrade from 7.9.3 to 7.10.0 I get this error (attached image).

    It occurs if I reload (F5) a page, when the Url is set on a specific node (eg: /umbraco#/content/content/edit/9999). The error interrupts the others js, keeping the page in the "loading state".

    It seems Umbraco can't sync the tree on the current node selected by the url.

    Does someone have the same problem or it's just mine?

    Thank you!

    error

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Mar 29, 2018 @ 13:16
    Søren Gregersen
    1

    I’ve seen this too. On a clean 7.10 install

  • Stefano Beretta 102 posts 247 karma points
    Mar 29, 2018 @ 13:23
    Stefano Beretta
    0

    I've downgraded to 7.9.3 and the error's gone.

    Re-upgraded to 7.10.0 and the error's back.

    Clean 7.10.0 install and the error is there (thanks Søren Gregersen).

    Should I report the issue?

    Thank you

    S

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Apr 03, 2018 @ 08:36
    Michaël Vanbrabandt
    0

    Hi Stefano,

    you can place this in the issue tracker: http://issues.umbraco.org

    Have a nice day.

    /Michaël

  • Mikael Syska 24 posts 91 karma points
    Apr 03, 2018 @ 08:34
    Mikael Syska
    0

    Same issue here as you Stefano. Basically clean install with uSync.

    I would report it with the same description.

  • Andreas Emtinger 23 posts 185 karma points
    Apr 09, 2018 @ 09:32
    Andreas Emtinger
    0

    Not fixed in 7.10.1. Did you report it?

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Apr 09, 2018 @ 09:41
    Michaël Vanbrabandt
    0

    Hi all,

    issue is created on the tracker: http://issues.umbraco.org/issue/U4-11167

    Hope this helps!

    /Michaël

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 09, 2018 @ 12:06
    Dave Woestenborghs
    0

    And my fix has been merged in : https://github.com/umbraco/Umbraco-CMS/pull/2556

    Dave

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 13, 2018 @ 07:09
    Dave Woestenborghs
    1

    This is fixed in 7.9.4 and 7.10.2

    Dave

  • Giles Olley 9 posts 83 karma points
    Apr 13, 2018 @ 14:59
    Giles Olley
    0

    We're still having this exact issue with 7.10.2 on multiple implementations. Just wondering if anyone else has found a fix I can manually add?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 13, 2018 @ 16:48
    Dave Woestenborghs
    0

    Hi Giles,

    can you take the following steps.

    • Go to config/ClientDependency.config and bump the version number
    • Empty the cache of your browser
    • Try again

    Dave

  • Nicholas Westby 2054 posts 7104 karma points c-trib
    Apr 25, 2018 @ 22:07
    Nicholas Westby
    0

    Hi Dave,

    Just tried on Umbraco 7.10.4. Content section seems fine. Formulate (a plugin that's not part of the Umbraco core) has the error, which is initiated from this line in the Formulate JavaScript:

    Formulate JavaScript

    Does your fix apply to plugins as well, or is there some code change also required of plugins?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 26, 2018 @ 05:06
    Dave Woestenborghs
    0

    Hi Nicholas,

    That is because you are calling the sync tree method directly in your code :

    https://github.com/rhythmagency/formulate/blob/master/src/formulate.app/JavaScript/Services/formulateTrees.js#L31

    And this can be null if the tree has not finished initializing yet.

    May you can handle it this way, by handling the promise that syncTree returns.

    https://github.com/dawoe/umbraco-tour-editor/blob/develop/Source/Our.Umbraco.TourEditor/Web/App_Plugins/TourEditor/scripts/controllers/edit-file-controller.js

    Dave

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies