Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi there,
I use Drupal 6.26 with Content Taxonomy 6.x-1.0-rc2
When viewing a node form utilising content_taxonomy and having autocompletion enabled, the following error notice shows up in my watchdog:
error php notice: Trying to get property of non-object in content_taxonomy_autocomplete_merge_tags() (line 406 of /var/www/data/drupal6/sites/all/modules/content_taxonomy/content_taxonomy_autocomplete.module
Proposed solution: Check if $term is not empty before trying to access $term->vid
Comment | File | Size | Author |
---|---|---|---|
#1 | content_taxonomy_autocomplete-fix_non-object_error-1615286.patch | 717 bytes | emair |
Comments
Comment #1
emair CreditAttribution: emair commentedAttached a patch which naively solves this problem for me ;)
Comment #2
emair CreditAttribution: emair commented