I just updated drupal today from 8.8.4 to 8.8.5
When I launch after composer update -> drush updatedb :

[notice] Update started: admin_toolbar_tools_update_8001
>  [error]  The "default" plugin does not exist. Valid plugin IDs for Drupal\geofield\Plugin\GeofieldBackendManager are: geofield_backend_default
>  [error]  Update failed: admin_toolbar_tools_update_8001

compose update has updated geoflied before :

Updating drupal/geofield (1.8.0 => 1.11.0): Downloading (100%)
without asking update db operations...

Do you think it's due to geofield module or admin_toolbar ?
Regards,

Comments

zorax created an issue. See original summary.

kbrodej’s picture

Priority: Normal » Major

Hey. Encountered the same issue on 8.8.3 only upgrading geofield module. Was updating from 8.x-1.8 to 8.x-1.11, which failed. Downgraded to 8.x-1.10 same thing meanwhile after downgrade to 8.x-1.9 worked.

Also disabled and completely removed admin_toolbars before I updated.

Changing to Major as page is broken after update.

BR.

itamair’s picture

Status: Active » Postponed (maintainer needs more info)

it looks definitely an admin_toolbar_tools issue: https://www.drupal.org/project/admin_toolbar/issues/2833121
Please try to follow what advised here: https://www.drupal.org/project/admin_toolbar/issues/2833121#comment-1182...
and confirm ...

rick hood’s picture

[error] The "default" plugin does not exist. Valid plugin IDs for Drupal\geofield\Plugin\GeofieldBackendManager are: geofield_backend_default

^ I am encountering what seems like a similar error during a D7 to D8 migration of a content type.

D8 version 8.8.5
D7 Geofield 7.x-2.4
Drush version : 9.7.2

Errors I see when drush migrate-import --group yig_node_news

3/55 [=>--------------------------]   5% [error]  Cannot change the field type for an existing field storage. (/Users/rick/Sites/yig-d8/yig-drupal/web/core/modules/field/src/Entity/FieldStorageConfig.php:370)
6/55 [===>------------------------]  10% [error]  The "default" plugin does not exist. Valid plugin IDs for Drupal\geofield\Plugin\GeofieldBackendManager are: geofield_backend_default (/Users/rick/Sites/yig-d8/yig-drupal/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php:53)
7/55 [===>------------------------]  12% [error]  The "default" plugin does not exist. Valid plugin IDs for Drupal\geofield\Plugin\GeofieldBackendManager are: geofield_backend_default (/Users/rick/Sites/yig-d8/yig-drupal/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php:53)
 
[notice] Processed 55 items (52 created, 0 updated, 3 failed, 0 ignored) - done with 'upgrade_yig_field'

(The second 2 of the above errors are related to geofield, the top one is not)

I get this error whether admin_toolbar is enabled or not.

The failure is ruing the upgrade_yig_field the config of that is shown below:

langcode: en
status: true
dependencies: {  }
id: upgrade_yig_field
class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration
field_plugin_method: alterFieldMigration
cck_plugin_method: null
migration_tags:
  - 'Drupal 7'
  - Configuration
migration_group: yig_node_news
label: 'Field configuration'
source:
  plugin: d7_field
  constants:
    status: true
    langcode: und
process:
  entity_type:
    0:
      plugin: get
      source: entity_type
    media_migration:
      plugin: static_map
      map:
        file: media
      bypass: true
    paragraphs:
      plugin: static_map
      map:
        field_collection_item: paragraph
        paragraphs_item: paragraph
      bypass: true
  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
        file_entity:
          file_entity: file_entity
        taxonomy_term_reference:
          taxonomy_term_reference: taxonomy_term_reference
        media_image:
          media_image: media_image
        entityreference:
          entityreference: entityreference
        datetime:
          datetime: datetime
        link_field:
          link_field: link_field
        list:
          list: list
        addressfield:
          addressfield: addressfield
        geofield:
          geofield: geofield
        number_default:
          number_default: number_default
  cardinality:
    -
      plugin: get
      source: cardinality
  settings:
    0:
      plugin: d7_field_settings
    file_entity:
      plugin: file_entity_field_settings
    media_image:
      plugin: media_image_field_settings
    field_collection:
      plugin: field_collection_field_settings
destination:
  plugin: 'entity:field_storage_config'
migration_dependencies:
  required: {  }
  optional: {  }
itamair’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

This looks something related to a Drupal core issue.
This seems to face it: https://www.drupal.org/project/drupal/issues/3056633
and the #36 comment looks something to tryout.

Actually nothing might be changed in Geofield in relation to this, because the only @GeofieldBackend plugin present in the module is the "geofield_backend_default" one.

Something further you may try as workaround if #36 doesn't solve and this really does block you (that I hardly believe) is to create a new @GeofieldBackend plugin named "default" into a custom module of you.

rick hood’s picture

Just reporting that #2 worked for me: "downgrade to 8.x-1.9".
After I downgraded from 1.11 to 1.9 I stopped getting error I reported in #4 above during migrate-import and geofield fields successfully migrated from D7 to D8, in that I now see the field_geofield as part of the field list here: /admin/reports/fields
I have not migrated nodes that contains field_geofield, so not sure if all is well for sure yet.

mjgruta’s picture

Status: Closed (won't fix) » Active

I can confirm that #2 also worked from me "downgrade to 8.x-1.9" without disabling admin_toolbar
Can we say that this is an issue with geofield?

itamair’s picture

Ok ... I see. May be this commit changes are causing the issue?
https://git.drupalcode.org/project/geofield/commit/b214a1e#01ab7f00315fb...
https://git.drupalcode.org/project/geofield/commit/b214a1e#01ab7f00315fb...

May someone rollback those changes and see if everything is fixed by it?
(and even better which between them is causing this ...)
Thanks ...

itamair’s picture

Title: Drupal update 8.8.5 failed » Update to Geofield 1.11 failed

  • itamair committed 3e4683b on 8.x-1.x
    Issue #3125933: Update to Geofield 1.11 failed: better handling of...
itamair’s picture

Status: Active » Fixed

Ok got it. Actually the above mentioned Commit brought a better check of the @GeofieldBackend in the GeofieldItem ... but some appropriate handling of exceptions was missing.
Geofield 8.x-1.12 new release fixes all this ...

Good Geofield(ing) to all!

tjtj’s picture

I have this issue in drupal 8.8.5 trying to update to 1.12. The update works, and all the files in geofield are dated april 17, but update says I still have 1.11 installed.

Status: Fixed » Closed (fixed)

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