In the _mail_debugger_load_users function(), called when user access the 'admin/people/mail_debugger' path, the module tries to load all system users with a valid email to populate the user's select element of this page's form.

The code responsible for this is:

    $options = array();
    $users = db_select('users', 'u')->fields('u')->execute()->fetchAllAssoc('uid');
    foreach ($users as $uid => $account) {
      if (!valid_email_address($account->mail)) {
        continue;
      }
      $options[$uid] = t('!name (!mail)', array(
        '!name' => format_username($account),
        '!mail' => $account->mail
      ));
    }

If the system has many users this page needs too much time too load or even a fatal error is fired (execution time exceed, memory exhausted... ).

Module should limit the number of users available or use a autocomplete widget.

Comments

  • erlendoos committed b62ece9 on 7.x-1.x
    Issue #2361643: limit the number of users to show in the list of...
erlendoos’s picture

Status: Active » Fixed

A fix is on it's way

erlendoos’s picture

Status: Fixed » Closed (fixed)