Hello,

I performed a Drupal 5 to Drupal 7 migration and everything migrated over just fine except for all the forum content:

Processed 122 (0 created, 0 updated, 122 failed, 0 ignored) in 4 sec (1849/min) - done with 'aa8b9884cNodeforum'
Processed 531 (0 created, 0 updated, 531 failed, 0 ignored) in 3.7 sec (8608/min) - done with 'aa8b9884cCommentforum'

It repeated this error here over and over:

reset() expects parameter 1 to be array, null given File /Users/justice4world/Sites/devdesktop/loveforlifenew/modules/forum/forum.module, line 331

And then this one:

No node ID provided for comment

This is line 331 in forum.module:

$forum_terms[] = $term->tid;

Anyone have any ideas as to why the error and how to resolve? I am totally at a loss.

Thank you. :)

Comments

mikeryan’s picture

Assigned: justice4world » Unassigned
Status: Active » Closed (duplicate)
Issue tags: -Drupal 5, -forum content
justice4world’s picture

Thanks mikeryan. I am new to Drupal but will see if I can figure out how to do what you have said in your answer on the other post. :)

justice4world’s picture

Hi mikeryan,

Sorry, don't know if it's okay if I still comment here since you closed the post but I saw your answer here to another querent:

https://www.drupal.org/node/1609160

In which you instructed to use this code:

$this->addFieldMapping('taxonomy_forums', 'objectid');
$this->addFieldMapping('taxonomy_forums:source_type')
     ->defaultValue('tid');

Would this be placed in the following module file:

/modules/migrate/includes/field-mapping.inc

And am I even barking up the right tree here?

Thanks.