Support » Plugin: user login count » Warning: count(): Parameter must be an array or an object that implements Counta

  • Resolved twoelevenjay

    (@twoelevenjay)


    Warning: count(): Parameter must be an array or an object that implements Countable in /home/XXXXX/public_html/wp-content/plugins/user-login-count/user-login-count.php on line 72

    Show on /wp-admin/users.php when debugging is enabled. Is there a Github that accepts pull requests for this?

Viewing 1 replies (of 1 total)
  • Plugin Author Rahul Gupta

    (@tkgupta)

    Change lino no 72

    From

    if(count($res) > 0){

    To

    if($res > 0){

    And change line no 124

    From

    add_filter( ‘manage_users_custom_column’, ‘userlogin_column’, 10, 3 );

    To

    add_filter( ‘manage_users_custom_column’, ‘userlogin_column’, 15, 3 );

    • This reply was modified 1 year, 1 month ago by Rahul Gupta.
    • This reply was modified 1 year, 1 month ago by Rahul Gupta. Reason: missing some code
Viewing 1 replies (of 1 total)
  • The topic ‘Warning: count(): Parameter must be an array or an object that implements Counta’ is closed to new replies.