Closed (fixed)
Project:
Display Suite
Version:
7.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2014 at 11:58 UTC
Updated:
20 Mar 2014 at 18:14 UTC
Jump to comment: Most recent
Hello,
i'm unsure how this has happened.
But i had a solr search, which throwed this error in log:
EntityMalformedException: Missing bundle-property on entity of type taxonomy_term. in entity_extract_ids() (line 7721 of /www/includes/common.inc).
And the site just showed and "Error-page"
I don't know how my node has an ref to a taxonomy, but the taxonomy is not in the "taxonomy-list / table".
But if the code handling the display of the taxonomy was like:
ds/ds.module line: 1227 - 1237
$term = taxonomy_term_load($item['tid']); //At this point, $term is FALSE
if($term){ //This check would make the code "skip" the empty / missing taxonomy. (would this be a stupid check?)
if ($display['type'] == 'ds_taxonomy_separator_localized' && function_exists('i18n_taxonomy_term_name')) {
$term->name = i18n_taxonomy_term_name($term, $language->language);
}
$item_display = check_plain($term->name);
if ($linked) {
$uri = entity_uri('taxonomy_term', $term);
$item_display = l($term->name, $uri['path']);
}
}
Comments
Comment #1
jakobdo commentedComment #2
jakobdo commentedComment #3
aspilicious commentedIs this also happening on the dev version? I remember fixing this a month ago.
Comment #4
jakobdo commentedLooks like it was fixed: http://drupalcode.org/project/ds.git/blob/HEAD:/ds.module#l1218
Comment #5
aspilicious commented