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

sethcohn’s picture

+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

bastnic’s picture

sethcohn : yes you are right, sorry ;).

I'm happy to helping someone

NicolasH’s picture

Status: Active » Fixed

I added that to the D6 branch for now.

Summit’s picture

Hi, and how about the Drupal 5 branch please?
Thanks in advance for considering.
greetings,
Martijn

NicolasH’s picture

Version: master » 5.x-1.x-dev
Status: Fixed » Active

Should be in the 5.x dev version.

bastnic’s picture

It seems to be integrate in the 5.x-1.x-dev. Thanks.

dman’s picture

Status: Active » Closed (fixed)

Issue cleanup. Looks old and fixed