I migrated a D7 site to D8. Everything seems to work fine, however I am getting this one error message twice every time I save a node and at least once every time I flush all caches:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "default" plugin does not exist. Valid plugin IDs for Drupal\geofield\Plugin\GeofieldBackendManager are: geofield_backend_default in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Of course, I found #3125933: Update to Geofield 1.11 failed, but that was in relation 1.11, I migrated using 1.13 and updated to 1.15 in the meantime. Still the error persists. It even appears, if I disable pre-save conversion, caching or even take the field out of the edit form (disabled).
Right now, I don't see any problems besides being a nuisance to have these errors in my log. But I haven't started, yet, to actually derive coordinates from addresses entered.
I looked into the config file of the single geofield in my system, and it seems to be okay as well, at least it states the obviously correct backend:
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_coordinates
- node.type.page
module:
- geofield
id: node.page.field_coordinates
field_name: field_coordinates
entity_type: node
bundle: nbs
label: Coordinates
description: 'GIS coordinates'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
backend: geofield_backend_default
field_type: geofield
Anything else, I can look at?
Comment | File | Size | Author |
---|---|---|---|
#3 | migrate_map_default_plugin-3153344-3.patch | 1.61 KB | rutiolma |
|
Comments
Comment #2
broonPosting the yml config file actually made me look into the storage yml file of that field, and alas:
Here the backend is only "default" instead of "geofield_backend_default". So, I replaced with the correct backend and imported it:
This was the last time the error appeared. So I guess, this was something related to the migration.
Comment #3
rutiolmaActually there is a problem with the migration of geofields so I'm reopening this instead of creating a new issue.
The problem is that in D7 a geofield serialized data settings has a "backend: default" property and this "default" plugin was replaced by "geofield_backend_default" in the D8 version so we must map it.
I created the attached patch to fix this issue with the migration.
Comment #4
RdeBoer@Paul Broon, @rutiolma: Nice work! Between the two of you, you've covered all bases.
Comment #5
2phaWorks for me
Comment #7
itamair CreditAttribution: itamair as a volunteer commentedThanks all here. #3 patch committed into 8.x-1.x-dev, is going to be part of the next (incoming) Geofield module release.