Drupal 7 Solr索引错误,显示“0”;EntityFormedException:类型为taxonomy的实体上缺少bundle属性“U term”;

Drupal 7 Solr索引错误,显示“0”;EntityFormedException:类型为taxonomy的实体上缺少bundle属性“U term”;,exception,drupal,solr,indexing,Exception,Drupal,Solr,Indexing,在Drupal 7.14中,当我为整个站点编制索引时,Solr显示以下错误: AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=1938&op=do StatusText: Service unavailable (with message) ResponseText: EntityMalformedException: Missing bundl

在Drupal 7.14中,当我为整个站点编制索引时,Solr显示以下错误:

AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. 
Path: /batch?id=1938&op=do StatusText: Service unavailable (with message)
ResponseText: EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7539 of /project/path/includes/common.inc).

因此,当我查看
/includes/common.inc
中的行时(大约行:7537):

  • 请问这段代码(在
    common.inc
    中)实际上在做什么
  • 我怎样才能克服这个错误
请尝试此模块,它将删除所有空捆绑包

// Explicitly fail for malformed entities missing the bundle property.
if (!isset($entity->{$info['entity keys']['bundle']}) || $entity->{$info['entity keys']['bundle']} === '') {
  throw new EntityMalformedException(t('Missing bundle property on entity of type @entity_type.', array('@entity_type' => $entity_type)));
}