hi, after upgrade to version 10 leaflet i got his error, anyone can help

Issue fork leaflet-3324271

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nor sairi created an issue. See original summary.

nor sairi’s picture

Title: Error: Call to a member function render() on null in Drupal\leaflet_views\Plugin\views\style\LeafletMap->render() (line 993 of /var/www/html/esiar/web/modules/contrib/leaflet/modules/leaflet_views/src/Plugin/views/style/LeafletMap.php) » member function render() error after upgrade
nor sairi’s picture

Message 	Error: Call to a member function render() on null in Drupal\leaflet_views\Plugin\views\style\LeafletMap->render() (line 993 of /var/www/html/esiar/web/modules/contrib/leaflet/modules/leaflet_views/src/Plugin/views/style/LeafletMap.php)

#0 /var/www/html/esiar/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2170): Drupal\leaflet_views\Plugin\views\style\LeafletMap->render()
#1 /var/www/html/esiar/web/core/modules/views/src/ViewExecutable.php(1536): Drupal\views\Plugin\views\display\DisplayPluginBase->render()
#2 /var/www/html/esiar/web/core/modules/views/src/Plugin/views/display/Attachment.php(48): Drupal\views\ViewExecutable->render()
#3 /var/www/html/esiar/web/core/modules/views/src/ViewExecutable.php(1633): Drupal\views\Plugin\views\display\Attachment->execute()
#4 /var/www/html/esiar/web/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable->executeDisplay()
#5 [internal function]: Drupal\views\Element\View::preRenderViewElement()
#6 /var/www/html/esiar/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array()
#7 /var/www/html/esiar/web/core/lib/Drupal/Core/Render/Renderer.php(772): Drupal\Core\Render\Renderer->doTrustedCallback()
#8 /var/www/html/esiar/web/core/lib/Drupal/Core/Render/Renderer.php(363): Drupal\Core\Render\Renderer->doCallback()
#9 /var/www/html/esiar/web/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Render\Renderer->doRender()
#10 /var/www/html/esiar/web/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender()
#11 /var/www/html/esiar/web/core/lib/Drupal/Core/Template/TwigExtension.php(479): Drupal\Core\Render\Renderer->render()
#12 /var/www/html/esiar/vendor/twig/twig/src/Environment.php(418) : eval()'d code(96): Drupal\Core\Template\TwigExtension->escapeFilter()
#13 /var/www/html/esiar/vendor/twig/twig/src/Template.php(405): __TwigTemplate_b481f0b34e5480fbe46e402bfd705267->doDisplay()
#14 /var/www/html/esiar/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling()
#15 /var/www/html/esiar/vendor/twig/twig/src/Template.php(390): Twig\Template->display()
#16 /var/www/html/esiar/web/core/themes/engines/twig/twig.engine(55): Twig\Template->render()
#17 /var/www/html/esiar/web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template()
#18 /var/www/html/esiar/web/core/lib/Drupal/Core/Render/Renderer.php(422): Drupal\Core\Theme\ThemeManager->render()
#19 /var/www/html/esiar/web/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Render\Renderer->doRender()
#20 /var/www/html/esiar/web/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender()
#21 /var/www/html/esiar/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(241): Drupal\Core\Render\Renderer->render()
#22 /var/www/html/esiar/web/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#23 /var/www/html/esiar/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(242): Drupal\Core\Render\Renderer->executeInRenderContext()
#24 /var/www/html/esiar/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(132): Drupal\Core\Render\MainContent\HtmlRenderer->prepare()
#25 /var/www/html/esiar/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#26 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#27 /var/www/html/esiar/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#28 /var/www/html/esiar/vendor/symfony/http-kernel/HttpKernel.php(174): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#29 /var/www/html/esiar/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#30 /var/www/html/esiar/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#31 /var/www/html/esiar/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#32 /var/www/html/esiar/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#33 /var/www/html/esiar/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#34 /var/www/html/esiar/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#35 /var/www/html/esiar/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#36 /var/www/html/esiar/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#37 /var/www/html/esiar/web/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle()
#38 /var/www/html/esiar/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#39 {main}

.
karanpagare’s picture

Status: Active » Needs review
StatusFileSize
new945 bytes

Adding patch can review.

nor sairi’s picture

I have tested the patch but the same error comes out.

itamair’s picture

Title: member function render() error after upgrade » Error on #rendered_view_fields popup option after upgrade

  • itamair committed 48e06d0 on 10.0.x
    Issue #3324271 by nor sairi, karanpagare, itamair: Error on #...
itamair’s picture

Status: Needs review » Fixed

Thanks a lot @nor sairi ... nice catch.
The attached patch fixes all this,
so as new 10.0.1 release just deployed ...

itamair’s picture

StatusFileSize
new1.05 KB

Status: Fixed » Closed (fixed)

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