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.
The user/%/spambot page looks up which user to work on by using the user_load_by_name() function, which means it works great with URLs like "user/username/spambot", but not so well with "user/123/spambot". The latter, however, is how the tab is being linked from user pages on my site, which means that when I click the link I get the standard "Anonymous user can't be reported" error.
This could be resolved by adding an additional check —if user_load_by_name() fails, simply call user_load() and see if that works. If not, continue on through to the error as happens currently.
Comments
Comment #1
kala4ekNow it use 'user/%user/spambot' path, so bug can't be reproduced anymore.
Comment #2
RavindraSingh CreditAttribution: RavindraSingh as a volunteer and at Material commentedRepoening this issue as I have tried with 7.x-1.x-dev version as well as latest version 1.4 of the module but didn't work.
Comment #3
vladimir.krupin CreditAttribution: vladimir.krupin commentedBug can't be reproduced on 1.4 and 7.x-1.x-dev.
Maybe you had some specific conditions?
Comment #4
kala4ekFeel free to re-open or create a new one if the issue will be reproduced again.