Uploaded image for project: 'FullCalendar Macro'
  1. FullCalendar Macro
  2. FULLCAL-67

Errors in JS console which prevent Calendar to be displayed in XWiki 14.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.2.10
    • 2.2.9
    • Windows 11 Pro 64bit, Firefox 98, using an instance of XWiki 14.1 on Tomcat 9.0.59/ PostgreSQL 14
    • Unknown

    Description

      Preconditions: Have Blog Application installed.

      STEPS TO REPRODUCE

      1. Insert into a page in wiki/source mode:
        {{calendar classname="Blog.BlogPostClass" startfield="publishDate" editable="false" year="2022" month="3" date="21"/}}
      2. Save the page

      EXPECTED RESULTS

      The calendar is properly displayed into the page.

      ACTUAL RESULTS

      The calendar is not displayed at all. In browser's console, there are the following stacktraces:

      GEThttp://localhost:1113/webjars/wiki:xwiki/momentjs/2.29.1/min/moment.min/min/moment.min.js
      [HTTP/1.1 404  239ms]
      Uncaught Error: Script error for "moment/min/moment.min"
      https://requirejs.org/docs/errors.html#scripterror
          makeError http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          onScriptError http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          load http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          load http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          load http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          fetch http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          check http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          bind http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          each http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          init http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          s http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          setTimeout handler*req.nextTick< http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          s http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          fetch http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          check http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          bind http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          each http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          init http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          s http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          setTimeout handler*req.nextTick< http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          s http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          requirejs http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          <anonymous> http://localhost:1113/bin/view/Pag1/:856
          execCb http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          check http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          bind http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          emit http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          each http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          emit http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          check http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          init http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          a http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          completeLoad http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          onScriptLoad http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          load http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          load http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          load http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          fetch http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          check http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          bind http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          each http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          enable http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          init http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          s http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          setTimeout handler*req.nextTick< http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          s http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          requirejs http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          <anonymous> http://localhost:1113/bin/view/Pag1/:855

      and

      Uncaught Error: Load timeout for modules: fullcalendar,gcal
      https://requirejs.org/docs/errors.html#timeout
          makeError http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          R http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          d http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          setTimeout handler*R http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          d http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          setTimeout handler*R http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          d http://localhost:1113/webjars/wiki:xwiki/requirejs/2.3.6/require.min.js?r=1:5
          setTimeout handler*R 
      ...
      

      The issue could not be reproduced on XWiki 13.10.3.

      Attachments

        1. JS_error_1.png
          126 kB
          Ilie Andriuta
        2. JS_error_2.png
          129 kB
          Ilie Andriuta

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: