I am migrating a Drupal 6 site to Drupal 7 site.
I used migrate_d2d module version 7.x-2.x-dev and migrate module version 7.x-2.x-dev.
I copied the migrate_d2d_example module and created my own module.
Everything works well and manged to migrate lots of stuff.
Among other things, I migrated all the forums,forums topics and all their comments.
The only thing that I cannot crack is the following error that I get whenever I browse to every forum page :
Undefined property: stdClass::$forum_tid in forum_node_view() (line 273 of
/var/www/modules/forum/forum.module).

All the forum topics lack their forum.
In other words, when I browse to any migrated forum topic, all the topic's content is there and it's accurate, including all its comments, but the topic doesn't belong to any forum.
So I guess I should map at least one field (the forum id? forum tid?), so that every topic will belong to the forum it belongs to in the original (d6) site.

Can you please advise ?

Thanks in advance

Comments

tamirkorem’s picture

Category: Support request » Bug report
tamirkorem’s picture

I've found the reason for it : vid should be identical to nid.

Here's an article that I've written on How to import your drupal 6 sites content to drupal 7

Good luck.

mikeryan’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

vid does not need to be identical to nid, nodes may have multiple revisions, which will de-sync the revision IDs.

What's necessary is to map the 'forums' destination field to the term ID of the forum the nodes should go in. The forum terms themselves should have their own migration, then in the forum node migration you would have:

$this->addFieldMapping('forums', 'forums')
     ->sourceMigration('MyForumTermMigrationMachineName');
$this->addFieldMapping('forums:source_type')
     ->defaultValue('tid');
mikeryan’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)