I have wpmu 1.2.3, apache 2.0.55, php 5.1.2 and mysql 5.0.22 running on ubuntu. VHOST is false (domain engserv01, path: /blog/, subdirectory option) Logging is enabled but no php or mysql errors are reported. The values of wp_blogs, wp_users and wp_site in wp-config.php are correct. The domain & path values are correct in wp_blogs and wp_site tables.
Posts that discuss similar problems (712, 788, 906, 3946, 5670) have not helped me. I have installed multiple times, tried subdomains and played with various values of the host name. Cookies are enabled and many have been created by phpMyAdmin but none by wordpress.
I put debuging statements in wpmu-settings.php, wp-login.php and wp-plugin.php. This is my first experience with php so I'm a fairly clueless. However, it looks like wp-login.php is entered twice. The first time it gets to the switch statement on line 72 $action is empty the second time it contains "auth". I chased it down a little farther but I don't feel any closer to enlightment. I'm hoping someone will be able to put their finger on the problem given what I have so far.
This is some of the code I modified in wp-login.php.
case 'auth' :
error_log("------------case auth: cookie: $_COOKIE"); // DEBUG
$_COOKIE = array(); // Prevent redirect loops caused by corrupted cookies
case 'login' :
default:
error_log('------------case login'); // DEBUG
$user_login = '';
$user_pass = '';
$using_cookie = FALSE;
if ( isset( $_REQUEST['redirect_to'] )) { // DEBUG
error_log('----------------true: isset($_REQUEST[redirect_to])'); // DEBUG
} else { // DEBUG
error_log('----------------false: isset($_REQUEST[redirect_to])'); // DEBUG
} // DEBUG
if ( is_user_logged_in() ) { // DEBUG
error_log("----------------is logged in"); // DEBUG
} else { // DEBUG
error_log("----------------not logged in"); // DEBUG
} // DEBUG
if ( !isset( $_REQUEST['redirect_to'] ) || is_user_logged_in() )
$redirect_to = 'wp-admin/';
else
$redirect_to = $_REQUEST['redirect_to'];
error_log("--------------------new redirect: $redirect_to"); // DEBUG
if ( $_POST ) {
$user_login = $_POST['log'];
$user_login = sanitize_user( $user_login );
$user_pass = $_POST['pwd'];
$rememberme = $_POST['rememberme'];
error_log('----------------POST'); // DEBUG
error_log("--------------------user $user_login"); // DEBUG
error_log("--------------------pw $user_pass"); // DEBUG
} else {
error_log('----------------NOT POST'); // DEBUG
$cookie_login = wp_get_cookie_login();
if ( ! empty($cookie_login) ) {
$using_cookie = true;
$user_login = $cookie_login['login'];
$user_pass = $cookie_login['password'];
error_log("--------------------user $user_login"); // DEBUG
error_log("--------------------pw $user_pass"); // DEBUG
}
}
do_action_ref_array('wp_authenticate', array(&$user_login, &$user_pass));
Here's output from the log. In addition to the above there are similar changes that should be fairly self evident from the results below (do_action_ref_array is in plugin.php). To make it readable I have removed [Wed Aug 01 15:32:35 2007] [error] [client 10.0.1.125]
from the beginning of every line and referer: http://engserv01/blog/wp-login.php?action=auth&redirect_to=%2Fblog%2Fwp-admin%2F
from the end of every line.
--------in wp-login.php,
------------wp-login.php::switch action is ,
------------case login,
----------------true: isset($_REQUEST[redirect_to]),
----------------not logged in,
--------------------new redirect: /blog/wp-admin/,
----------------POST,
--------------------user admin,
--------------------pw d1b5dc976a62,
------------in do_action_ref_array with,
----------------tag wp_authenticate and,
----------------args Array,
--------------------filter ,
--------------------isset: ,
--------in wp-login.php,
------------wp-login.php::switch action is auth,
------------case auth: cookie: Array,
------------case login,
----------------true: isset($_REQUEST[redirect_to]),
----------------not logged in,
--------------------new redirect: /blog/wp-admin/,
----------------NOT POST,
------------in do_action_ref_array with,
----------------tag wp_authenticate and,
----------------args Array,
--------------------filter ,
--------------------isset: ,
------------in wp-login::login_header(),
Any help would be greatly appreciated
Rick