Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
I love those module and i never got a problem on d6 versions.
I tried today for the first time D7 and so i wanted to test immediatly masquerade !
I get an error i never occured before on D6 :
When i enter "a" in the search field, autocompletion works and i get an Anonymous choice, but if i choose it and i valid, i get this warning :
User anonymous does not exist. Please enter a valid username.
and i cant' masquerade in Anonymous
Comment | File | Size | Author |
---|---|---|---|
#6 | 1105696-masq-anonym.patch | 831 bytes | andypost |
#4 | anonymous_user-1105696-4541658.patch | 879 bytes | Anonymous (not verified) |
Comments
Comment #1
andypostdescribe a control which gives you this error? block, menu, user profile
Comment #2
timos CreditAttribution: timos commentedHi,
I get this error with an autocompletion field for masquerade in a block.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedGetting this same issue.
Enter "Anonymous" in the Masquerade block switcher - autocomplete works fine but when you submit the form, it returns the error: "User Anonymous does not exist. Please enter a valid username."
This is a fresh Drupal 7 install.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedI did some further testing and it seems like this is the cause:
With that block commented out, the code works fine, from my testing. I hope this is OK - it's my first patch. Let me know if I'm stepping on toes! :)
Comment #5
andypostMake sense, actually this hunk should be removed because Anonimous name is changed to '' at _masquarade_user_load()
Not sure about alt_login module but this hunk should be removed
Comment #6
andypostGoing to commit this patch which also adds a trim() for field value
Comment #7
andypostRC-4 blocker
Comment #8
andypostThanx, fixed