Closed (outdated)
Project:
Loqate (Address Capture)
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Aug 2019 at 08:50 UTC
Updated:
3 Apr 2026 at 11:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
daiwik.addweb commented@ruchirapingale, Here's the patch for the same, Hope this will help you.
Thanks
Comment #3
baikho commentedVerified this Notice also on HEAD of
dev. Although it may be better first to make the element properly compatible with the Form API in #3027853: Make Loqate element compatible with the Form API.I also get 2 additional Warnings that would need fixing as well:
Warning: Invalid argument supplied for foreach() in Drupal\loqate\Element\WebformAddressLoqate::preRenderWebformCompositeFormElement() (line 32 of /var/www/drupalvm/drupal/web/modules/contrib/loqate/src/Element/WebformAddressLoqate.php) #0 /var/www/drupalvm/drupal/web/core/includes/bootstrap.inc(587): _drupal_error_handler_real(2, 'Invalid argumen...', '/var/www/drupal...', 32, Array) #1 /var/www/drupalvm/drupal/web/modules/contrib/loqate/src/Element/WebformAddressLoqate.php(32): _drupal_error_handler(2, 'Invalid argumen...', '/var/www/drupal...', 32, Array) #2 [internal function]:Warning: array_keys() expects parameter 1 to be array, null given in Drupal\loqate\Element\WebformAddressLoqate::preRenderWebformCompositeFormElement() (line 32 of /var/www/drupalvm/drupal/web/modules/contrib/loqate/src/Element/WebformAddressLoqate.php) #0 /var/www/drupalvm/drupal/web/core/includes/bootstrap.inc(587): _drupal_error_handler_real(2, 'array_keys() ex...', '/var/www/drupal...', 32, Array) #1 [internal function]: _drupal_error_handler(2, 'array_keys() ex...', '/var/www/drupal...', 32, Array) #2 /var/www/drupalvm/drupal/web/modules/contrib/loqate/src/Element/WebformAddressLoqate.php(32): array_keys(NULL) #3 [internal function]: Drupal\loqate\Element\WebformAddressLoqate::preRenderWebformCompositeFormElement(Array) #4 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(378): call_user_func(Array, Array) #5 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(450): Drupal\Core\Render\Renderer->doRender(Array) #6 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #7 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(226): Drupal\Core\Render\Renderer->render(Array, false) #8 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() #9 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(227): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #10 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(117): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #11 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #12 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #13Comment #4
baikho commentedClosing this, as this bug hasn't gained much attention and the
webform_address_loqatehas been deprecated and will be removed in3.x.