Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using an hierarchical taxonomy field showing as shs widget for Profile2. the problem is, when I'm going to edit my profile on my account, the widget doesn't show the results.
I've tested the same core on php 5.4 and everything was alright!
I looked the source of webpage and figured out "parent" setting was empty ("parents":[]). It means taxonomy_get_parents_all doesn't return Parents of current taxonomy term on Profile2 + PHP 5.3.
Now! the question is what's wrong with taxonomy_get_parents_all and how I can fix this bug?
Thanks for your help
Comments
Comment #1
johnflower CreditAttribution: johnflower commentedChanged PHP version in title from 3.5 to 5.3 to match description of problem.
Comment #2
stBorchertHi.
Does the error still occur if you don't use SHS as widget? You say,
taxonomy_get_parents_all()
does not return anything, which sounds like a bug in Drupal itself.