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

kala4ek’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Closed (fixed)

Now it use 'user/%user/spambot' path, so bug can't be reproduced anymore.

RavindraSingh’s picture

Assigned: Unassigned » RavindraSingh
Status: Closed (fixed) » Needs work

Repoening 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.

vladimir.krupin’s picture

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

Bug can't be reproduced on 1.4 and 7.x-1.x-dev.
Maybe you had some specific conditions?

kala4ek’s picture

Assigned: RavindraSingh » Unassigned
Status: Postponed (maintainer needs more info) » Fixed

Feel free to re-open or create a new one if the issue will be reproduced again.

Status: Fixed » Closed (fixed)

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