#637 - PHP error when inserting a Table of Contents in a CEDI page
0 guests and 0 members have recently viewed this.
The top 3 point earners from 21st Dec 2025 to 28th Dec 2025.
| PDStig |
|
|
|---|---|---|
| Gabri |
|
|
| Adam Edington |
|
|
There are no events at this time
If you do something like...
[contents][/contents]
[title="4"]title 4[/title]
[title="3"]title 3[/title]
Composr will get confused. When it gets to the second title ("title 3", said to be level 3) it is trying to close off a difference in level that was never opened up, so creates a stack underflow error.
Also there's another separated bug. If the WYSIWYG editor is used it throws out information needed to look at heading levels. Preserve Comcode 'title' tags if WYSIWYG is in use and a 'contents' tag has been placed already. (this means you should place a contents tag before you define a heading hierarchy)