• Resolved Leo Santis

    (@leosantis)


    I’ve been using your plugin for about one month and it comes in handy, good job by the way.

    But I’m getting frequent Error log PHP Warnings

    PHP Warning: Attempt to read property "roles" on false in /home/user/domain.com/wp-content/plugins/user-login-history/inc/admin/class-login-list-table.php on line 342

    Any idea what could cause that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Faiyaz Alam

    (@faiyazalam)

    Hi @leosantis ,

    Thanks for reporting this, and we’re glad to hear you’ve found the plugin useful!

    This warning is likely occurring because the user associated with that login record has been deleted, while the corresponding login entry still exists in the plugin table.
    In that case, the plugin is unable to retrieve the user’s details (such as roles), which results in the warning.

    Could you please share a screenshot of the login record that is triggering the warning? That will help us confirm the cause and investigate further.

    Thread Starter Leo Santis

    (@leosantis)

    Thanks for your reply.

    It does make sense to me as my primarily use of your plugin is to keep tracking  of not legit users like bots and fake ones used for spam.

    Sometimes I might delete users without deleting those from your plugin list and probably this is the reason as you said.

    Before deleting an user, I’ll delete than first from your plugin list and see what’s happen but I’m quite convinced this is it.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.