Copied to clipboard

Flag this post as spam?

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


  • Greg Fyans 140 posts 342 karma points
    Sep 17, 2014 @ 18:41
    Greg Fyans
    0

    Fresh install - Javascript error

    Hi,

    Using Umbraco 7.1.6. Grid Data Type 1.1.

    I've created a simple grid editor, see the following screenshot:

    https://screenmedia-co.mangoapps.com/sf/MjYzMDlfOTMyNDE2

    I've added it to a doctype as the only property. When I view it in the content editor, I get the following Javascript error:

    Error: Duplicates in a repeater are not allowed. Repeater: row in model.value key: string:t
        at Error (native)
        at http://localhost:1664/umbraco/lib/angular/1.1.5/angular.min.js:161:273
        at Object.fn (http://localhost:1664/umbraco/lib/angular/1.1.5/angular.min.js:90:12)
        at Object.e.$digest (http://localhost:1664/umbraco/lib/angular/1.1.5/angular.min.js:90:356)
        at Object.e.$apply (http://localhost:1664/umbraco/lib/angular/1.1.5/angular.min.js:92:431)
        at j (http://localhost:1664/umbraco/lib/angular/1.1.5/angular.min.js:101:80)
        at r (http://localhost:1664/umbraco/lib/angular/1.1.5/angular.min.js:104:449)
        at XMLHttpRequest.v.onreadystatechange (http://localhost:1664/umbraco/lib/angular/1.1.5/angular.min.js:106:90) angular.min.js:63(anonymous function) angular.min.js:63(anonymous function) angular.min.js:54e.$digest angular.min.js:90e.$apply angular.min.js:92j angular.min.js:101r angular.min.js:104v.onreadystatechange

    Any ideas?

    Greg.

  • Floyd 7 posts 51 karma points
    Sep 18, 2014 @ 01:48
    Floyd
    0

    I get the same error so I would also be curious as to what is happening.

  • gilad 185 posts 425 karma points
    Sep 18, 2014 @ 10:37
    gilad
    0

    Hi gfyansFloyd 

    Just now download the 7.1.6 and the GDT1.1

    I Can't see this problem,

    But according the error it is because some duplicate in the rows,

    ( Now i set the same alias for both row and it is happen ).

    Try to change the alias of each row again and , and save the Doc type.

    Hope it help.

    Cheers.

  • Greg Fyans 140 posts 342 karma points
    Sep 18, 2014 @ 14:39
    Greg Fyans
    0

    Hey,

    So I tried changing the alias of the rows and the doc type property, still getting this error.

    I also have the following packages installed:

    • Glimpse7
    • Sir Trevor
    • uDatefoldersy
    • UrlTracker
    But I don't have any other properties in this doctype so there shouldn't be a conflict anywhere.
    I don't think I have anything else in this solution that might be causing a problem, it's pretty new.
    Floyd - are you running this from Visual Studio (F5 or ctrl+F5)?
    G.
  • Floyd 7 posts 51 karma points
    Sep 18, 2014 @ 17:53
    Floyd
    0

    Yes I am running this from Visual Studio (F5) and Umbraco version 7.0.4.

    The issues I see are:

    • When I install the package the Content Grid does not display under a property editor to create a data type from. I have to then install another package (I've been using Dynamic Data Grid to install) for it to appear in the list.
    • Then when I try to create the data type, and select "Add column" I get javascript errors similar to the one above from angular, so I cannot actually add columns for the newly created data type.

    Here is the Javascript error I get when clicking "Add Column":

    Error: Argument 'u7dtg.prevaluesController' is not a function, got undefined at Error (native) at cb (http://localhost:50285/umbraco/lib/angular/1.1.5/angular.min.js:17:114) at xa (http://localhost:50285/umbraco/lib/angular/1.1.5/angular.min.js:17:187) at http://localhost:50285/umbraco/lib/angular/1.1.5/angular.min.js:53:310 at http://localhost:50285/umbraco/lib/angular/1.1.5/angular.min.js:44:274 at n (http://localhost:50285/umbraco/lib/angular/1.1.5/angular.min.js:7:74) at k (http://localhost:50285/umbraco/lib/angular/1.1.5/angular.min.js:44:139) at e (http://localhost:50285/umbraco/lib/angular/1.1.5/angular.min.js:40:139) at http://localhost:50285/umbraco/lib/angular/1.1.5/angular.min.js:39:205 at http://localhost:50285/umbraco/lib/angular/1.1.5/angular.min.js:158:18

  • Greg Fyans 140 posts 342 karma points
    Sep 22, 2014 @ 09:59
    Greg Fyans
    0

    Eh, OK, this is working for me now!

    Don't know what I did - could've been Umbraco's aggressive caching.

    Greg.

  • 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