I'm trying to import primary term (with primary_term plugin #12345: How do I log in as admin? for node_import ) from my csv file, but there is error when vocabulary mode is "tags":
"An illegal choice has been detected. Please contact the site administrator."
and
"An error occurred. /?q=admin/content/node_import/8/continue (no information available)."
And primary term is not imported. How can be it fixed?
P.s.
I'm trying, but can't understand where and which values i must put in code
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | file.patch | 2.41 KB | cainrus |
| #2 | primary_term.inc_.tar_.gz | 1.62 KB | cainrus |
Comments
Comment #1
cainrus commentedsorry, primary_term plugin for node_import is #565430: Support for primary term module
Comment #2
cainrus commentedI modified plugin for node_import. Did not tested much time. Only with my taxonomy tags situation & primary_term module.
For now Implementation of hook_node_import_values_alter will check value, because it must be integer(tid) to avoid old errors. If value is not integer then module will try to find term from used vocabulary, and then will get it's tid instead of terms string name. The End.
I do not have much time, so please test it. There may be some unnecessary lines in module(i'm sure there are they).
And code must be formatted with standarts.
So then all these code must be included into next version of node_import module .
P.s.
If you can't understand what i have writted here, then please say, i will try it again :)
Comment #3
cainrus commentedAttached patch