Loading...
 
Skip to main content

Non-parsed part of heading via inclusion rendered as hexadecimal key like "§3b24424f3be6a8f1f0937355e8f37ee8§" in table of contents

Status
Open
Subject
Non-parsed part of heading via inclusion rendered as hexadecimal key like "§3b24424f3be6a8f1f0937355e8f37ee8§" in table of contents
Version
13.x
15.x
18.x
Category
  • Regression
Feature
Wiki Plugin (extends basic syntax)
Resolution status
Confirmed
Submitted by
Philippe Cloutier
Lastmod by
Philippe Cloutier, luci
Rating
(0)
Related-to
Description

If a heading contains a non-parsed section, it normally shows fine in classic tables of contents (generated by maketoc). But if such a heading comes via the inclusion of another page, instead of the non-parsed content, the ToC will display an alphanumeric key.

For example, with the following source in an including page:

Copy to clipboard
Here are the phases of life. {maketoc} {include page="Childhood"}

...and page "Childhood" containing a call to maketoc and a "Ages [0, 5]" heading, the including page would show 2 ToC-s. The first one, generated by its direct maketoc, would be broken, showing the link label as something like "Ages §3b24424f3be6a8f1f0937355e8f37ee8§". The second one, generated by the included maketoc, would be OK, showing the link labeled as "Ages [0, 5]".

Several plugins use non-parsed sections to prevent their content from being parsed repeatedly. Therefore, this bug affects calls to some plugins, notably FOOTNOTE.

This bug and Table of contents entries (maketoc) in wrong order when wiki pages are included are parser regressions from r48937. This is related to Tables of Contents (maketoc) can be broken when headings call plugins (such as ANAME and FOOTNOTE) .

The homepage of the show instance for this ticket demonstrates the bug.

Workaround
r66644 will let Tiki 19 and above choose between these regressions and the bug r48937 fixes, using the newly added "parse_included_page" parameter of the INCLUDE plugin. This change exposes/introduces several bugs which are discussed on the thread about r66644 on the tikiwiki-cvs mailing list.
Importance
4
Easy to solve?
2
Priority
8
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6728
Created
Monday 16 July, 2018 14:51:11 UTC
by Philippe Cloutier
LastModif
Tuesday 14 August, 2018 09:01:08 UTC


Show PHP error messages