Copied to clipboard

Flag this post as spam?

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

  • Hüseyin 4 posts 94 karma points
    Feb 17, 2022 @ 14:29

    JS Error on Converge Tab

    I have installed Converge in one of our v9 projects. when I try to enter or click on the menu of Converge tab I get a js error:

    Error: [$controller:ctrlreg]$controller/ctrlreg?p0=MergeFromRemote

    Project packages:

        Cogworks.Umbraco.Images 1.0.0
        StuartMullinger.Converge 9.0.0
        Umbraco.Cms 9.3.0

    I've installed the package to a new v9 project and everything worked perfectly. I've copied Converge folder from this new projects App_Plugin folder to my project but nothing changed

  • Stuart Mullinger 76 posts 393 karma points
    Feb 17, 2022 @ 15:26
    Stuart Mullinger

    Hi Hüseyin,

    Was there a Converge folder under App_Plugins after you first installed Converge? Or did it never exist until you copied it from your fresh project? This should get cleared and re-created each time you build the project. When I do a rebuild on a fresh 9.3.0 project I see.

    Rebuild started...
    1>------ Rebuild All started: Project: ConvergeTest_9_3_0, Configuration: Debug Any CPU ------
    Restored C:\Users\stu\Projects\ConvergeTest_9_3_0\ConvergeTest_9_3_0\ConvergeTest_9_3_0.csproj (in 796 ms).
    1>Clear old umbraco data
    1>Clear old Converge data
    1>Copying Umbraco content files: C:\Users\stu\.nuget\packages\umbraco.cms.staticassets\9.3.0\buildTransitive\..\content\umbraco\**\*.* - #47 files
    1>Copying Umbraco wwwroot content files: C:\Users\stu\.nuget\packages\umbraco.cms.staticassets\9.3.0\buildTransitive\..\content\wwwroot\umbraco\**\*.* - #2503 files
    1>ConvergeTest_9_3_0 -> C:\Users\stu\Projects\ConvergeTest_9_3_0\ConvergeTest_9_3_0\bin\Debug\net5.0\ConvergeTest_9_3_0.dll
    1>Copying Converge files: C:\Users\stu\.nuget\packages\stuartmullinger.converge\9.0.0\buildTransitive\..\App_Plugins\Converge\**\*.* - #14 files
    ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

    Do you see the "Clear old Converge data" and "Copying Converge files..." when you rebuild?

    My initial thoughts are that Converge hasn't been installed correctly. May be worth doing an uninstall and then re-install in NuGet.

    Let me know how you get on. Stuart.

  • Damian Leonard 2 posts 72 karma points
    Feb 17, 2022 @ 16:04
    Damian Leonard

    Hi Stuart,

    I'm having precisely the issue that Hüseyin is having. I have found that if I fire it up in debug, it works perfectly, once I try to publish (my output looks precisely like yours), it throws the js error.

    In the Console (from debug), I can see that you're writing "In MergeFromRemote controller" via edit.controller.js, and looking up the error, it seems like it a controller registration issue, and hence we get Error: [$controller:ctrlreg].

    Any thoughts? Does this help at all? I've uninstalled, reinstalled, upgraded to Umbraco 9.3.0, built, cleaned, rebuilt, deleted the publish folder and republished and am still getting the error.

    I'm wondering as well if it's more of an angular issue than Umbraco or VS.

    Hoping, Damian

  • Stuart Mullinger 76 posts 393 karma points
    Feb 17, 2022 @ 16:22
    Stuart Mullinger

    Thanks Damian,

    If it's a problem when you publish, could the files just be missing?

    Is the /App_Plugins/Converge folder included in the project? Can you see it in the published folder?

    I think you're right about it being an Angular issue. That part hasn't been changed very much from version 8, so I think this is some kind of config issue, rather than a code problem.


  • Damian Leonard 2 posts 72 karma points
    Feb 17, 2022 @ 16:49
    Damian Leonard

    Precisely our thought to be honest. My issue is figuring out which. The App_Plugins folder definitely exists, my publish copies 14 files across, as I saw in your post above. I'll bash away at it for a bit.

    If you guys find any kind of solution, please post it. Will probably be most helpful.


  • Stuart Mullinger 76 posts 393 karma points
    Feb 18, 2022 @ 11:00
    Stuart Mullinger

    Hi again,

    Looks like I left (accidentally) a couple of console.log statements in the JavaScript controller. Do you see either of these logged in the console?

    "On edit.controller.js load" [on page load]

    "In MergeFromRemote controller" [when you click on a tree element]

    I suspect you'll see the first one, but not the second. Just wanted to confirm.

    Thanks, Stuart.

  • Hüseyin 4 posts 94 karma points
    Feb 28, 2022 @ 12:25

    My issue is fixed. I did some cleaning in the project and the DB. I don't remember old logs but now I can see both 😁

    Thank you

Please Sign in or register to post replies

Write your reply to: