1. Create a panel for built-in 'user_view' and place user picture as a content
2. Preview or open user page and get WSOD with PHP Fatal error: Cannot use object of type stdClass as array in <..>/includes/theme.inc on line 800
Reason: theme() now takes second argument $variables as array, while user_picture passes $account object:
<?
function ctools_user_picture_content_type_render($subtype, $conf, $panel_args, $context) {
...
$block->title = check_plain($account->name);
$block->content = theme('user_picture', array($account));
...
?>
and at line 800 of theme.inc the first hit is done over 'array', leading to error.
Comments
Comment #1
OnkelTem commentedDamned inability to edit first post grrrrr... should be:
1. Create a panel for built-in 'user_view' and place user picture as a content
2. Preview or open user page and get WSOD with PHP Fatal error: Cannot use object of type stdClass as array in <..>/includes/theme.inc on line 800
Reason: theme() now takes second argument $variables as array, while user_picture passes $account object:
and at line 800 of theme.inc the first hit is done over 'array', leading to error.
Comment #2
wikp commentedsubscribe
Comment #3
eclipsegc commentedThis patch should fix that.
Comment #4
eclipsegc commentedApologies, I did the conversion for this content type, but must have failed to upload a patch.
Comment #5
Alexander Matveev commentedsubscribe
Comment #6
eclipsegc commentedswitching to a git workflow instead of patches:
git clone --branch 1019642 eclipsegc@git.drupal.org:sandbox/eclipsegc/1073402.git eclipse_ctools_sandbox
Comment #7
eclipsegc commentedgit clone --branch 1019642 http://git.drupal.org/sandbox/eclipsegc/1073402.git
read only sorry
Comment #8
merlinofchaos commentedMerged and rebased and pushed.