When trying to process a migration for a content type, I get:
terminus drush $PANTHEON_SITE.dev migrate-import upgrade_d7_node_complete_rich_text_widget
[warning] preg_split() expects parameter 2 to be string, array given filter.module:529
[warning] count(): Parameter must be an array or an object that implements Countable filter.module:539
[warning] Illegal string offset 'target_id' EntityReferenceRevisions.php:116
[warning] Illegal string offset 'target_revision_id' EntityReferenceRevisions.php:116
[warning] Illegal string offset 'target_id' EntityReferenceRevisions.php:120
[warning] Illegal string offset 'target_revision_id' EntityReferenceRevisions.php:121
Error: Call to a member function getRevisionId() on null in Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem->onChange() (line 216 of /code/web/modules/composer/entity_reference_revisions/src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php).
[error] Error: Call to a member function getRevisionId() on null in Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem->onChange() (line 216 of /code/web/modules/composer/entity_reference_revisions/src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php) #0 /code/web/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php(132): Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem->onChange('entity', false)
#1 /code/web/modules/composer/entity_reference_revisions/src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php(159): Drupal\Core\TypedData\Plugin\DataType\Map->set('entity', '', false)
#2 /code/web/core/lib/Drupal/Core/TypedData/TypedDataManager.php(208): Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem->setValue('', false)
#3 /code/web/core/lib/Drupal/Core/Field/FieldTypePluginManager.php(82): Drupal\Core\TypedData\TypedDataManager->getPropertyInstance(Object(Drupal\entity_reference_revisions\EntityReferenceRevisionsFieldItemList), 0, '')
#4 /code/web/core/lib/Drupal/Core/Field/FieldItemList.php(41): Drupal\Core\Field\FieldTypePluginManager->createFieldItem(Object(Drupal\entity_reference_revisions\EntityReferenceRevisionsFieldItemList), 0, '')
#5 /code/web/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php(69): Drupal\Core\Field\FieldItemList->createItem(0, '')
#6 /code/web/core/lib/Drupal/Core/Field/FieldItemList.php(107): Drupal\Core\TypedData\Plugin\DataType\ItemList->setValue(Array, true)
#7 /code/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php(1087): Drupal\Core\Field\FieldItemList->setValue(Array)
#8 /code/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(174): Drupal\Core\Entity\ContentEntityBase->__set('field_rtw_body3', Array)
#9 /code/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(119): Drupal\Core\Entity\ContentEntityStorageBase->initFieldValues(Object(Drupal\node\Entity\Node), Array)
#10 /code/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(216): Drupal\Core\Entity\ContentEntityStorageBase->doCreate(Array)
#11 /code/web/core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php(84): Drupal\Core\Entity\EntityStorageBase->create(Array)
#12 /code/web/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php(159): Drupal\migrate\Plugin\migrate\destination\EntityContentComplete->getEntity(Object(Drupal\migrate\Row), Array)
#13 /code/web/core/modules/migrate/src/MigrateExecutable.php(228): Drupal\migrate\Plugin\migrate\destination\EntityContentBase->import(Object(Drupal\migrate\Row), Array)
#14 /code/vendor/drush/drush/includes/drush.inc(206): Drupal\migrate\MigrateExecutable->import()
#15 /code/vendor/drush/drush/includes/drush.inc(197): drush_call_user_func_array(Array, Array)
#16 /code/web/modules/composer/migrate_tools/src/Commands/MigrateToolsCommands.php(963): drush_op(Array)
#17 [internal function]: Drupal\migrate_tools\Commands\MigrateToolsCommands->executeMigration(Object(Drupal\node\Plugin\migrate\D7NodeTranslation), 'upgrade_d7_node...', Array)
#18 /code/web/modules/composer/migrate_tools/src/Commands/MigrateToolsCommands.php(417): array_walk(Array, Array, Array)
#19 [internal function]: Drupal\migrate_tools\Commands\MigrateToolsCommands->import('upgrade_d7_node...', Array)
#20 /code/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#21 /code/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#22 /code/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#23 /code/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(350): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#24 /code/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 /code/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#26 /code/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#27 /code/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#28 /code/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#29 /code/vendor/drush/drush/src/Runtime/Runtime.php(48): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#30 /code/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
#31 /code/vendor/drush/drush/drush(3): require('/code/vendor/dr...')
#32 /code/vendor/bin/drush(112): include('/code/vendor/dr...')
#33 {main}.
[warning] Drush command terminated abnormally.
[notice] Command: tu-flagship-d9.dev -- drush migrate-import upgrade_d7_node_complete_rich_text_widget [Exit: 1]
[error]
The code I'm using in the yml file is:
field_rtw_body3: (my Paragraphs field in the content type. Entity reference revisions)
plugin: html_to_paragraphs
source: field_rtw_body (source field from d7 content type)
process:
-
plugin: html_process_text
bundle: text (machine name for paragrphs type)
field_name: field_text (paragraphs field)
text_format: full_html
fallback: true
Comments