Copied to clipboard

Flag this post as spam?

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


  • ZNS 60 posts 198 karma points
    Apr 05, 2018 @ 20:08
    ZNS
    1

    After upgrade from 7.6 moment.locale issues

    Hi.

    I've updated from 7.6.5 to 7.10.1 but I get javascript errors in the console and I can't for example click the "Set date" under the new "Info"-tab. Nothing happens.

    Error: dateVal.locale is not a function
    getLocalDate@http://vto-ua.m2b.se/umbraco/js/umbraco.services.js:9492:28
    formatDatesToLocal/<@http://vto-ua.m2b.se/umbraco/js/umbraco.directives.js:2693:58
    i@http://vto-ua.m2b.se/umbraco/lib/angular/1.1.5/angular.min.js:79:432
    then/<@http://vto-ua.m2b.se/umbraco/lib/angular/1.1.5/angular.min.js:80:485
    $eval@http://vto-ua.m2b.se/umbraco/lib/angular/1.1.5/angular.min.js:92:268
    $digest@http://vto-ua.m2b.se/umbraco/lib/angular/1.1.5/angular.min.js:90:140
    $apply@http://vto-ua.m2b.se/umbraco/lib/angular/1.1.5/angular.min.js:92:429
    j@http://vto-ua.m2b.se/umbraco/lib/angular/1.1.5/angular.min.js:101:78
    r@http://vto-ua.m2b.se/umbraco/lib/angular/1.1.5/angular.min.js:104:449
    dd/</w.onreadystatechange@http://vto-ua.m2b.se/umbraco/lib/angular/1.1.5/angular.min.js:106:90
    angular.min.js:63:113
    

    and

    Error: moment.locale is not a function
    

    I have deleted the ClientDependency cache folders and emptied browser cache. There also seems to be missing Swedish translations for parts in the new user and "Info"-tab interfaces.

  • ZNS 60 posts 198 karma points
    Apr 05, 2018 @ 22:39
    ZNS
    101

    This was due to an old plugin which loaded another version of moment.js.. solved now.

  • Tim Murphy 7 posts 77 karma points
    Apr 10, 2018 @ 03:02
    Tim Murphy
    0

    Hi ZNS,

    Which plugin was it? I'm having exactly the same trouble with moment.js after upgrading from 7.6.5 to 7.10.1.

  • Tim Murphy 7 posts 77 karma points
    Apr 11, 2018 @ 04:12
    Tim Murphy
    1

    Deleting an old installation of Umbraco Forms worked for me.

  • Colin Asquith 3 posts 35 karma points
    Apr 30, 2018 @ 12:02
    Colin Asquith
    1

    For me both the Analytics and Umbraco Forms had their own version of the moment library, which I think are now part of Core. I didn't need the analytics plugin so removed this, and removed the moment folder in the Umbraco Forms plugin folder in /App_Plugins/UmbracoForms/Assets/

Please Sign in or register to post replies

Write your reply to:

Draft