This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
FS#2058 Empty $conf['manager'] generates PHP warning for non-admins
ACL & Authentication
Setting $conf['manager'] to an empty string causes the following salvo of warnings to be issued for any request made by an authenticated user who is not a DW admin.
Warning: array_fill() [function.array-fill]: Number of elements must be positive in /www/wiki/inc/auth.php on line 405
Warning: array_map() [function.array-map]: Argument #3 should be an array in /www/wiki/inc/auth.php on line 406
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /www/wiki/inc/auth.php on line 408
Warning: Invalid argument supplied for foreach() in /www/wiki/inc/auth.php on line 427
Warning: Cannot modify header information - headers already sent by (output started at /www/wiki/inc/auth.php:405) in /www/wiki/inc/actions.php on line
(a) document that $conf['manager'] should not be an empty string;
(b) implement sanity checks in code.
If $conf['manager'] is empty, then the value of $conf['superuser'] could be internal used for it?
I can't reproduce this in a current devel. This was most probably fixed with d6dc956f
Hi, if you previously defined manager and after some time you deleted it than in config is still $conf['manager']='';
In Wiki is some bug, if you delete the line or comment it, it will fix problem.