Exporting Table of Contents Diagnostics

How to export a diagnostics file for the WikiPakk Table of Contents web part and send it to support.

The WikiPakk Table of Contents web part reads the headings on a page and builds a linked outline from them. Sometimes the outline does not look the way you expect. For example, a heading is missing, appears at the wrong indent level, or the order does not match the page.

When you report such an issue, it helps a lot if you send a diagnostics file along. The file shows support what WikiPakk saw on your page, so support can reproduce and fix the issue.

When to use it

Use the diagnostics export when support asks you for it, usually after you have reported that the table of contents on a specific page looks wrong.

You do not have to wait to be asked, though. If you already know the export will be needed, feel free to attach it right away to your support request. That saves a round-trip and gets your issue solved faster.

The export is tied to the page it is run on, so always run it on the page that shows the problem.

Exporting in view mode

You do not need to edit the page to export diagnostics. A hidden Export diagnostics link appears when you add a parameter to the page address:

  1. Open the page that shows the problem.
  2. Add ?wikipakkdiag=1 to the end of the page address and press Enter. If the address already contains a ?, add &wikipakkdiag=1 instead.
  3. The page reloads. A small Export diagnostics link now appears at the bottom of the table of contents.
  4. Click Export diagnostics.

The link is only there while the address contains wikipakkdiag=1. Open the page without the parameter and the link is gone again.

Exporting in edit mode

If you are already editing the page, you can export from the web part’s settings instead:

  1. Edit the page.
  2. Select the Table of Contents web part and open its settings (the pencil / Edit web part icon).
  3. In the settings panel, scroll to the very bottom.
  4. Click the Export diagnostics button.

What to expect

Either way, clicking Export diagnostics immediately downloads a file to your computer. Nothing is sent anywhere; the export only saves a file locally.

The file is named like this:

wikipakk-toc-diagnostics-<pagename>-<date>-<time>.json

for example wikipakk-toc-diagnostics-questionpage-20260704-100400.json.

What the file contains

The diagnostics file is a plain-text file that describes the page and how WikiPakk built its outline. It includes:

  • basic information about the page: its web address and the IDs of the site, list, and page
  • the WikiPakk version and the current Table of Contents settings
  • the page’s stored content: the same headings and text that make up the page
  • a snapshot of the page’s structure as your browser rendered it, including the on-screen positions of the headings
  • the steps WikiPakk took to turn the page’s headings into the finished outline

It deliberately does not contain your name or sign-in details, passwords, or access tokens.

Sending the file to support

Support will usually ask you to send the diagnostics file so they can dig into the issue.

  1. If you need to, review the file first. It is plain text, so you can open it in any text editor (such as Notepad). If your organization has compliance requirements, you can remove any page content you are not comfortable sharing before sending it.
  2. Zip the file. Some mail systems block .json attachments, and zipping avoids that.
  3. Email the zipped file to [email protected], together with a short description of what looks wrong and, if possible, a screenshot of the table of contents.

With the diagnostics file in hand, support can reproduce exactly what your page did and get to the bottom of the issue.

Last modified July 4, 2026