Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25425

"Failed to access / missing live data configuration for element" error in JS console when editing a page in-place

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Blocker
    • 18.4.8, 17.10.15, 18.9.0
    • 17.10.10, 18.4.4, 18.9.0-rc-1
    • Live Data
    • Windows 11 Pro, Firefox 158, using an instance of XWiki 17.10.14 on PostgreSQL 17, Tomcat 11
    • Unknown

    Description

      Steps to reproduce

      1. Go to a page that contains a Live Data or just create a page with the following content:
        {{liveData
          id="recentPages"
          properties="doc.title,doc.location,doc.author,doc.date"
          source="liveTable"
          sourceParameters="translationPrefix=platform.index."
          filters="doc.location=help"
          sort="doc.date:desc"
          limit="5"
        /}}
      2.  Edit the page in-place
      3. Observe the JS console

      Expected results

      No errors are displayed.

      Actual results

      The following errors are displayed in JS console:

      Missing live data configuration for element 
      <div id="recentPages" class="liveData loading" data-config='{"id":"recentPages","que…on":{"enabled":false}}}'>
       The HTML content is considered unsafe. logic.js:42:17
          Nc logic.js:42
          zc init.js:38
          liveData main.js:51
          (Async: promise callback)
          liveData main.js:50
          jQuery 2
          liveData main.js:34
          n main.js:61
          (Async: promise callback)
          n main.js:59
          jQuery 3
          trigger eventsBridge.js:35
          jQuery 4
          init plugin.js:286
          1 ckeditor.js:11
          l ckeditor.js:10
          fire ckeditor.js:12
          k ckeditor.js:1105
          initOn ckeditor.js:1156
          initOnAll ckeditor.js:1156
          C ckeditor.js:1128
          l ckeditor.js:10
          fire ckeditor.js:12
          fire ckeditor.js:13
          setData ckeditor.js:373
          setup ckeditor.js:380
          l ckeditor.js:10
          fire ckeditor.js:12
          fire ckeditor.js:13
          setData ckeditor.js:276
          inline ckeditor.js:349
          l ckeditor.js:10
          fire ckeditor.js:12
          fire ckeditor.js:13

      and

      Failed to access the live data configuration for element 
      <div id="recentPages" class="liveData loading" data-config='{"id":"recentPages","que…on":{"enabled":false}}}'>
       The HTML content is considered unsafe. TypeError: can't access property "getAttribute", s is null
          Nc logic.js:45
          zc init.js:38
          liveData main.js:51
          promise callback*e.fn.liveData/< main.js:50
          jQuery 2
          liveData main.js:34
          n main.js:61
          promise callback*n main.js:59
          jQuery 3
          trigger eventsBridge.js:35
          jQuery 4
          init plugin.js:286
          1 ckeditor.js:11
          l ckeditor.js:10
          fire ckeditor.js:12
          k ckeditor.js:1105
          initOn ckeditor.js:1156
          initOnAll ckeditor.js:1156
          C ckeditor.js:1128
          l ckeditor.js:10
          fire ckeditor.js:12
          fire ckeditor.js:13
          setData ckeditor.js:373
          setup ckeditor.js:380
          l ckeditor.js:10
          fire ckeditor.js:12
          fire ckeditor.js:13
          setData ckeditor.js:276
          inline ckeditor.js:349
          l ckeditor.js:10
          fire ckeditor.js:12
          fire ckeditor.js:13
      logic.js:47:15
          Nc logic.js:47
          zc init.js:38
          liveData main.js:51
          (Async: promise callback)
          liveData main.js:50
          jQuery 2
          liveData main.js:34
          n main.js:61
          (Async: promise callback)
          n main.js:59
          jQuery 3
          trigger eventsBridge.js:35
          jQuery 4
          init plugin.js:286
          1 ckeditor.js:11
          l ckeditor.js:10
          fire ckeditor.js:12
          k ckeditor.js:1105
          initOn ckeditor.js:1156
          initOnAll ckeditor.js:1156
          C ckeditor.js:1128
          l ckeditor.js:10
          fire ckeditor.js:12
          fire ckeditor.js:13
          setData ckeditor.js:373
          setup ckeditor.js:380
          l ckeditor.js:10
          fire ckeditor.js:12
          fire ckeditor.js:13
          setData ckeditor.js:276
          inline ckeditor.js:349
          l ckeditor.js:10
          fire ckeditor.js:12
          fire ckeditor.js:13

      The issue could not be reproduced when editing the page in standalone WYSIWYG mode and it couldn't be reproduced on XWiki 17.10.9.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: