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...

Comments

andymantell’s picture

Version: 7.x-3.3 » 7.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new1.03 KB

Attached is a patch against 7.x-3.x-dev

ezra-g’s picture

Version: 7.x-3.x-dev » 7.x-3.3
Issue tags: +Commons 7.x-3.4 radar
StatusFileSize
new659 bytes

Thanks for the report! Here's a patch to change the string to a class.

andymantell’s picture

Version: 7.x-3.3 » 7.x-3.x-dev

Beat you to it ;-)

ezra-g’s picture

Status: Needs review » Fixed

Committed with you as the author. Thanks for the patch!

http://drupalcode.org/project/commons.git/commit/2b196af

Automatically closed -- issue fixed for 2 weeks with no activity.