Closed (fixed)
Project:
Quickbar
Version:
7.x-2.0-beta1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2012 at 21:31 UTC
Updated:
25 Jul 2013 at 03:43 UTC
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
Comment #1
fibigerg commentedSolution 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.
Comment #2
afoster commentedI can confirm this error too. Disabling quickbar extras is my temporary work around.
I think it's appeared after a Drupal 4.15 upgrade.
Comment #3
afoster commented@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.
Comment #4
redndahead commentedThis has been fixed in dev.
Comment #5
pavennt commentedThank fibigerg :
error : Fatal error: [] operator not supported for strings in includes/common.inc on line 2353
I using and This is it work :)
Comment #5.0
pavennt commentedAdding that this message is fixed in the dev branch, to save people time.