New Drupal d6 site. When I edit user #1, under "Roles", I see a greyed out checkbox with no label next to. It's getting generated by line 1483 in user.module:
DRUPAL_AUTHENTICATED_RID => $checkbox_authenticated,
Maybe it's there to somehow indicate that this is uid #1. If so, it should be made more user friendly.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | rid.patch | 855 bytes | Steve Dondley |
Comments
Comment #1
Steve Dondley commentedOK, this appears to be related to http://drupal.org/node/119038. Also see comment in user.module a dozen lines or so above link 1483 in user.module.
Apparently a bug we'll have to live with until forms api can be modified? Maybe a temporary workaround would be to hide that greyed out element with css?
Comment #2
Steve Dondley commentedOK, #1 is not accurate. After conferring with another user, his role table looks like
1 anonymous user
2 authenticated user
While mine looks like
1 anonymous user
5 authenticated user
(notice the 5 for the rid instead of 2)
I think the root cause could be the same one that caused a similar bug in the user table which chx fixed: http://drupal.org/node/194367
Comment #3
Steve Dondley commentedMaybe only critical for a small minority running my version of mysql, but critical nonetheless.
Here's a patch along the lines of chx's patch at http://drupal.org/node/194367
Comment #4
Steve Dondley commentedComment #5
Steve Dondley commentedComment #6
Steve Dondley commentedI figured out the root cause of this was having the "auto_increment_increment" and "auto_increment_offset" values set in mysql's my.cnf file. Drupal's install code assumes these values will be "1", which is obviously not always the case.
Comment #7
scor commentedsee http://drupal.org/node/118066 for a patch which was committed to 5.x, but IMO should also be in 6.x.