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
Comment #1
sign CreditAttribution: sign commentedI can't replicate this,
anything specific?
eg. are you using custom menu in the top nav? etc...
thanks
Comment #2
sign CreditAttribution: sign commentedComment #3
lekvarnik CreditAttribution: lekvarnik commentedI 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.
Comment #4
VM CreditAttribution: VM commentedMay aid to compare PHP versions with users having this problem and users not having this problem.
Comment #5
sign CreditAttribution: sign commentedThis is a duplicate of #656558: $items passed to theme('item_list',...) may contain subarrays from menu_navigation_links's $menu_tree where more code is.