I try to migrate drupal 7 site to version 8 following this steps https://www.drupal.org/docs/8/upgrade/upgrading-from-drupal-6-or-7-to-drupal-8. But when migrate the fields of content types I get error of this type in fields that reference other content types "Attempt to create a [field_name] with no type.". "upgrade_d7_field" is the migration id I execute. I'm doing the migration via drush.
I know the posible problem, but I dont know how to resolve. In drupal 7 the type of fields that reference other content types is the "Node reference" type, but in version 8 that type doesn't exist anymore, now is of type "entity reference".
I think that I should change some configurations in my migration definition but I don't know exactly what.
This is migration definition of the migration id "upgrade_d7_field":
uuid: 2edaccb2-22a6-4482-895f-439bbbc66f1a
langcode: es
status: true
dependencies: { }
id: upgrade_d7_field
class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
field_plugin_method: alterFieldMigration
cck_plugin_method: null
migration_tags:
- 'Drupal 7'
- Configuration
migration_group: migrate_drupal_7
label: 'Field configuration'
source:
plugin: d7_field
constants:
status: true
langcode: und
process:
entity_type:
-
plugin: get
source: entity_type
status:
-
plugin: get
source: constants/status
langcode:
-
plugin: get
source: constants/langcode
field_name:
-
plugin: get
source: field_name
type:
-
plugin: process_field
source: type
method: getFieldType
map:
d7_text:
d7_text: d7_text
taxonomy_term_reference:
taxonomy_term_reference: taxonomy_term_reference
image:
image: image
link_field:
link_field: link_field
file:
file: file
datetime:
datetime: datetime
list:
list: list
cardinality:
-
plugin: get
source: cardinality
settings:
-
plugin: d7_field_settings
destination:
plugin: 'entity:field_storage_config'
migration_dependencies:
required: { }
optional: { }
Seriously I need migrate the data of the D7 site, they are more than 17.000 news with taxonomies, comments and more.
I appreciate any help. Thanks in advance.