Notice: Array to string conversion in drupal_attributes()

I’m getting a ton of errors in my report log and they all say the same thing and at the same time.

Notice: Array to string conversion in drupal_attributes() (line 2437 of /var/www/html/drupalsite/includes/common.inc).

This is the code that it’s referring to:

function drupal_attributes(array $attributes = array()) {
  foreach ($attributes as $attribute => &$data) {
    $data = implode(' ', (array) $data);
    $data = $attribute . '="' . check_plain($data) . '"';
  }
  return $attributes ? ' ' . implode(' ', $attributes) : '';
}
Drupal version: 


Source: https://www.drupal.org/taxonomy/term/22/feed