Open arlt opened 1 year ago
I have no idea of how this works but after a quick look, there is a loop somewhere when a note is found on a page. This loop generates 3 entries per notes
Array ( [0] => 1 [1] => noteclassic ) Array ( [0] => 3 [1] => test ) Array ( [0] => 4 )
If I understand correctly, one entry for the opening note tag, one entry for the text and one for the closing tag. We can see the 3rd one doesn't have a [1] index which causes the issue.
For now, I did a pretty dirty fix to avoid this error and inserted
if (!isset($indata[1])) { $indata[1] = ""; }
just before the line 103 in syntax.php
So, the code looks like
function render($mode, Doku_Renderer $renderer, $indata) { if ($mode == 'xhtml') { if (!isset($indata[1])) { $indata[1] = ""; } list($state, $data) = $indata;
Same problem here, and the above fixed it for me!
PHP 8.2.4 on IIS, DokuWiki 2023-04-04a "Jack Jackrum"
I'm also affected.
Same here and fixed it with the changes as darxmurf suggested.
Anyone knows if the fork from Thomas Schäfer fixes these issues?
The following warning appears with the example and PHP 8.1.11:
Example code:
Version information:
Maybe this will help: https://github.com/splitbrain/dokuwiki/pull/3754 (how to fix explode/list constructs)