errors when trying to resolve to the map

Created on 8 March 2023, over 1 year ago
Updated 14 March 2023, over 1 year ago

Problem/Motivation

I have it working in node form. But I get errors when trying to resolve to the map field in profile form:

The website encountered an unexpected error. Please try again later.

LogicException: Form errors cannot be set after form validation has finished. in Drupal\Core\Form\FormState->setErrorByName() (line 1080 of core/lib/Drupal/Core/Form/FormState.php).

Drupal\address_js_geocoder\Plugin\Field\FieldWidget\AddressGeocoder->requestGeocodeCallback()
call_user_func_array() (Line: 69)
Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse() (Line: 109)
Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException()
call_user_func() (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 229)
Symfony\Component\HttpKernel\HttpKernel->handleThrowable() (Line: 92)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 68)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->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: 23)
Stack\StackedHttpKernel->handle() (Line: 718)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Steps to reproduce

Enable in fields in profile. Edit new or existing profile and fill address and push button resolve in map.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇪🇸Spain aleix

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

Comments & Activities

Production build 0.71.5 2024