Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44186

Assignments: Uncaught (in promise) TypeError: this.i18n is undefined for document viewer

    XMLWordPrintable

    Details

    • 21 Status:
      Resolved
    • 20 status:
      Resolved
    • Test Plan:
      Hide

      With the browser console open:

      1. Create an assignment allowing attachments
      2. Have the student submit an attachment only - no text 
      3. As the instructor, click Grade >student's name
      4. The document is displayed in the previewer but there is also a console error
      Show
      With the browser console open: Create an assignment allowing attachments Have the student submit an attachment only - no text  As the instructor, click Grade >student's name The document is displayed in the previewer but there is also a console error

      Description

      The previewer in the assignments grader is displaying console errors on 21x and 20x:

      Uncaught (in promise) TypeError: this.i18n is undefined
      render https://trunk-mysql.nightly.sakaiproject.org/webcomponents/sakai-document-viewer.js?version=24e0ae41:61
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lit-element.js?version=24e0ae41:239
      performUpdate https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:633
      _enqueueUpdate https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:577
      requestUpdateInternal https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:539
      initialize https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:367
      initialize https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lit-element.js?version=24e0ae41:159
      UpdatingElement https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:104
      LitElement https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lit-element.js?version=24e0ae41:85
      SakaiElement https://trunk-mysql.nightly.sakaiproject.org/webcomponents/sakai-element.js?version=24e0ae41:4
      SakaiDocumentViewer https://trunk-mysql.nightly.sakaiproject.org/webcomponents/sakai-document-viewer.js?version=24e0ae41:26
      _clone https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:87
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:308
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:44
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:310
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:44
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:310
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:44
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:310
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:44
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:310
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:44
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:310
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      render https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/render.js?version=24e0ae41:48
      render https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/shady-render.js?version=24e0ae41:279
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lit-element.js?version=24e0ae41:243
      performUpdate https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:633
      _enqueueUpdate https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:577
      requestUpdateInternal https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:539
      set https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:235
      loadGradableData https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-gradable-data-mixin.js?version=24e0ae41:30
      promise callback*loadGradableData/</< https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-gradable-data-mixin.js?version=24e0ae41:27
      promise callback*loadGradableData/< https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-gradable-data-mixin.js?version=24e0ae41:10
      loadGradableData https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-gradable-data-mixin.js?version=24e0ae41:6
      loadData https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-grader.js?version=24e0ae41:584
      set gradableId/< https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-grader.js?version=24e0ae41:93
      promise callback*set gradableId https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-grader.js?version=24e0ae41:93
      _attributeToProperty https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:497
      attributeChangedCallback https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:441
      <anonymous> https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-grader.js?version=24e0ae41:895
      sakai-document-viewer.js:61:1
      _enqueueUpdate https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:586
      AsyncFunctionNext self-hosted:684
      (Async: async)
      requestUpdateInternal https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:539
      initialize https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:367
      initialize https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lit-element.js?version=24e0ae41:159
      UpdatingElement https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:104
      LitElement https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lit-element.js?version=24e0ae41:85
      SakaiElement https://trunk-mysql.nightly.sakaiproject.org/webcomponents/sakai-element.js?version=24e0ae41:4
      SakaiDocumentViewer https://trunk-mysql.nightly.sakaiproject.org/webcomponents/sakai-document-viewer.js?version=24e0ae41:26
      _clone https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:87
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:308
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:44
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:310
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:44
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:310
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:44
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:310
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:44
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:310
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/template-instance.js?version=24e0ae41:44
      __commitTemplateResult https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:310
      commit https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/parts.js?version=24e0ae41:245
      render https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/render.js?version=24e0ae41:48
      render https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-html/lib/shady-render.js?version=24e0ae41:279
      update https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lit-element.js?version=24e0ae41:243
      performUpdate https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:633
      _enqueueUpdate https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:577
      AsyncFunctionNext self-hosted:684
      (Async: async)
      requestUpdateInternal https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:539
      set https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:235
      loadGradableData https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-gradable-data-mixin.js?version=24e0ae41:30
      (Async: promise callback)
      loadGradableData https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-gradable-data-mixin.js?version=24e0ae41:27
      (Async: promise callback)
      loadGradableData https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-gradable-data-mixin.js?version=24e0ae41:10
      loadGradableData https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-gradable-data-mixin.js?version=24e0ae41:6
      loadData https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-grader.js?version=24e0ae41:584
      set gradableId/< https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-grader.js?version=24e0ae41:93
      (Async: promise callback)
      set gradableId https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-grader.js?version=24e0ae41:93
      _attributeToProperty https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:497
      attributeChangedCallback https://trunk-mysql.nightly.sakaiproject.org/webcomponents/assets/lit-element/lib/updating-element.js?version=24e0ae41:441
      <anonymous> https://trunk-mysql.nightly.sakaiproject.org/webcomponents/grader/sakai-grader.js?version=24e0ae41:895
      InnerModuleEvaluation self-hosted:1861
      evaluation self-hosted:1832

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                a.fish@lancaster.ac.uk Adrian Fish
                Reporter:
                agschmidt Andrea Schmidt
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration