Copied to clipboard

Flag this post as spam?

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


  • Sam Marshallsay 35 posts 135 karma points
    Feb 21, 2023 @ 16:09
    Sam Marshallsay
    0

    Translation Manager broken in backoffice

    Hi Kevin,

    We use your great tool on one of our websites and it seems to have stopped working. It works fine on dev but throws JS errors on live. I have tried the following but no dice, maybe you can suggest something else? Admittedly I hadnt tested this on live since we upgraded to v11 but as it was working on dev it didn't come to mind!

    • I have tried deleting all the translation manager folders and replacing them with the ones from dev
    • Verified the licence file exists
    • Delete smidge folder and restart
    • Set the following in appsettings and restarted: "Umbraco": { "CMS": { "RuntimeMinification": { "UseInMemoryCache": false, "CacheBuster": "Version" },

    The errors are:

    When trying to view the 'pending items' page: umbraco-backoffice-js.js.v13cdc35a83017fae8ca81b6415c149dcc8827b51:147 Error: [$compile:multidir] http://errors.angularjs.org/1.8.3/$compile/multidir?p0=translateItemListView&p1=&p2=translateItemListView&p3=&p4=template&p5=%3Ctranslate-item-list-view%20culture%3D%22vm.cultureName%22%20status%3D%22vm.status%22%20selectable%3D%22true%22%20allow-remove%3D%22true%22%20allow-remove-all%3D%22true%22%20selected-items%3D%22vm.createOptions.items%22%20show-sets%3D%22true%22%3E at umbraco-backoffice-js.js.v13cdc35a83017fae8ca81b6415c149dcc8827b51:25:168

    Send to translation tab: umbraco-backoffice-js.js.v13cdc35a83017fae8ca81b6415c149dcc8827b51:147 Error: [$compile:multidir] http://errors.angularjs.org/1.8.3/$compile/multidir?p0=translateLanguagePicker&p1=&p2=translateLanguagePicker&p3=&p4=template&p5=%3Ctranslate-language-picker%20picked%3D%22vm.picked%22%20sets%3D%22vm.sets%22%3E at umbraco-backoffice-js.js.v13cdc35a83017fae8ca81b6415c149dcc8827b51:25:168

    umbraco-backoffice-js.js.v13cdc35a83017fae8ca81b6415c149dcc8827b51:147 Error: [$compile:multidir] http://errors.angularjs.org/1.8.3/$compile/multidir?p0=translateLicenceBanner&p1=&p2=translateLicenceBanner&p3=&p4=template&p5=%3Ctranslate-licence-banner%3E at umbraco-backoffice-js.js.v13cdc35a83017fae8ca81b6415c149dcc8827b51:25:168

    Thanks

    Sam

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Feb 21, 2023 @ 16:13
    Kevin Jump
    1

    Hi sam,

    Never see this before, maybe try adding a version to the appsettings too (as this will change the name of the generated js file and break browser caches too).

    "Umbraco": {
      "CMS": {
        "RuntimeMinification": {
          "UseInMemoryCache": true,
          "CacheBuster": "Version",
          "Version": "1234"
        }
      }
    }
    

    From the docs ( https://docs.umbraco.com/umbraco-cms/reference/configuration/runtimeminificationsettings#manually-changing-the-cache-buster-version )

  • Sam Marshallsay 35 posts 135 karma points
    Feb 21, 2023 @ 16:18
    Sam Marshallsay
    0

    That didn't help unfortunately, same errors. I'm running with browser dev tools open too and cache is disabled.

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Feb 21, 2023 @ 16:26
    Kevin Jump
    100

    Ok,

    So very quick google, compile/multidir is a multiple directive thing.

    When you upgrade from v9 to v11 you need to delete the translation manager files in the app_plugins folder.

    the main files are coming from an RCL.

    On a published site these end up in wwwroot/app_plugins and the files in /app_plugins should be removed.

    on a site run development, the files do not appear in your project they are served from the nuget cache.

  • Camilla Skibsted 14 posts 84 karma points
    Mar 24, 2023 @ 09:38
    Camilla Skibsted
    0

    Hi Kevin,

    We have recently taken over a project, where we upgraded Umbraco from v9 to v10 - and then upgraded your module as well. The site is running un Umb. Cloud.

    We have the same error as described above and we can solve it by deleting the files in appplugins. But when we deploy the files are added back to the appplugins and re-creates the error.

    Any suggestions on how to fix it?

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Mar 24, 2023 @ 09:47
    Kevin Jump
    0

    Hi,

    I am not 100% sure from a Umbraco Cloud perspective.

    but i would check what files are in the source control. and that there are no translation manager /App_Plugins files in there ?

    I would guess Cloud is re-adding the files because it thinks they are in the source .

  • Sam Marshallsay 35 posts 135 karma points
    Feb 21, 2023 @ 16:30
    Sam Marshallsay
    0

    Ah I was reading the same page but that didn't occur to me, d'oh. Makes sense. Thanks Kevin, all working now :)

Please Sign in or register to post replies

Write your reply to:

Draft