I'm working with Drupal 8 Taxonomy terms. I'm managing them in the backend through the default taxonomy pages.

I'm doing this for a project where I need to label rows in a custom added table.

This all worked pretty fine until suddenly, just out of nowhere, the terms disappeared. I added terms, and when I returned to the list page of the specific taxonomy library, they where gone. They were still in the database, and \Drupal\taxonomy\Entity\Term::loadMultiple() still returns them.

I've done a lot of digging, but I'm out of ideas. I need some pointers to continue my search.

  • Can you please share your code . So that we can help you out better Aug 18, 2016 at 4:51
  • Well that's the weird thing. When i disable my custom module & theme, it still happens :( So there is no custom code.
    – jivanrij
    Aug 18, 2016 at 10:07
  • The hidden terms stay hidden when disabling my module, the new ones added without my module do got shown. But i found the answer, check below.
    – jivanrij
    Aug 19, 2016 at 14:28

2 Answers 2


I found the issue. The taxonomy terms where stored without the taxonomy_term_hierarchy information. This info is needed for the list of terms in the admin list to determ the relations between the terms.

This was caused by me, I've removed the hierarchy field from the form. This caused Drupal to not save this information at all. There are no default values or something like that here.



Working with a script migrating terms to Drupal 8 I ran into this exact same issue. Thanks @jivanrij for pointing that out! I'd like to add upon that:

All taxonomy terms need a corresponding taxonomy_term_hierarchy record. Even when their belonging vocabulary is being marked as NON-hierarchical. All terms will either have a record with an actual parent tid value or a 0 value.

Adhering to the above fixed the terms from disappearing in my case.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.