API page: http://api.drupal.org/api/drupal/modules--menu--menu.admin.inc/function/...
If the $tree that is passed into _menu_overview_tree_form() contains empty localized options, which it can, the resulting call to l() causes an "Unsupported operand types" error in includes/common.inc. I'm torn between whether I should be reporting this as a bug since the calling function should really be making sure that empty values are set as empty arrays. However, the fix seems trivial enough that it seems like an obvious check could have been made in the first place. Why call l() with an empty variable if we're not sure it is an array when calling it with an empty array would also be good?
So, in _menu_overview_tree_form() which is in the file menu.admin.inc, I'd propose to insert 3 lines of code starting on line 72:
if (empty($item['localized_options'])) {
$item['localized_options']=array();
}
Please let me know if I should have filed this problem elsewhere, if it is a problem indeed, and what I can do to help.
Comments
Comment #1
sunMarking as duplicate of #450620: Fatal error: Unsupported operand types in includes/common.inc on line 1551 (caused by menu.admin.inc)