- 🇮🇳India shalini_jha
Hi, I was facing the same issue, and after applying the mentioned patch, it worked for me. Thank you!
Rendering the build array of a Address field with the SimpleGMapAddressFormatter
formatter throw the exception below :
LogicException: A stray renderRoot() invocation is causing bubbling of attached assets to break. in Drupal\Core\Render\Renderer->renderRoot() (line 138 of core/lib/Drupal/Core/Render/Renderer.php).
Drupal\simple_gmap\Plugin\Field\FieldFormatter\SimpleGMapAddressFormatter->viewElements(Object, 'en') (Line: 89)
Drupal\Core\Field\FormatterBase->view(Object) (Line: 285
Change the code below
$address_html = $this->getRenderer()->renderRoot($elements[$delta]);
To
$address_html = $this->getRenderer()->render($elements[$delta]);
Needs review
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Hi, I was facing the same issue, and after applying the mentioned patch, it worked for me. Thank you!