Hi there,
I used to use a small Dokuwiki on a Windows localhost with QuickPHP (
http://www.zachsaw.com/?pg=quickphp_php_tester_debugger). That worked nicely until Greebo came along with PHP >= 5.4 syntax and features. QuickPHP is a bit old meanwhile, so I thought, why not upgrade. So I tried the Dokuwiki with PHP 7.2 (nts) and the builtin server, like so:
php -S localhost:8000 -t <wikiroot>
Now when I open localhost:8000, I get loads of errors:
Warning: require(wikiroot/inc/Plugin.php): failed to open stream: No such file or directory in wikiroot\inc\load.php on line 112
Fatal error: require(): Failed opening required 'wikiroot/inc/Plugin.php' (include_path='.;C:\php\pear') in wikiroot\inc\load.php on line 112
This is the line 112 in load.php:
'DokuWiki_Plugin' => DOKU_INC.'inc/Plugin.php',
, which then gets
required a bit down.
And it's true, there is no Plugin.php in inc. There are two others, \bin\plugin.php and inc\Action\Plugin.php. So I insert these into load.php, the first one throwing loads of warnings about the usage of STDOUT and others; the second one looks a bit better, only one error message:
Fatal error: Class 'DokuWiki_Plugin' not found in X:\down\Dropbox\jokno\dexwiki_jo\lib\plugins\action.php on line 15
Here I gave up. In all cases, the pages don't get served; I only get error messages.
I'm a bit stumped here. How broken is dokuwiki? Or PHP? Or is it just some option I have to set?