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.
Closed
Fixed
FS#2058 Empty $conf['manager'] generates PHP warning for non-admins
ACL & Authentication
2010-10-11sashman
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
Possible solutions:
(a) document that $conf['manager'] should not be an empty string;
and/or
(b) implement sanity checks in code.
2011-02-06lupo49
If $conf['manager'] is empty, then the value of $conf['superuser'] could be internal used for it?
2011-02-06andi
I can't reproduce this in a current devel. This was most probably fixed with d6dc956f
2011-03-29lordrak
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.