fizcs3 β created an issue.
alexpott β credited fizcs3 β .
Have had this module installed for quite some time without any issue...
But now, have had a random WSOD a couple times recently, out of nowhere, for which we too are finding these errors in the log...
Cannot seem to figure out how to reproduce it either -- but, clearing cache does fix the issue...
We have multi-site running and it didn't happen on all sites, just on one site WSOD of the many, still obviously not good but odd...
To confirm that this is not just an Acquia issue. We are running on Platform.sh.
This is on D10.2.9, PHP 8.2.24, running view_modes_display
3.0.0.
Current stack trace below:
#0 /app/web/core/lib/Drupal/Core/Menu/LocalTaskDefault.php(45): Drupal\Core\Routing\RouteProvider->getRouteByName('entity.node.vmd...')
#1 /app/web/core/lib/Drupal/Core/Menu/LocalTaskManager.php(310): Drupal\Core\Menu\LocalTaskDefault->getRouteParameters(Object(Drupal\Core\Routing\CurrentRouteMatch))
#2 /app/web/core/lib/Drupal/Core/Menu/LocalTaskManager.php(358): Drupal\Core\Menu\LocalTaskManager->getTasksBuild('entity.node.can...', Object(Drupal\Core\Cache\CacheableMetadata))
#3 /app/web/core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php(96): Drupal\Core\Menu\LocalTaskManager->getLocalTasks('entity.node.can...', 0)
#4 /app/web/core/modules/block/src/BlockViewBuilder.php(171): Drupal\Core\Menu\Plugin\Block\LocalTasksBlock->build()
#5 [internal function]: Drupal\block\BlockViewBuilder::preRender(Array)
#6 /app/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(111): call_user_func_array('Drupal\\block\\Bl...', Array)
#7 /app/web/core/lib/Drupal/Core/Render/Renderer.php(859): Drupal\Core\Render\Renderer->doTrustedCallback('Drupal\\block\\Bl...', Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
#8 /app/web/core/lib/Drupal/Core/Render/Renderer.php(421): Drupal\Core\Render\Renderer->doCallback('#pre_render', 'Drupal\\block\\Bl...', Array)
#9 /app/web/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender(Array)
#10 /app/web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false)
#11 /app/web/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array)
#12 /app/private/adecsite/twig/670b32b94fd89_page.html.twig_2X1IALXjLooWmJrE6dA_4L3tt/6Ou8NtTzKDU2-NFHNL7_1T1ebA7uTPt8E4ELy4QrO4o.php(216): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#13 /app/vendor/twig/twig/src/Template.php(393): __TwigTemplate_b431ca3ee6eb7c761b4f2fad183b900f->doDisplay(Array, Array)
#14 /app/vendor/twig/twig/src/Template.php(349): Twig\Template->yield(Array, Array)
#15 /app/vendor/twig/twig/src/Template.php(364): Twig\Template->display(Array)
#16 /app/vendor/twig/twig/src/TemplateWrapper.php(35): Twig\Template->render(Array)
#17 /app/web/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render(Array)
#18 /app/web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('themes/custom/c...', Array)
#19 /app/web/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render('page', Array)
#20 /app/web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false)
#21 /app/web/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array)
#22 /app/private/adecsite/twig/670b32b94fd89_html.html.twig_dnhZIHgLGwuoEu4k9Dv5lPDYn/STNTNqVGYNWeznYXzh_AVbeFl_N3GddjZDfbiE9feh0.php(178): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#23 /app/vendor/twig/twig/src/Template.php(393): __TwigTemplate_d2422b6a6e8c6d89ef25747246f799bb->doDisplay(Array, Array)
#24 /app/vendor/twig/twig/src/Template.php(349): Twig\Template->yield(Array, Array)
#25 /app/vendor/twig/twig/src/Template.php(364): Twig\Template->display(Array)
#26 /app/vendor/twig/twig/src/TemplateWrapper.php(35): Twig\Template->render(Array)
#27 /app/web/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render(Array)
#28 /app/web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('themes/custom/c...', Array)
#29 /app/web/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render('html', Array)
#30 /app/web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false)
#31 /app/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(158): Drupal\Core\Render\Renderer->render(Array)
#32 /app/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#33 /app/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(153): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#34 /app/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))
#35 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#36 /app/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#37 /app/vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#38 /app/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#39 /app/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#40 /app/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#41 /app/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#42 /app/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(191): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#43 /app/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(128): Drupal\page_cache\StackMiddleware\PageCache->fetch(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#44 /app/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(82): Drupal\page_cache\StackMiddleware\PageCache->lookup(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#45 /app/vendor/asm89/stack-cors/src/Cors.php(53): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#46 /app/web/core/modules/ban/src/BanMiddleware.php(50): Asm89\Stack\Cors->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#47 /app/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#48 /app/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#49 /app/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#50 /app/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#51 /app/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#52 /app/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#53 {main}
FizCS3 β created an issue.
Thank you @seanB, just ran into this issue with redirects going to 404 page that have language not specified / "-All languages-"...
Confirming that patch #2 fixes this for me, and applies successfully to:
* fast_404:8.x-3.3
* Drupal 10.2.7
* PHP 8.2.19
We've had the patch from MR8 running for some time and is seeming good, currently applying to Drupal 10.2.7 with Coffee 8.x-1.4.
Help to performance so that the system is not unnecessarily scouring the site for all admin link options every time.
Thank you @hanoii
We did also have an very odd issue downloading a zip archive whereas it would skip submissions. It didn't happen for all webforms, and really can't characterize it any better than it involved choosing:
* Export Format: PDF documents
* Download uploaded files: checked/yes
All I can say is applied the small patch in #8 and it fixed it.
Am confirming the patch applies on Drupal 10.2.6 with webform 6.2.2.
Thank you @hargurpreet
I am seeing this issue come up when editing the Layout of a Menu or a custom Block entity, such as through urls like:
/admin/structure/menu/item/2/edit/layout
/admin/content/block/157/layout
The "Display options", "Save" and the little close button (for the sidebar) do not appear like they normally would when editing a node layout (i.e /node/1187/layout
is fine) ...
which is quite rough because the Configure Block circle button for blocks on the right side of the page is hidden by that sidebar being overtop. No way to close it besides going into devtools and adding a hidden class to that section...
So, evidently the issue seems to deal with using Layout Builder on a front-end theme (fine) vs the admin theme (not fine)...
I am using:
* Core 10.2.6
* Gin 3.0-rc10
* Gin LB 1.0.0-rc7
* Gin TOOLBAR 1.0-rc5
All above currently latest available...
FizCS3 β created an issue.
I've just come across a similar issue...
For me, was in Layout Builder, "Add Block" of a predefined View display block, and accidentally entered "00" (instead of "99") into the "items per block" field and clicked the Update button. Nothing happened and it kept me on the Configure Block modal. Turns out it threw a similar error to the system log when I looked there, which my trace starts with:
DivisionByZeroError: Division by zero in Drupal\Core\Pager\Pager->setTotalPages() (line 78 of /var/www/html/web/core/lib/Drupal/Core/Pager/Pager.php)
#0 /var/www/html/web/core/lib/Drupal/Core/Pager/Pager.php(51): Drupal\Core\Pager\Pager->setTotalPages('5', '00')
#1 /var/www/html/web/core/lib/Drupal/Core/Pager/PagerManager.php(56): Drupal\Core\Pager\Pager->__construct('5', '00', 0)
#2 /var/www/html/web/core/modules/views/src/Plugin/views/pager/SqlBase.php(333): Drupal\Core\Pager\PagerManager->createPager('5', '00', 0)
#3 /var/www/html/web/core/modules/views/src/Plugin/views/query/Sql.php(1551): Drupal\views\Plugin\views\pager\SqlBase->updatePageInfo()
#4 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1441): Drupal\views\Plugin\views\query\Sql->execute(Object(Drupal\views\ViewExecutable))
#5 /var/www/html/web/core/modules/views/src/ViewExecutable.php(1469): Drupal\views\ViewExecutable->execute(NULL)
...
The above patch makes sense to me, which contains a very reasonable validation of the $limit variable to assure it isn't zero.
I applied the patch to D10.2.5 and fixes my issue, of user error causing an unnecessarily bad system error.
Following up...
Just tried this on a fresh install of Drupal 10.2.3, and confirming that this remains a bug in core.
Also tried adding Article's Tags taxonomy field as a contextual filter on that view block, and it actually does not appear at all on the layout builder Configure block modal... while the List(Text) field filter does, but gives "-None-" for options.
tedbow β credited FizCS3 β .
FizCS3 β created an issue.
Spelling: "Hotlining" -> "Hotlinking"
Patch attached.
FizCS3 β created an issue.