When an admin edits their profile (via the admin theme), and clicks the password tab, the admin display crashes and the following error is thrown.

Notice: Undefined index: #user_category in password_policy_form_alter() (regel 428 van /var/www/kajira/sites/all/modules/password_policy/password_policy.module).

Comments

erikwebb’s picture

A notice shouldn't be causing the entire page to crash. Are there any other errors being shown?

P3t3r’s picture

No, there's just that notice in the logs, and it says it happend when going from user/1/edit?render=overlay to user/1/password. Not sure if the missing ?render=overlay has anything to do with it.

erikwebb’s picture

I hate to say it, but I don't believe that the notice is the problem with your crashing here. If there is a warning, we obviously need to fix that, but I want to nail down what is actually causing your greater problem.

P3t3r’s picture

Perhaps the word "crash" was not a good choice here. What happens is that it falls back from the classical overlayed admin view to the non-overlay view that non-admin users would have (i.e. it's only the overlay functionality that 'crashes').
It's clearly a bug as it violates the system-wide preference of letting all admin pages appear overlayed, but it's not that it's a white screen or so, the raw functionality is intact (it just leaves admin display unwantedly).

P3t3r’s picture

Just installed a brand new Drupal 7.15 with default settings and only password tab. The described problem persists: the overlay vanishes and a notice is thrown.

The awkwardly placed menu item ('Password tab' as one of the root admin menus) is also there, but of course that's a different problem.

P3t3r’s picture

Priority: Normal » Minor

Perhaps also relevant: if I view a user's profile, and then click the password tab for that user, the notice is always thrown. And the admin overlay is not launched (while I guess it should).

erikwebb’s picture

Let me release a 7.x-1.2 version with the up to date changes to Password Tab and we'll readdress this.

erikwebb’s picture

Status: Active » Postponed
erikwebb’s picture

Version: 7.x-1.1 » 7.x-1.2
Status: Postponed » Postponed (maintainer needs more info)

Now that 7.x-1.2 has been released, is this problem still present?

erikwebb’s picture

Component: Password tab » Code
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)