Hi Juergen,
thanks a lot for the quick answer. I applied your suggested fix and now
the error message in the apache log has changed to
-------------------------------
[Sat Jun 06 18:34:19.746842 2020] [php7:error] [pid 15828] [client
192.54.49.102:50418] PHP Fatal error: Declaration of
syntax_plugin_source::handle($match, $state, $pos, &$handler) must be
compatible with dokuwiki\\Extension\\SyntaxPlugin::handle($match,
$state, $pos, Doku_Handler $handler) in
/data/dokuwiki/lib/plugins/source/syntax.php on line 233
-------------------------------
I must admit, that only while reading your answer I realized that the
issue came from the "do" plugin ("Wer lesen kann ist im Vorteil" :-).
However when disabling the "do" plugin manually in
conf/plugins.local.php I get the exactly same error in the webserver logs.
I might just restore the Wiki from the last backup and wait for a
release-ready Hogfather, as by Monday morning I need to hava a working
Wiki again.
Cheers, Frank
On 06.06.20 17:58, Dr. Jürgen Vollmer wrote:
Hi
I use indexmenu and had the same problem. As quick an dirty hack:
I edited the file
dokuwiki/lib/plugins/indexmenu/action.php i
and replace in the function
function _ajax_call(&$event, $param) {…
the lines
require_once DOKU_INC.'inc/JSON.php';
$json = new JSON();
echo ''.$json->encode($data).'';
by the line
echo ''.json_encode($data, JSON_PARTIAL_OUTPUT_ON_ERROR|JSON_NUMERIC_CHECK).'';
check the file
dokuwiki/lib/plugins/do/action.php
and look for code similar to the above one and replace it by the PHP standard function json_encode()
bye
Jürgen
Am Samstag, 6. Juni 2020, 17:23:39 CEST schrieb Frank Thommen:
> Hi,
>
> after having upgraded our Greebo-DW to the recommended Hogfather RC2
> using the - previously updated - DokuWiki Updater Plugin, our Institute
> Wiki is now dead (blank page) and the Apache log shows the following
> error messages in a row.
>
> -------------------------------
> [Sat Jun 06 17:15:52.013317 2020] [php7:error] [pid 2703] [client
> 192.54.49.102:45024] PHP Fatal error: require_once(): Failed opening
> required '/data/dokuwiki/inc/JSON.php'
> (include_path='.:/usr/share/pear:/usr/share/php') in
> /data/dokuwiki/lib/plugins/do/action.php on line 15
> [Sat Jun 06 17:15:52.463552 2020] [php7:warn] [pid 6806] [client
> 192.54.49.102:45040] PHP Warning:
> require_once(/data/dokuwiki/inc/JSON.php): failed to open stream: No
> such file or directory in /data/dokuwiki/lib/plugins/do/action.php on
> line 15
> [Sat Jun 06 17:15:52.463642 2020] [php7:error] [pid 6806] [client
> 192.54.49.102:45040] PHP Fatal error: require_once(): Failed opening
> required '/data/dokuwiki/inc/JSON.php'
> (include_path='.:/usr/share/pear:/usr/share/php') in
> /data/dokuwiki/lib/plugins/do/action.php on line 15
> -------------------------------
>
> :-(
>
> Any hints on how to fix this very quickly?.
>
> Cheers
> Frank
>
>
>
--
--
Dr. Jürgen Vollmer <juergen@vollmer.email>
Am Rennbuckel 21
76185 Karlsruhe