I've been trying to get wp2drupal working on my D6.12 + WP2.62 install and although tags were being ported across as Drupal terms, the "connect nodes with taxonomy terms" section wasn't doing its job. It turned out to be that this query

db_query($query, $map_postid_nodeid[$binding['object_id']], $map_postid_nodeid[$binding['object_id']], $map_catid_termid[$binding['term_taxonomy_id']]);

...requires vid not nid in the second field. To get vid I created another mapping array higher up in the code:

$map_postid_vid[$post['ID']] = $node->vid;

and then changed the query to this:

db_query($query, $map_postid_nodeid[$binding['object_id']], $map_postid_vid[$binding['object_id']], $map_catid_termid[$binding['term_taxonomy_id']]);t to be that 

...and now it works!

CommentFileSizeAuthor
#2 wp2drupal_taxonomy.patch1.61 KBalxbridge

Comments

damienmckenna’s picture

Thanks, for catching that, I'll see how it works.

alxbridge’s picture

StatusFileSize
new1.61 KB

This worked great for me - thanks bdwelle.

Patch attached for easy testing/integration of the fix.

alxbridge’s picture

Status: Needs review » Reviewed & tested by the community
damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for your work, I've committed this fix.

damienmckenna’s picture

Status: Fixed » Closed (fixed)

I've just added this to a new release - v6.x-1.7.