here is the line 330
foreach ($entity_info['bundles'] as $bundle => $label) {

Here is what is defined as entity info per each entity type. for default, taxonomy_term, and user there is no info. There is info only for node.
entity type = node entity info = Array

while these other types are defined there is no entity info value (should that be the case?) and they are discarded.
entity type = default
entity info =
entity type = taxonomy_term
entity info =
entity type = user
entity info =

Comments

socialnicheguru’s picture

this might have more to do with core.

it seems that certain modules don't add entity information as they should.

You check to see if some elements are set, but i don't think the entire array is defined. This could be more of a systemic problem.

They solved it by doing sanity checks:
http://drupal.org/node/1329294#comment-6181272

lsolesen’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Is this still an issue for you?

damienmckenna’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I've not seen this occur in v3, so I presume it was fixed along the way. Please feel free to reopen the issue if the problem still occurs for you with v3.