Various problems running dokuwiki on current php8. Dokuwiki fails to appear in browser, or appears with broken stylesheet. Errors are reported in /var/log/apache2/error_log: [Sun Feb 20 11:06:44.267468 2022] [php:error] [pid 5173] [client 127.0.0.1:56814] PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/localhost/htdocs/dokuwiki/vendor/marcusschwarz/lesserphp/lessc.inc.php on line 761, referer: http://localhost/dokuwiki/doku.php?id=start [Sun Feb 20 11:06:44.305646 2022] [php:warn] [pid 2842] [client 127.0.0.1:56822] PHP Warning: Undefined array key "speech" in /var/www/localhost/htdocs/dokuwiki/lib/exe/css.php on line 83, referer: http://localhost/dokuwiki/doku.php?id=start [Sun Feb 20 11:06:56.209407 2022] [php:warn] [pid 2844] [client 127.0.0.1:56824] PHP Warning: Undefined array key "fperm" in /var/www/localhost/htdocs/dokuwiki/inc/io.php on line 255 There are three commits in the dokuwki github that fix these issues: https://github.com/splitbrain/dokuwiki/commit/23420346128e0894d85f8475f8e0488fb80cdb24 - Fix undefined array key "fperm" warning. This works for a new install, but for an existing install you additionally need to edit conf/local.php and add two settings: $conf['fperm'] = false; $conf['dperm'] = false; https://github.com/splitbrain/dokuwiki/commit/6b6d27d96506910658af844fbe6b4ecd12201065 - Monkeypatch lesserphp. This replaces some {} array refs with [], since curly brackets aren't allowed in php8 and cause fatal errors. https://github.com/splitbrain/dokuwiki/pull/3472/commits/a5be6e80a84984cb5696da851b19fc948a99b1b0 - Fix to issue 3740. This fixes the undefined array key "speech" problem. There appears to be a new release coming, see https://github.com/splitbrain/dokuwiki/issues/3622, but not clear when. In the meantime, dokuwiki is unusable without the three patches above.
I'll be testing the patches today / tomorrow. I haven't hit this issue, as I'm using php-7 with my dokuwiki install.
Although not announced on https://www.dokuwiki.org/news or the dokuwiki twitter channel, there is a new PHP-8 compatible release (see https://www.dokuwiki.org/changes): Release 2022-07-31 "Igor"
same problem here with PHP 8.0. Please update to release 2022-07-31 "Igor". Thanks a lot!