I was using taxonomy_title + some rules + url alias, and I got this error:
Error message
Notice: Undefined property: stdClass:taxonomy_title in taxonomy_title_taxonomy_term_insert() (line 47 of /var/www/zenit.atenealabs.com/sites/all/modules/taxonomy_title/taxonomy_title.module).
I solved changing the function:
/**
* Implements hook_taxonomy_term_insert($term).
*/
function taxonomy_title_taxonomy_term_insert($term) {
_taxonomy_title_insert_title($term->tid, $term->taxonomy_title);
}
by
/**
* Implements hook_taxonomy_term_insert($term).
*/
function taxonomy_title_taxonomy_term_insert($term) {
_taxonomy_title_insert_title($term->tid, $term->name);
}
Comment | File | Size | Author |
---|---|---|---|
#2 | check_if_title_is_set-1236838-2.patch | 882 bytes | jenlampton |
Comments
Comment #1
jenlamptonYou just saved the term name into the database instead of the term title. You could have made the same change by uninstalling the taxonomy title module :)
Can you give me some more specifics as to the rules you had set up, and what you were trying to achieve when the error appeared?
Comment #2
jenlamptonHere's a patch that makes the reported error go away.
Comment #3
jenlamptonpatch committed. Please re-open this issue if the problem persists.