When enable module or clear menu cache - masquerade_advanced crashes site, because there is no _masquerade_user_load() function. Refresh page have effect, but not for code and functionality (:
So i added one into masquerade_advanced.module from masquerade-7.x-1.x-dev. There is no deprecated functions used inside, so i think it is safe.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexander_danilenko’s picture

andypost’s picture

Status: Needs review » Needs work

Suppose we need better method to find anonymous, please try entity_load_by_properties()

andypost’s picture

Anonymous autocomplete accessible via '/user/autocomplete/anonymous'

+++ b/masquerade_advanced/masquerade_advanced.module
@@ -367,6 +367,30 @@ function masquerade_advanced_form_masquerade_block_form_alter(&$form, &$form_sta
+    $anon = variable_get('anonymous', t('Anonymous'));
+    $account = user_load_by_name(($username == $anon ? '' : $username));

See #1817656-69: Let user_autocomplete also find the anonymous user.

andypost’s picture

Issue summary: View changes

Updated issue summary.

andypost’s picture