I have a term reference field with 3 values, and I'm putting a term and it's two parents (3 levels) in the field, which is defined for 3 values.

When I view the page I get the error in the subject above. The offending $ids array has the tids as array indices whereas function load in entity.inc seems to require ascending numerical indices. The indexes are 0, 1, and 2 in the node object and the term names display properly when viewing the page. But what gets passed to this function at some point in the rendering process has the tids as array indices, and it wants a 0. I'm entering them comma-separated in the autocomplete field.

I'm tagging the component as taxonomy since taxonomy data is causing the problem, though the error is coming from entity.

Comments

Version: 7.12 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.