I get the following error or warning message in the UI for all of my nodes
"pathauto" was used as destination field in "" mapping but is not in list of destination fields

pathauto is not in any of the code I have written but it is in migrate_d2d/node.inc at line 139.

I was getting similar errors for totalcount, daycount and timestamp until I added the following line to my code
$this->addUnmigratedSources( array('daycount', 'totalcount', 'timestamp',));

if (module_exists('pathauto')) {
$this->addFieldMapping('pathauto')
->description('By default, disable in favor of migrated paths')
->defaultValue(0);
}

if (module_exists('statistics')) {
if ($this->moduleExists('statistics')) {
$this->addSimpleMappings(array('totalcount', 'daycount', 'timestamp'));
}
else {
$this->addUnmigratedDestinations(array('totalcount', 'daycount', 'timestamp'));
}
}

CommentFileSizeAuthor
#1 not_clear_these_lines-2411715-1.patch783 bytesmikeryan

Comments

mikeryan’s picture

Title: Not clear these lines needed in node.inc » Messages for unmapped pathauto and statistics fields
Status: Active » Needs review
StatusFileSize
new783 bytes

Note you can wrap code in <?php ?> tags for better formatting.

Regarding pathauto, until #1128870: Integration with Migrate module is committed and released, you need Migrate Extras to provide the necessary field handler, otherwise by default pathauto will generate new aliases for you in addition to migrate_d2d's migration of the old aliases.

What precise messages were you getting for the statistics fields? Does the attached patch clear them up?

  • mikeryan committed fbfcb34 on 7.x-2.x
    Issue #2411715 by mikeryan: Cleanup notices involving statistics fields
    
mikeryan’s picture

Status: Needs review » Fixed

I've committed a patch to cleanup statistics-related notices.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.