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.
Possible to correct in adding intval to $term['old_tid'] :
if (!$term_exists) {
taxonomy_save_term($term);
print_r($term);
// Map the term tid from the imported XML file to the tid in term_data database table
$new_tid[intval($term['old_tid'])] = $term['tid'];
$new_terms[] = $term['name'];
}
Comments
Comment #1
sethcohn CreditAttribution: sethcohn commented+1
Your timing was perfect, as I just had the same problem, and discovered this fix right away... thank you!
Remove the print_r line, of course, which is for debugging only
Comment #2
bastnic CreditAttribution: bastnic commentedsethcohn : yes you are right, sorry ;).
I'm happy to helping someone
Comment #3
NicolasH CreditAttribution: NicolasH commentedI added that to the D6 branch for now.
Comment #4
Summit CreditAttribution: Summit commentedHi, and how about the Drupal 5 branch please?
Thanks in advance for considering.
greetings,
Martijn
Comment #5
NicolasH CreditAttribution: NicolasH commentedShould be in the 5.x dev version.
Comment #6
bastnic CreditAttribution: bastnic commentedIt seems to be integrate in the 5.x-1.x-dev. Thanks.
Comment #7
dman CreditAttribution: dman commentedIssue cleanup. Looks old and fixed