In commons_groups_preprocess_node(), the user's picture has a class added to it like this:
'attributes' => array(
'title' => t("View @user's profile.", array('@user' => format_username($account))),
'class' => 'user-picture',
),This is incorrect however - class should be an array. If anything tries to add to that class later by pushing an item onto the array, you get a fatal error since it is a string...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2109195-user-picture-class-commons-1.patch | 659 bytes | ezra-g |
| #1 | commons-groups-preprocess-node-bad-class-attribute-2109195-1.patch | 1.03 KB | andymantell |
Comments
Comment #1
andymantell commentedAttached is a patch against 7.x-3.x-dev
Comment #2
ezra-g commentedThanks for the report! Here's a patch to change the string to a class.
Comment #3
andymantell commentedBeat you to it ;-)
Comment #4
ezra-g commentedCommitted with you as the author. Thanks for the patch!
http://drupalcode.org/project/commons.git/commit/2b196af