Fatal error: Type of Drupal\geolocation_geometry\Plugin\Field\FieldFormatter\GeolocationGeometryMapFormatter::$dataProviderId must be string (as in class Drupal\geolocation\Plugin\Field\FieldFormatter\GeolocationMapFormatterBase)

Created on 6 June 2023, over 1 year ago
Updated 20 June 2023, over 1 year ago

Hello all,

Problem/Motivation

After installing the Geolocation - Geometry - Demo submodule, I tried to go to /admin/structure/types/manage/geolocation_geometry_demo/form-display and I've received the error message below with WSOD.

Fatal error: Type of Drupal\geolocation_geometry\Plugin\Field\FieldFormatter\GeolocationGeometryMapFormatter::$dataProviderId must be string (as in class Drupal\geolocation\Plugin\Field\FieldFormatter\GeolocationMapFormatterBase) in /var/www/html/web/modules/contrib/geolocation/modules/geolocation_geometry/src/Plugin/Field/FieldFormatter/GeolocationGeometryMapFormatter.php on line 27

What could be a trigger for this bug?

Best,
Orkut

🐛 Bug report
Status

Fixed

Version

4.0

Component

Geometry

Created by

🇹🇷Turkey orkut murat yılmaz Istanbul

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

Comments & Activities

  • Issue created by @orkut murat yılmaz
  • Status changed to Needs review over 1 year ago
  • Status changed to Needs work over 1 year ago
  • 🇹🇷Turkey orkut murat yılmaz Istanbul

    Thank you @Adil_Siddiqui, your patch works on /admin/structure/types/manage/geolocation_geometry_demo/form-display page, but when I go to admin/structure/types/manage/geolocation_geometry_demo/display page, I'm facing WSOD again, with the error code below:

    Fatal error: Declaration of Drupal\geolocation_geometry\Plugin\Field\FieldFormatter\GeolocationGeometryMapFormatter::settingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\geolocation\Plugin\Field\FieldFormatter\GeolocationMapFormatterBase::settingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state): array in /var/www/html/web/modules/contrib/geolocation/modules/geolocation_geometry/src/Plugin/Field/FieldFormatter/GeolocationGeometryMapFormatter.php on line 37

    Both errors are related, so that I'm not opening a new issue.

    Best,
    Orkut

  • Status changed to Needs review over 1 year ago
  • 🇮🇳India Adil_Siddiqui

    Patch updated with both the above issues resolved.

  • Status changed to Fixed over 1 year ago
  • 🇩🇪Germany christianadamski Berlin, Germany

    Thanks! Lot's more to do in v4

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

Production build 0.71.5 2024