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

Failed to export the Dashboard page to PDF with Table of Contents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 14.10.6, 15.1-rc-1
    • 14.10.3
    • Export - PDF
    • None
    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      On a clean XWiki instance (e.g. 14.10.3) open the Dashboard page and try to export it to PDF keeping the Table of Contents checked. It will fail after some time. The JavaScript console container this error:

      Uncaught (in promise) DOMException: Failed to execute 'querySelector' on 'Element': '#' is not a valid selector.
          at http://localhost:8080/xwiki/webjars/wiki%3Axwiki/pagedjs/0.4.0/dist/paged.polyfill.js?r=1:31832:38
          at NodeList.forEach (<anonymous>)
          at http://localhost:8080/xwiki/webjars/wiki%3Axwiki/pagedjs/0.4.0/dist/paged.polyfill.js?r=1:31826:13
          at Array.forEach (<anonymous>)
          at TargetCounters.afterPageLayout (http://localhost:8080/xwiki/webjars/wiki%3Axwiki/pagedjs/0.4.0/dist/paged.polyfill.js?r=1:31819:37)
          at http://localhost:8080/xwiki/webjars/wiki%3Axwiki/pagedjs/0.4.0/dist/paged.polyfill.js?r=1:372:26
          at Array.forEach (<anonymous>)
          at Hook.trigger (http://localhost:8080/xwiki/webjars/wiki%3Axwiki/pagedjs/0.4.0/dist/paged.polyfill.js?r=1:371:15)
          at Chunker.layout (http://localhost:8080/xwiki/webjars/wiki%3Axwiki/pagedjs/0.4.0/dist/paged.polyfill.js?r=1:3042:38)
          at async Chunker.renderAsync (http://localhost:8080/xwiki/webjars/wiki%3Axwiki/pagedjs/0.4.0/dist/paged.polyfill.js?r=1:2947:17)
      

      The PDF export works if we uncheck the Table of Contents option.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: