Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Line 1239 user_badges.module sets the class attributes as a string - it should be an array, i.e.:
'attributes' => array('class' => array($badge->class)),
This is the same issue as Media module: #1722146: Media filter is using string instead of array for the class attribute
And as discussed here: http://drupal.org/node/1711746#comment-6383342
Comments
Comment #1
NancyDruI imagine it's a problem for lots of modules converting from 6.x. Thanks for letting me know.
However, "critical" implies site down - I doubt this caused your site to crash.