There is a bug when editing the account. If you are using modules that modify URL (e.g. me aliases).

In file logintoboggan.module not quite correctly loaded user account:

      $account = user_load(array('uid' => arg(1)));

If you enable the module "me aliases", then the arg(1) == 'me' and have error.

Applying patch to fix.

Members fund testing for the Drupal project. Drupal Association Learn more


hunmonk’s picture

Title: array_keys() [function.array-keys]: The first argument should be an array » use uid from form instead of arg() to determine uid
Priority: Critical » Normal
Status: Closed (won't fix) » Needs review
sudhirporwal’s picture

890 bytes

The $form['_account']['#value'] does contains the desired user object. so no need of explicit user_load.

Attaching an alternate patch.

hunmonk’s picture

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

is there a $form['#account'] in the form array there? if so, i believe that's the one we'd want to use.

sudhirporwal’s picture

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

I couldn't find $form['#account'] in the form array, there is only $form['_account'] as stated earlier in

hunmonk’s picture

Status: Needs review » Fixed

no need to cast _account to an object -- it's always created as one by core.

patch tests out well. committed to 5.x-1.x-dev and 6.x-1.x-dev -- 7.x does not have this issue.

Status: Fixed » Closed (fixed)
Issue tags: -bug, -array_keys, -me aliases, -arg

Automatically closed -- issue fixed for 2 weeks with no activity.