I did a apt-get upgrade on our server running Debian Squeeze and afterward doku wiki won't allow us to login. We have other PHP apps that use LDAP for authentication and they are working fine still so the problem is centralized with doku wiki. Dokuwiki was working fine before we upgraded. I noticed that PHP was upgraded during the process.
Here is the error message that appears after we login:
========================================================================================
Warning: Invalid argument supplied for foreach() in /var/www/sci/helpdesk/inc/auth/ldap.class.php on line 234
Warning: Invalid argument supplied for foreach() in /var/www/sci/helpdesk/inc/auth/ldap.class.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /var/www/sci/helpdesk/inc/auth/ldap.class.php:234) in /var/www/sci/helpdesk/inc/auth.php on line 997
Warning: Cannot modify header information - headers already sent by (output started at /var/www/sci/helpdesk/inc/auth/ldap.class.php:234) in /var/www/sci/helpdesk/inc/common.php on line 1476
========================================================================================
If we give it bogus usernames, it says that the username/password are incorrect.
If we give it proper usernames, it will print the previous error, on top of the page, but still say invalid username/password.
If we give it proper username and password, it will print the previous error on a blank page.
Here is some supplementary information:
========================================================================================
[color=blue]$php -v
PHP 5.2.10-2 with Suhosin-Patch 0.9.7 (cli) (built: Jul 10 2009 01:47:03)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
$apache2 -v
Server version: Apache/2.2.12 (Debian)
Server built: Aug 4 2009 10:42:29
$uname -a
Linux web.sci 2.6.26-2-amd64 #1 SMP Sun Jun 21 04:47:08 UTC 2009 x86_64 GNU/Linux[/color]
========================================================================================