I receive an error in my logs to the following:
warning: Unknown error in C:\FoxServ\www\modules\user.module on line 366.
I set the server up using foxserv 3.0 (non beta) and using drupal 4.5.2. This error happens immediately after each new user registration. No email is ever sent with a password and this line in the module is part of the following routine.
/**
* Generate a random alphanumeric password.
*/
function user_password($length = 10) {
// This variable contains the list of allowable characters for the
// password. Note that the number 0 and the letter 'O' have been
// removed to avoid confusion between the two. The same is true
// of 'I' and 1.
$allowable_characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789';
// We see how many characters are in the allowable list:
$len = strlen($allowable_characters);
// Seed the random number generator with the microtime stamp.
mt_srand((double)microtime() * 1000000);
// Declare the password as a blank string.
$pass = '';
// Loop the number of times specified by $length.
for ($i = 0; $i < $length; $i++) {
// Each iteration, pick a random character from the
// allowable string and append it to the password:
$pass .= $allowable_characters[mt_rand(0, $len - 1)];
}
return $pass;
}
line 366 is this: $pass = '';
Any ideas, can't find anything on this. Please Advise...