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'));
}
}
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | not_clear_these_lines-2411715-1.patch | 783 bytes | mikeryan |
Comments
Comment #1
mikeryanNote 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?
Comment #3
mikeryanI've committed a patch to cleanup statistics-related notices.