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.

CommentFileSizeAuthor
#3 rid.patch855 bytesSteve Dondley

Comments

Steve Dondley’s picture

Title: Greyed out checkbox appears with no label whed editing user #1 » Greyed out checkbox appears with no label when editing user #1

OK, 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?

Steve Dondley’s picture

OK, #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

Steve Dondley’s picture

Assigned: Unassigned » Steve Dondley
Priority: Minor » Critical
StatusFileSize
new855 bytes

Maybe 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

Steve Dondley’s picture

Status: Active » Needs review
Steve Dondley’s picture

Component: user system » install system
Steve Dondley’s picture

I 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.

scor’s picture

Status: Needs review » Closed (duplicate)

see http://drupal.org/node/118066 for a patch which was committed to 5.x, but IMO should also be in 6.x.