there's a fairly major problem with the active user list. it displays active users who have been deleted. have attached a grab to show u problem.

CommentFileSizeAuthor
#8 admin_menu-DRUPAL-6--3.user-delete.patch716 bytessun
grab.gif22.74 KBgamsim

Comments

sun’s picture

Title: active user list display problem » Devel switch user list contains deleted users
Version: 6.x-1.4 » 6.x-3.x-dev
Priority: Normal » Minor

Actually, I think this is a Devel module issue - Devel should clear the menu cache whenever a user is deleted, I guess. Not sure though.

Anonymous’s picture

I've noticed this problem as well. Should we move this to the Devel issue queue?

sun’s picture

Before we move this issue, we ensure that above assumption is actually valid: Enable Devel's switch user block, create a user, make sure the new user appears in the block, delete the user, make sure that user no longer shows up in the block.

Anonymous’s picture

Ah, maybe not... The new user appeared in the block, was still there when I blocked them, but was removed when I deleted them.

Anonymous’s picture

I just installed Admin Menu on my test site to see if the previously deleted user still appeared - they didn't; so far so good.
I then deleted another existing user. They disappeared from the Devel's Switch User block, but still appear in Admin Menu's Switch Users...

sun’s picture

Status: Active » Postponed (maintainer needs more info)

Did you verify that this issue still exists in the latest 3.x-dev?

Anonymous’s picture

Hmm, can't tell if it works or not, latest 6.x-3.x-dev is buggy (22nd June). I'm getting messed up links and the 'switch users' drop-down only shows <...

EDIT: And that's after I hide this error:

Fatal error: Cannot use string offset as an array in /var/www/drupal/sites/all/modules/admin_menu/admin_menu.inc on line 137

sun’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new716 bytes

Please test attached patch.

Anonymous’s picture

Patching 3.0-alpha1 didn't do anything (users still appear after being deleted).
3.x-dev a bit more stable now, seems to work fine without patch...

kenorb’s picture

The same problem:

array
  'type' => int 1
  'message' => string 'Cannot use string offset as an array' (length=36)
  'file' => string 'admin_menu/admin_menu.inc' (length=114)
  'line' => int 137
sun’s picture

Status: Needs review » Closed (won't fix)

Well, if the issue does not exist in 3.x-dev, then I'll close this issue.

@kenorb: Update your Devel module and this error will vanish. Offtopic for this issue though.

Berliner-dupe’s picture

Status: Closed (won't fix) » Needs work

Sorry for reopen this Issue but i have the same problem.

Deleted User will be show in active user-list.

I have installed the newest version from Admin-Menu and from Devel.

The patch from #8 dont help too.

Has anyone an idea to fix this problem?

Regards Matthias

ericpai’s picture

Version: 6.x-3.x-dev » 6.x-1.6

I'm having the same issue with version 6.x-1.6.

bassplaya’s picture

Version: 6.x-1.6 » 6.x-3.0-alpha4
Status: Needs work » Active

First I thought it was the user.module's problem but then I saw it had to do with Admin menu module so I moved my written issue here at the correct place. I'm no hero, nor expert. I get the message as below:

warning: array_fill() [function.array-fill]: Number of elements must be positive in mydomain/includes/database.inc on line 253.
warning: implode() [function.implode]: Invalid arguments passed in mydomain/includes/database.inc on line 253.
warning: array_keys() [function.array-keys]: The first argument should be an array in mydomain/modules/user/user.module on line 515.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in mydomain/modules/user/user.module on line 515.

The user was deleted by going to admin/user/user selecting the user and deleting the user through the update options.
I've tried to reproduce this again to be sure what I'm writing here and indeed it gives this same error again but the database has deleted them correctly.

Hope my information helped. I love administration menu module! So much for my contribution to a module :(

yadranko’s picture

Version: 6.x-3.0-alpha4 » 6.x-1.6
Component: Code » User interface
Issue tags: +Admin Menu

Same problem for me too: version 6.x-1.6

rootlinux’s picture

I have the same problem...wondering if there any solution to this issue?

ericpai’s picture

Same problem here also. Drupal version 6.20.
I did a search in the menu_links table for

SELECT * 
FROM  `menu_links` 
WHERE  `link_path` LIKE  '%devel/switch%'
LIMIT 0 , 200

And came up with around 200 users that don't exist in my users database.

yesct’s picture

sub

sun’s picture

Status: Active » Closed (works as designed)
Issue tags: -Admin Menu

This is one of the many flaws that the architecture of 6.x-1.x leads to. Can't be resolved in 6.x-1.x.