Drupal 7 Solr索引错误显示“EntityMalformedException:类型taxonomy_term的实体上缺少bundle属性”

时间:2012-11-30 03:32:35

标签: 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 bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7539 of /project/path/includes/common.inc).


所以当我查看/includes/common.inc中的行(围绕行:7537)时:

// 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)));
}
  • 那些代码(common.inc)实际上是在做什么?
  • 我如何克服这个错误?

1 个答案:

答案 0 :(得分:0)

请尝试使用此模块https://drupal.org/project/taxonomy_orphanage,它将删除所有空捆绑包。