【问题标题】:Drupal 7 Solr Indexing Error showing "EntityMalformedException: Missing bundle property on entity of type taxonomy_term"Drupal 7 Solr 索引错误,显示“EntityMalformedException:taxonomy_term 类型的实体上缺少捆绑属性”
【发布时间】:2012-11-30 03:32:35
【问题描述】:

在 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)实际上在做什么?
  • 我该如何克服这个错误?

【问题讨论】:

    标签: exception drupal solr indexing


    【解决方案1】:

    请试试这个模块https://drupal.org/project/taxonomy_orphanage它会删除所有空包。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-02-15
      • 2019-04-11
      • 2019-10-30
      • 1970-01-01
      • 1970-01-01
      • 2020-05-23
      • 1970-01-01
      相关资源
      最近更新 更多