I am trying to upgrade my Dokuwiki to use PHP8.anything. I have Two Factor authentication with TOTP working fine with PHP7.2. I've upgraded all plugins to the latest available. However, if I try using PHP8.0.30, the debug info below gets displayed for every wiki page I visit. I'm pretty sure only the first line of it is really relevant.
It's very secure :-) but not really usable.
So I just want to know if there is an easy fix for this, and/or whether anyone else out there has the 2FA stuff working with PHP8 or above?
Additional information: This is using the official PHP+Apache docker images. My process is to create the container, unpack my wiki data into /var/www/html
, unpack the current stable dokuwiki tarball over it, remove unwanted files, adjust all ownerships. With PHP 7.2, everything works. With PHP 8.0.30 it doesn't.
Warning: Undefined array key "auth" in /var/www/html/inc/auth.php on line 245
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/auth.php:245) in /var/www/html/inc/auth.php on line 1259
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/auth.php:245) in /var/www/html/lib/plugins/ckgedit/scripts/setsamesite.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/auth.php:245) in /var/www/html/lib/plugins/ckgedit/scripts/setsamesite.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/auth.php:245) in /var/www/html/lib/plugins/ckgedit/scripts/setsamesite.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/auth.php:245) in /var/www/html/lib/plugins/ckgedit/scripts/setsamesite.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/auth.php:245) in /var/www/html/lib/plugins/twofactor/action/login.php on line 222
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/auth.php:245) in /var/www/html/inc/actions.php on line 38