Details
-
Bug
-
Resolution: Fixed
-
Major
-
14.10.3
-
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
- is related to
-
XWIKI-20600 Gadget headings don't have an ID set
- Open