• We use the latest versions of both WordPress (v4.6) and Media Tags (v3.2.0.2)

    Unfortunately when we activate the “Roles Management” feature we get multiple Invalid arguments for every single role:
    Warning: Invalid argument supplied for foreach() in /home/..../wp-content/plugins/media-tags/mediatags_settings.php on line 553

    This is the code of the aforementioned line: foreach($user_capabilities as $cap_idx => $cap_val)
    And this, the whole if:

    if (isset($user_capabilities)) {
    foreach($user_capabilities as $cap_idx => $cap_val) {
    if (isset($user_roles_array[$cap_idx]))
    $user_roles_array[$cap_idx]['users'][$user->data->display_name] = $user;
      } 
    }

    Has anyone found a fix for that?

    • This topic was modified 8 years, 2 months ago by marikamitsos.
  • The topic ‘Invalid arguments when “Roles Management” activated, render the plugin unusable’ is closed to new replies.