I want to use header2 plugin (
https://github.com/danny0838/dokuwiki-plugin-header2 ), but this plugin leads the error, so I'm trying to solve it.
Firstly there was an error on line 51 "$handler->CallWriter = & new Doku_Handler_Nest($handler->CallWriter,'nest_close');" of syntax.php, but this error was solved by replacing "=&" with "=".
Another error is what is troubling me.
The error occurs when calling $renderer->node.
Here is the error code:
Fatal error: Uncaught Error: Cannot access protected property Doku_Renderer_xhtml::$node in /.../lib/plugins/header2/syntax.php:136 Stack trace: #0 /.../lib/plugins/header2/syntax.php(101): syntax_plugin_header2-
_xhtml_header('\xE3\x83\x97\xE3\x83\xAC\xE3\x83\x93\xE3\x83\xA5\xE3\x83\xBC', 1, 1, Object(Doku_Renderer_xhtml)) #1 /.../inc/parser/renderer.php(111): syntax_plugin_header2-
render('xhtml', Object(Doku_Renderer_xhtml), Array) #2 /.../inc/parserutils.php(654): Doku_Renderer-
plugin('header2', Array, 4, '======') #3 /.../inc/parserutils.php(130): p_render('xhtml', Array, NULL) #4 /.../inc/parserutils.php(105): p_cached_output('/...') #5 /... in /.../lib/plugins/header2/syntax.php on line 136
NOTE: I inserted the code "ini_set("display_errors", 1); error_reporting(E_ALL);" to the top of /header2/syntax.php . Line 136 corresponds to "$renderer->node[$level-1]++; ."
I'm not familiar with PHP, so I couldn't investigate more.
I'll inform you if more information is needed.