Hi,
When I try to request new password from the drupal using automated email, it works fine.
However when I try to go to "My account -> Edit account information" and change the password by typing the new password twice in the boxes, and hit submit button,
I get this error:
"warning: Cannot modify header information - headers already sent by (output started at /app/www/html/drupal-4.6.3/modules/user.module:213) in /app/www/html/drupal-4.6.3/includes/common.inc on line 192."
Lines 213 in user.module is this function:
function user_validate_name($name) {
print $name;
if (!strlen($name)) return t('You must enter a username.');
if (substr($name, 0, 1) == ' ') return t('The username cannot begin with a space.');
if (substr($name, -1) == ' ') return t('The username cannot end with a space.');
if (ereg(' ', $name)) return t('The username cannot contain multiple spaces in a row.');
if (ereg("[^\x80-\xF7 [:alnum:]@_.-]", $name)) return t('The username contains an illegal character.');
if (ereg('@', $name) && !eregi('@([0-9a-z](-?[0-9a-z])*.)+[a-z]{2}([zmuvtg]|fo|me)?$', $name)) return t('The username is not a valid authentication ID.');
if (strlen($name) > 56) return t('The username %name is too long: it must be less than 56 characters.', array('%name' => theme('placeholder', $name)));
}
Lines 192 is:
header('Location: '. $url);