Hi,

I set up my nodes, then made a view to show those nodes. When I click on the link to show the view, I get the Notice: Undefined index: tid in taxonomy_field_formatter_prepare_view() (line 1504 of /srv/www/engelsizturkiye.info/public_html/modules/taxonomy/taxonomy.module). message. I also use hierarchical_select module, if it helps.

Regards,

Comments

kartagis’s picture

Status: Active » Closed (works as designed)

I deleted the view and recreated it, and the error went away.

cpc’s picture

I had this problem. The reason was because I had a field referencing taxonomy, which I had removed then re-added (same name), except I changed the type to an integer instead of a taxonomy reference.

After the change, the view was trying to pull in taxonomy data for that field, but there was no data.

So in other words, just check for fields using taxonomy. Remove them from the view then re-add them. If you're having trouble finding which one is the culprit, you can export the view and examine the code, looking for taxonomy references.

nflowers1228’s picture

Issue summary: View changes

cpc, thanks your solution eliminated my error messages.

edepuy’s picture

good catch! thanks!

joelstein’s picture

Thanks, cpc! That helped me find the cause of this pesky bug.

I think what happened in our case was that a field was added to a view back when we had created it as a taxonomy term reference field. But later we deleted the field and recreated it as an entity reference field.

So removing it from the view and adding it back in fixed it.

renu_mughal’s picture

Hey cpc, thanks for sharing your experience, got it fixed.