Score:0

Sub category wrongly classified to root level and cannot be rectified

us flag

I am using SHS (Simple hierarchical select) which allows the user to create the child term under the parent term by themselves. For example:

root --Canon (parent level) ----5D3 (child level)

When I checked on the taxonomy list, I found those child levels are wrongly classified to root level, instead of their parent levels (the brand).

Even if I changed them to be under the brand manually, it was still keeping the previous hierarchical relationship after the action.

I checked the database and confirmed everything looked normal in {taxonomy_term__parent}, where they did connect to the correct parent term ID.

How comes this issue and how can I fix them?

Drupal version: 8.9

taggartJ avatar
cn flag
what happens if you disable the module and just use the normal hierarchical select that is in core ? does that work ?
us flag
@taggartJ Thanks! I dublicated my website and then had it disabled..with no luck, it didn't work. Those child terms are still under root level...
us flag
@taggartJ Their parent IDs look good in database, but the real relationship is wrong, which can be found at Relationship tab on /taxonomy/term/***/edit. So weird. Just wanted to know if it is controlled by somewhere else besides {taxonomy_term__parent}.
us flag
@taggartJ Problem solved. It was because of the langcode in the database. User created terms were all set as '1' instead of 'en'. I fixed them by UPDATE **** SET `langcode`= 'en'
Score:0
us flag

Problem solved. It was because of the langcode in the database.

User created terms were all set as '1' instead of 'en'.

I fixed them by

UPDATE **** SET `langcode`= 'en' 
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.