Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833800 - www-apps/dokuwiki-20200729 - errors at runtime - unusable without patches
Summary: www-apps/dokuwiki-20200729 - errors at runtime - unusable without patches
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL: https://github.com/splitbrain/dokuwik...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-02-20 14:18 UTC by Bill Binder
Modified: 2022-09-06 11:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Binder 2022-02-20 14:18:59 UTC
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.
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2022-02-20 22:51:00 UTC
I'll be testing the patches today / tomorrow.
I haven't hit this issue, as I'm using php-7 with my dokuwiki install.
Comment 2 Horst Prote 2022-08-22 11:06:58 UTC
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"
Comment 3 tazinblack 2022-09-06 11:51:52 UTC
same problem here with PHP 8.0.
Please update to release 2022-07-31 "Igor".


Thanks a lot!