WP Defender PHP warnings in log on PHP 7.2.18

I’m seeing the following errors in my logs for http://www.lig+++++ject.ca

[blockquote]
[21-May-2019 01:12:28 UTC] PHP Notice: Undefined index: HTTP_USER_AGENT in /home/++++++/public_html/wp-content/plugins/wp-defender/app/module/ip-lockout/controller/main.php on line 621

[21-May-2019 01:12:28 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/+++++/public_html/wp-content/plugins/wp-defender/app/module/ip-lockout/controller/main.php on line 642

[21-May-2019 01:13:28 UTC] PHP Notice: Undefined index: HTTP_USER_AGENT in /home/+++++/public_html/wp-content/plugins/wp-defender/app/module/ip-lockout/controller/main.php on line 621

[21-May-2019 01:13:28 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/++++++/public_html/wp-content/plugins/wp-defender/app/module/ip-lockout/controller/main.php on line 642

[/blockquote]

  • Predrag Dubajic
    • Support

    Hi Emilio,

    Our devs are currently working on 2.1.3 that has some changes which might help with these errors.

    The thing is that we’re unable to replicate this on any of our test sites so it’s hard to debug it properly.

    I’m also unable to replicate this on your end now, I renamed your debug.log file so that new one could be created but no matter what I try, navigating through Defender settings, locking myself out of your site, nothing triggers the error errot again.

    Do you perhaps know which action that you take is adding these errors to your debug log?

    Best regards,

    Predrag