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.
Notice: Trying to get property of non-object in _login_security_get_variables_by_name() (line 384 of /home/sperry/work/sites/dotcr/d7/docroot/sites/all/modules/login_security/login_security.module).
(plus the same on 3 more lines)
_login_security_get_variables_by_name() does $account = user_load_by_name($name). If a user tries to login with a nonexistent username, warnings come from things like $account->name.
Comment | File | Size | Author |
---|---|---|---|
login_security_bogususername.patch | 597 bytes | scottsperry | |
Comments
Comment #1
deekayen CreditAttribution: deekayen commentedI did a quick check and didn't reproduce this in the latest -dev. Please re-affirm it.
Comment #2
deekayen CreditAttribution: deekayen commentedWrong status.
Comment #3
aitala CreditAttribution: aitala commentedI have been getting this notice as well... like,
from anonymous hits to /user .
Note that I am getting basically the same notice with different line numbers - 418, 419, and 420.
I am running the 7.x-1.1 version of the Login Security module.
Modules I am using which could interact via interactions with the login path or user entities.
Comment #4
shrop CreditAttribution: shrop commentedI am seeing the same kind of thing. I am trying to nail down a bit more details than just the errors.
I am running 7.x-1.2. I need to give -dev a go and test again.
Comment #5
shrop CreditAttribution: shrop commentedI did a bit of testing and confirm that the login_security_bogususername.patch patch by @scottsperry does resolve the issue for 7.x-1.x-dev.
I recommend committing this.
Note: This does not fix the array_flip() related warnings. I will create another case for these since I have tracked them down to login_security.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedPatch is needed indeed.
Comment #7
deekayen CreditAttribution: deekayen commentedFixed in 7.x-1.4.