Forum Replies Created

Viewing 1 replies (of 1 total)
  • I have the same problem:

    Warning: Invalid argument supplied for foreach() in …/wp-content/plugins/stats/stats.php on line 134

    I upgraded to WP 3.0 and to the latest version of the plugin in one swoop. Not sure which of these two steps cause the problem.

    The offending line has:


    foreach ( $roles as $role ) {
    if ( current_user_can($role) ) {
    $cap = $role;
    break;
    }
    }

    So, I don’t know if WP 3.0 doesn’t define $roles = stats_get_option('roles'); any more.

Viewing 1 replies (of 1 total)