sjlevine / dokuwiki-alertbox

Bootstrap style alert boxes for DokuWiki
1 stars 3 forks source link

some small incompatibilities #10

Open huibintema opened 3 years ago

huibintema commented 3 years ago

Dokuwiki Release 2020-07-29 "Hogfather"

After installing plugin, dokuwiki stopped working in various browsers from various computers: "This page isn’t working local.strw.leidenuniv.nl is currently unable to handle this request. HTTP ERROR 500"

Manually running the doku.php gave the following message:

php doku.php PHP Fatal error: Declaration of syntax_plugin_alertbox::handle($match, $state, $pos, &$handler) must be compatible with dokuwiki\Extension\SyntaxPlugin::handle($match, $state, $pos, Doku_Handler $handler) in /web1/allegrowiki/lib/plugins/alertbox/syntax.php on line 61

After making the suggested change manually, another error popped up:

php doku.php PHP Fatal error: Declaration of syntax_plugin_alertbox::render($mode, &$renderer, $data) must be compatible with dokuwiki\Extension\SyntaxPlugin::render($format, Doku_Renderer $renderer, $data) in /web1/allegrowiki/lib/plugins/alertbox/syntax.php on line 61

After fixing this one, the dokuwiki started working again.