When using this module on a larger scale, it creates PHP memory exhaustion errors.
I have two taxonomy with close to 800 terms, and it causes PHP fatal errors, tried to bump my PHP max memory, and it still gave me that error.

Comments

benjamin.merkley created an issue. See original summary.

benjamin.merkley’s picture

Using it in an entity reference as well with a possibility of 5000 terms cause 500 fatal errors, not sure if this is due just the scale of the terms and the site, or the Module

lvbeck’s picture

same problem, I have only 10 taxonomy terms, but rendering of the tree view still cause memory exhaustion. I have to restart the php process to get my site back to work.

lvbeck’s picture

I figure that out, I forget to add relationship for taxonomy term, to get it work, you have to do exactly like this steps:

Views Tree with Taxonomy Terms
Creating Taxonomy Terms

Create some Taxonomy terms with parent/child (hierarchical) relationships.

Creating the View

First, create a new term view using the fields row style / unformatted list of fields (it is important that the tree style not be chosen now). Then:

  1. Add relationship for taxonomy term: parent term
  2. Add field term id (do not use relationship) and exclude it from display
  3. Add field term id with relationship, exclude from display
  4. Add any fields you want to display, like term name, term description, etc...
  5. Change style / format plugin to Tree (Adjacency model)
  6. Set Main field to Term ID
  7. Set Parent field to Term ID with parent relationship

(These instructions are taken from #1424414-6: How to configure for D7 Profiles/Taxonomy terms.)

But If you have multiple translations of terms, the tree view will show duplicated entities, this is another known issue similar with: https://www.drupal.org/node/2735627

mxt’s picture

The above instructions helped me a lot: these should be added to the official documentation I think.

gaurav.kapoor’s picture

+1 to the instructions in #4. Let's use this issue to improve validation and documenation.

smustgrave’s picture

Status: Active » Postponed (maintainer needs more info)

Curious if #3332345: Infinite loop issue solves this for you?

smustgrave’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)