Yesterday I built a hierarchy tree in Taxonomy by selecting parents for each new term in the Parent field in the "Relations" section of the term edit form.
But today, when I went back to Taxonomy and created a new vocabulary, intending to build a hierarchy tree there as well, the "Parent" field had disappeared from the term edit form for no reason I can think of. I got the following messages:
Notice: Undefined index: parent in taxonomy_form_term_submit() (line 828 of /home/climateb/public_html/inter-ethnic.org/modules/taxonomy/taxonomy.admin.inc).
Notice: Undefined property: stdClass::$parent in taxonomy_check_vocabulary_hierarchy() (line 537 of /home/climateb/public_html/inter-ethnic.org/modules/taxonomy/taxonomy.module).
Between yesterday and today I didn't edit any code at all (and hope I won't have to do so now).
What could have gone wrong? I attach txt versions of the files mentioned in the warning message.
Thanks in advance for any support.
| Comment | File | Size | Author |
|---|---|---|---|
| taxonomy.module.txt | 60.27 KB | Hovercraft | |
| taxonomy.admin_.inc_.txt | 36.62 KB | Hovercraft |
Comments
Comment #1
lennart commentedI can confirm this issue.
Comment #2
xjmHi,
It would really help to have explicit steps to reproduce here, like:
Thanks!
Comment #3
lennart commentedI'm not sure if the error is that easy to provoke. In my case its on a site that was recently upgraded from D6 to D7. Not sure if that has anything to do with it or not.
Comment #4
xjmYeah, it's possible that the steps to reproduce might start like:
Comment #5
lennart commentedIndeed.
Comment #6
igormagic commentedThe same thing happened to me. I experimented with different modules on my site, so I cannot tell what exactly caused this error. But I've just enabled the previously disabled Hierarchical Select module (http://drupal.org/project/hierarchical_select) and the parent field appeared again. Maybe this will be helpful.
Comment #7
clashar commentedI've got the same error with D7.12:
Notice: Undefined index: parent in taxonomy_form_term_submit() (line 828 of C:\xampp\htdocs\www.***.kz\emploi\modules\taxonomy\taxonomy.admin.inc).
Hierarchical Select was installed, but disabled.
Comment #8
dddave commentedI suppose recent versions aren't affected and/or this is an issue with a contributed module.
Comment #9
cracu commentedThere is a bug in code...
the taxonomy_form_term form function has the following lines:
That means taxonomy_override_selector set as TRUE could prevent $form['relations']['parent'] to be created...
In taxonomy_form_term_submit function we have those lines that are looking for ['parent'] data.
I set that variable as TRUE to avoid some long times needed to generate parent data in taxonomy_manager contrib module.
So... better check that variable first.