cannot add and edit entity with geofield
cannot uninstall geofield map

please help!

error log as:

ArgumentCountError: Too few arguments to function Drupal\\geofield\\Plugin\\Field\\FieldWidget\\GeofieldBaseWidget::__construct(), 5 passed in html/modules/contrib/geofield_map/src/Plugin/Field/FieldWidget/GeofieldMapWidget.php on line 190 and exactly 7 expected in html/modules/contrib/geofield/src/Plugin/Field/FieldWidget/GeofieldBaseWidget.php on line 49 #0 html/modules/contrib/geofield_map/src/Plugin/Field/FieldWidget/GeofieldMapWidget.php(190): Drupal\\geofield\\Plugin\\Field\\FieldWidget\\GeofieldBaseWidget->__construct('geofield_map', Array, Object(Drupal\\field\\Entity\\FieldConfig), Array, Array)\n#1 html/modules/contrib/geofield_map/src/Plugin/Field/FieldWidget/GeofieldMapWidget.php(218): Drupal\\geofield_map\\Plugin\\Field\\FieldWidget\\GeofieldMapWidget->__construct('geofield_map', Array, Object(Drupal\\field\\Entity\\FieldConfig), Array, Array, Object(Drupal\\Core\\Config\\ConfigFactory), Object(Drupal\\Core\\StringTranslation\\TranslationManager), Object(Drupal\\Core\\Render\\Renderer), Object(Drupal\\Core\\Entity\\EntityFieldManager), Object(Drupal\\Core\\Utility\\LinkGenerator), Object(Drupal\\geofield\\WktGenerator))\n#2 html/core/lib/Drupal/Core/Field/WidgetPluginManager.php(122): Drupal\\geofield_map\\Plugin\\Field\\FieldWidget\\GeofieldMapWidget::create(Object(Drupal\\Core\\DependencyInjection\\Container), Array, 'geofield_map', Array)\n#3 html/core/lib/Drupal/Core/Field/WidgetPluginManager.php(110): Drupal\\Core\\Field\\WidgetPluginManager->createInstance('geofield_map', Array)\n#4 html/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php(144): Drupal\\Core\\Field\\WidgetPluginManager->getInstance(Array)\n#5 html/core/lib/Drupal/Core/Entity/EntityDisplayBase.php(466): Drupal\\Core\\Entity\\Entity\\EntityFormDisplay->getRenderer('field_programsg...')\n#6 html/core/lib/Drupal/Core/Config/ConfigManager.php(470): Drupal\\Core\\Entity\\EntityDisplayBase->onDependencyRemoval(Array)\n#7 html/core/lib/Drupal/Core/Config/ConfigManager.php(333): Drupal\\Core\\Config\\ConfigManager->callOnDependencyRemoval(Object(Drupal\\Core\\Entity\\Entity\\EntityFormDisplay), Array, 'module', Array)\n#8 html/core/lib/Drupal/Core/Config/Entity/ConfigDependencyDeleteFormTrait.php(43): Drupal\\Core\\Config\\ConfigManager->getConfigEntitiesToChangeOnDependencyRemoval('module', Array)\n#9 html/core/modules/system/src/Form/ModulesUninstallConfirmForm.php(146): Drupal\\system\\Form\\ModulesUninstallConfirmForm->addDependencyListsToForm(Array, 'module', Array, Object(Drupal\\Core\\Config\\ConfigManager), Object(Drupal\\Core\\Entity\\EntityManager))\n#10 [internal function]: Drupal\\system\\Form\\ModulesUninstallConfirmForm->buildForm(Array, Object(Drupal\\Core\\Form\\FormState))\n#11 html/core/lib/Drupal/Core/Form/FormBuilder.php(514): call_user_func_array(Array, Array)\n#12 html/core/lib/Drupal/Core/Form/FormBuilder.php(271): Drupal\\Core\\Form\\FormBuilder->retrieveForm('system_modules_...', Object(Drupal\\Core\\Form\\FormState))\n#13 html/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\\Core\\Form\\FormBuilder->buildForm('system_modules_...', Object(Drupal\\Core\\Form\\FormState))\n#14 [internal function]: Drupal\\Core\\Controller\\FormController->getContentResult(Object(Symfony\\Component\\HttpFoundation\\Request), Object(Drupal\\Core\\Routing\\RouteMatch))\n#15 html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)\n#16 html/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#17 html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\\Core\\Render\\Renderer->executeInRenderContext(Object(Drupal\\Core\\Render\\RenderContext), Object(Closure))\n#18 html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)\n#19 [internal function]: Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#20 html/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array)\n#21 html/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#22 html/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#23 html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\\Core\\StackMiddleware\\Session->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#24 html/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#25 html/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\\page_cache\\StackMiddleware\\PageCache->pass(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#26 html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\\page_cache\\StackMiddleware\\PageCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#27 html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#28 html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#29 html/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\\StackedHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#30 html/index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#31 {main}, referer: https://wangjueju.cn/admin/modules/uninstall

Comments

sealionking created an issue. See original summary.

itamair’s picture

Ehi ... it's clearly highlighted (even in the project home page) that:

Alert !

Since 8.x-1.40 version, Geofield Map module requires (depend on) Geofield 8.x-1.0-beta1 version, and older.
Previous versions will still require (and properly work only with) Geofield 8.x-1.0-alpha* versions.

Are you complying to these requirements?
Why are you still using the 8.x-1.35 version of Geofield Map module?
You should really upgrade to the latest release.
If not, you cannot ask for any help for any malfunctions ...

itamair’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)
itamair’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)