Error upgrading to 2.0.0 from beta3

Created on 6 January 2024, over 1 year ago

Problem/Motivation

drush updb
--------- ------------------------ ------------- ------------------------
Module Update ID Type Description
--------- ------------------------ ------------- ------------------------
address default_widget_wrapper post-update Add the "Wrapper type"
setting to the default
widget.
--------- ------------------------ ------------- ------------------------

> [notice] Update started: address_post_update_default_widget_wrapper
> [error] The "geolocation_leaflet" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\WidgetPluginManager are: address_country_default, address_default, address_zone_default, entity_reference_autocomplete_id, chart_config_default, comment_default, moderation_state_default, cshs, datetime_default, datetime_datelist, datetime_range_separate_inputs_flatpickr, datetime_flatpickr, datetime_range_flatpickr, daterange_default, daterange_datelist, entity_browser_entity_reference, entity_browser_file, entity_reference_revisions_autocomplete, file_generic, fontawesome_icon_widget, geolocation_latlng, geolocation_map, geolocation_entity_reference, geolocation_geometry_widget_leaflet, inline_entity_form_complex_table_view_mode, image_image, image_widget_crop, inline_entity_form_simple, inline_entity_form_complex, layout_builder_widget, link_default, linkit, markup, markup_twig, oembed_textfield, media_library_widget, name_default, path, radiostoslider, readonly_field_widget, serial_default_widget, simple_percentage_default_widget, smartdate_only, smartdate_datelist, smartdate_inline, smartdate_timezone, smartdate_default, telephone_default, text_textarea_with_summary, text_textarea, text_textfield, viewfield_select, viewsreference_select, viewsreference_autocomplete, paragraphs, entity_reference_paragraphs, datetime_timestamp, language_select, entity_reference_autocomplete, options_select, string_textarea, number, boolean_checkbox, email_default, entity_reference_autocomplete_tags, uri, string_textfield, options_buttons
> [error] Update failed: address_post_update_default_widget_wrapper
[error] Update aborted by: address_post_update_default_widget_wrapper
[error] Finished performing updates.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇦🇹Austria maxilein

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @maxilein
  • 🇦🇹Austria maxilein

    Also happens with latest dev.

    Had to uninstall geolocation_leaflet submodule. Then the update script worked.

  • 🇦🇹Austria maxilein

    Then the content type containing the field broke the nodes.

    The website encountered an unexpected error. Try again later.
    
    TypeError: Cannot assign null to property Drupal\geolocation\Plugin\Field\FieldFormatter\GeolocationMapFormatterBase::$mapProvider of type Drupal\geolocation\MapProviderInterface in Drupal\geolocation\Plugin\Field\FieldFormatter\GeolocationMapFormatterBase->__construct() (line 55 of modules/contrib/geolocation/src/Plugin/Field/FieldFormatter/GeolocationMapFormatterBase.php).
    
    Drupal\geolocation\Plugin\Field\FieldFormatter\GeolocationMapFormatterBase::create() (Line: 64)
    Drupal\Core\Field\FormatterPluginManager->createInstance() (Line: 126)
    Drupal\Core\Field\FormatterPluginManager->getInstance() (Line: 210)
    Drupal\Core\Entity\Entity\EntityViewDisplay->getRenderer() (Line: 241)
    Drupal\Core\Entity\Entity\EntityViewDisplay->buildMultiple() (Line: 269)
    Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildMultiple() (Line: 339)
    Drupal\Core\Entity\EntityViewBuilder->buildComponents() (Line: 24)
    Drupal\node\NodeViewBuilder->buildComponents() (Line: 281)
    Drupal\Core\Entity\EntityViewBuilder->buildMultiple() (Line: 238)
    Drupal\Core\Entity\EntityViewBuilder->build()
    call_user_func_array() (Line: 111)
    Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 858)
    Drupal\Core\Render\Renderer->doCallback() (Line: 421)
    Drupal\Core\Render\Renderer->doRender() (Line: 240)
    Drupal\Core\Render\Renderer->render() (Line: 238)
    Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627)
    Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 239)
    Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128)
    Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
    Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
    call_user_func() (Line: 111)
    Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
    Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
    Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
    Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
    Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
    Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
    Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
    Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
    Drupal\Core\DrupalKernel->handle() (Line: 19)
    
  • 🇦🇹Austria maxilein

    Only after re-enabling the geolocation_leaflet the nodes worked again.

    So there is also something wrong with the uninstaller.

  • 🇩🇪Germany christianadamski Berlin, Germany
  • 🇵🇰Pakistan hmdnawaz

    What should be the workaround then? Which settings do we need now? Is there any documentation?

  • 🇩🇪Germany christianadamski Berlin, Germany

    There are unified geolocation_map formatter/widget now for all supported Map providers. I will work on v3-v4 update soon.

Production build 0.71.5 2024