Term field not displayed + Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1596 of taxonomy.module)

Created on 5 November 2013, about 11 years ago
Updated 17 March 2023, almost 2 years ago

Under certain circumstances
* a taxonomy term reference field is not displayed
* Watchdog shows the Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1596 of taxonomy.module)

Analysis

It looks that in taxonomy_field_formatter_view() under certain circumstances $item['tid'] is set, but not $item['taxonomy_term'].

Original summary

There are several people reporting this issue in other projects:

The site I'm experiencing the error on doesn't run any contrib taxonomy modules, so it seems like a core issue.
I do run Display Suite on the site, but disabling it has no effect on the error.

I've created a patch that resolves the error on my site. I'll attach after creating this issue.

πŸ› Bug report
Status

Postponed: needs info

Version

7.0 ⚰️

Component
TaxonomyΒ  β†’

Last updated 17 minutes ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @xjm
  • πŸ‡¬πŸ‡§United Kingdom @catch
Created by

πŸ‡ΊπŸ‡ΈUnited States agileadam Maine, USA

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024