Hello, I run into this bug when the option to show username in bar is set and the own user page is visited.

Fatal error: [] operator not supported for strings in includes/common.inc on line 2353

This issue is fixed in the dev branch.

Comments

fibigerg’s picture

Solution to this is to change line 182 in quickbar/modules/quickbar_extras/quickbar_extras.module

from:
'title' => $username_prefix . l($user->name, 'user/' . $user->uid, array('attributes' => array('class' => 'username-link'))) . $username_suffix,
to:
'title' => $username_prefix . l($user->name, 'user/' . $user->uid, array('attributes' => array('class' => array('username-link')))) . $username_suffix,

Please repair it, or say if I am wrong in this thing.

afoster’s picture

I can confirm this error too. Disabling quickbar extras is my temporary work around.

I think it's appeared after a Drupal 4.15 upgrade.

afoster’s picture

@fibigerg -Thanks for the fix - works for me.

I found this related core ticket http://drupal.org/node/1650762 which seems to indicate the class is supposed to be an array like you've done in the fix.

redndahead’s picture

Status: Active » Closed (fixed)

This has been fixed in dev.

pavennt’s picture

Thank fibigerg :

error : Fatal error: [] operator not supported for strings in includes/common.inc on line 2353

I using and This is it work :)

array('attributes' => array('class' => array('popup-data')))
pavennt’s picture

Issue summary: View changes

Adding that this message is fixed in the dev branch, to save people time.