• debruning

    (@debruning)


    Hey there,

    Been using your plugin for some time, love it, but hoping a little something can be removed from my logs:

    PHP Warning: Undefined array key 0 in wp-persistent-login-user-count.php on line 566

    On an average weekend I get thousands of these notices 🙂

    Plugin Version: 2.1.0

    PHP Version: 8.0

    I’ll see if I can find the fix myself, but thought I would throw this out here as well, hope you’re having a great week!

    David

Viewing 1 replies (of 1 total)
  • Thread Starter debruning

    (@debruning)

    I’ve initialized it with the following snippet:

    if (!isset($user_count[$role])) { $user_count[$role] = 0; }

    Hoping this will address it, will post a follow up if it sorts things out. 🙂

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning: Undefined array key 0 in wp-persistent-login-user-count.php’ is closed to new replies.