My watchdog was filling up with errors
htmlspecialchars() expects parameter 1 to be string, array given in bootstrap.inc on line 861.

I checked backtrace with devel

common.inc: check_plain line 1546
theme.inc: drupal_attributes line 1545
theme.inc: call_user_func_array line 656
template.php: theme line 143
theme.inc: call_user_func_array line 656
template.php: theme line 135
template.php: _rootcandy_admin_navigation line 247
theme.inc: call_user_func_array line 697
index.php: theme line 39

It appeared $item['attributes'] contained an empty array in _rootcandy_admin_navigation()

I changed template.php line 119
if (!empty($item['attributes'])) {
to
if (empty($item['attributes'])) {

and the errors went away.

Correct me if I am wrong in doing this.

Comments

sign’s picture

I can't replicate this,
anything specific?
eg. are you using custom menu in the top nav? etc...

thanks

sign’s picture

Status: Active » Postponed (maintainer needs more info)
lekvarnik’s picture

I had similar problem with rootcandy

and I have solved it with the removing of the exclamation mark as banmalen suggested.

Now, messages are finally gone.

VM’s picture

Version: 6.x-1.8 » 6.x-1.x-dev
Status: Postponed (maintainer needs more info) » Active

May aid to compare PHP versions with users having this problem and users not having this problem.

sign’s picture

Status: Active » Closed (duplicate)