Edit my user account gives me an error. I am the admin and currently the only user. This is on a fresh install of 4.5.0-rc
Error:
warning: Invalid range end in /home/sewlug/www/modules/user.module on line 187.
warning: Cannot add header information - headers already sent by (output started at /home/sewlug/www/
Comments
Comment #1
chad commentedComment #2
Steven commentedI have no problems with that line here. What version of PHP are you using? If you make a file "info.php" containing
and then point your browser at http://yoursite.com/info.php, you can check this easily.
Try replacing line 187 in user.module:
if (ereg("[^\x80-\xF7 [:alnum:]@_.-]", $name)) return t('The username contains an illegal character.');With:
if (preg_match("/[^\x80-\xF7 [:alnum:]@_.-]/", $name)) return t('The username contains an illegal character.');If this solves the problem, I'll make a patch.
Comment #3
dries commentedI can't reproduce this problem either. I'm using PHP 4.3.8.
Comment #4
chad commentedThanks for the help. Replacing that line(which is on 214 in the 4.5 final), worked.
My server is running php 4.1.2
I think there are other issues with my _older_ server as it seems like the pushbutton theme css doesn't pare at all.
Comment #5
killes@www.drop.org commentedSteven: To patch or not to patch?
Comment #6
(not verified) commentedI'm running Drupal 4.5.1 with php 4.1.2 as well and the fix to user.module took care of the error for me. However, I've got problems with the themes. Pushbutton seems to be okay, but bluemarine is missing the top blue banner lines and chameleon silently refuses to be enabled.
Comment #7
Matt Simpson commentedchanging first user 'admin' after install Drupal 4.5.2 on - Redhat 9
& PHP4.2.2, I received the same error and resolved it with the patch suggested above
Comment #8
killes@www.drop.org commentedphp version issue.
Comment #9
(not verified) commented