why would the title simply be empty? did i miss something?
<span title="" class="nolink">LinkName</span>


roderik’s picture

Issue summary: View changes

Try the -dev version (as of may 12, 2015). This removes special_items_init(). This worked for me; may work for you too.

In my case, the empty title was caused by the combination of

  • a menu title callback which is not in the .module file (but instead, in the file mentioned in the 'file' value from the hook_menu entry)
  • special_items_init() calling drupal_get_breadcrumb() -> ... menu_get_active_trail() -> ... _menu_item_localize()

menu_get_active_trail() builds menu items and caches them for the remainder of the request. However, if it's called from hook_init(), the include-file with the title callback is not loaded yet, your callback isn't found and the cached trail will have an empty title for the menu item.

drupal_get_title() will later use the already-cached trail from menu_get_active_trail(), and output the empty title.