The issue mentioned in #26 seems to be closed, but the main problem mentioned above still persists when an anonymous user visits the site.
Tested versions
Drupal : 10.3.2
Message Subscribe : 8.x-1.3
Flag: 8.x-4.x-devLogicException: An anonymous user must be identified by session ID. in Drupal\flag\FlagService->getAllEntityFlaggings() (line 223 of /var/www/html/d10site/web/modules/contrib/flag/src/FlagService.php).
#0 /var/www/html/d10site/web/modules/contrib/message_subscribe/message_subscribe_email/message_subscribe_email.module(46): Drupal\flag\FlagService->getAllEntityFlaggings() #1 [internal function]: message_subscribe_email_flag_action_access() #2 /var/www/html/d10site/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(416): call_user_func_array() #3 /var/www/html/d10site/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(395): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() #4 /var/www/html/d10site/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(415): Drupal\Core\Extension\ModuleHandler->invokeAllWith() #5 /var/www/html/d10site/web/modules/contrib/flag/src/FlagType/FlagTypeBase.php(175): Drupal\Core\Extension\ModuleHandler->invokeAll() #6 /var/www/html/d10site/web/modules/contrib/flag/src/Plugin/Flag/EntityFlagType.php(315): Drupal\flag\FlagType\FlagTypeBase->actionAccess() #7 /var/www/html/d10site/web/modules/contrib/flag/src/Plugin/Flag/UserFlagType.php(145): Drupal\flag\Plugin\Flag\EntityFlagType->actionAccess() #8 /var/www/html/d10site/web/modules/contrib/flag/src/Entity/Flag.php(343): Drupal\flag\Plugin\Flag\UserFlagType->actionAccess() #9 /var/www/html/d10site/web/modules/contrib/flag/src/ActionLink/ActionLinkTypeBase.php(99): Drupal\flag\Entity\Flag->actionAccess() #10 /var/www/html/d10site/web/modules/contrib/flag/src/Plugin/ActionLink/AJAXactionLink.php(80): Drupal\flag\ActionLink\ActionLinkTypeBase->getAsFlagLink() #11 /var/www/html/d10site/web/modules/contrib/flag/src/FlagLinkBuilder.php(55): Drupal\flag\Plugin\ActionLink\AJAXactionLink->getAsFlagLink() #12 /var/www/html/d10site/web/modules/contrib/flag_anon/src/FlagAnonLinkBuilder.php(87): Drupal\flag\FlagLinkBuilder->build() #13 [internal function]: Drupal\flag_anon\FlagAnonLinkBuilder->build() #14 /var/www/html/d10site/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(113): call_user_func_array() #15 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(870): Drupal\Core\Render\Renderer->doTrustedCallback() #16 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(411): Drupal\Core\Render\Renderer->doCallback() #17 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender() #18 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(165): Drupal\Core\Render\Renderer->render() #19 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() #20 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(164): Drupal\Core\Render\Renderer->executeInRenderContext() #21 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(191): Drupal\Core\Render\Renderer->renderInIsolation() #22 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(723): Drupal\Core\Render\Renderer->doRenderPlaceholder() #23 [internal function]: Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() #24 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(731): Fiber->start() #25 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(608): Drupal\Core\Render\Renderer->replacePlaceholders() #26 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender() #27 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(153): Drupal\Core\Render\Renderer->render() #28 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() #29 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/Renderer.php(152): Drupal\Core\Render\Renderer->executeInRenderContext() #30 /var/www/html/d10site/web/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(288): Drupal\Core\Render\Renderer->renderRoot() #31 /var/www/html/d10site/web/core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php(74): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->renderPlaceholders() #32 /var/www/html/d10site/web/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments() #33 [internal function]: Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond() #34 /var/www/html/d10site/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func() #35 /var/www/html/d10site/vendor/symfony/http-kernel/HttpKernel.php(214): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() #36 /var/www/html/d10site/vendor/symfony/http-kernel/HttpKernel.php(202): Symfony\Component\HttpKernel\HttpKernel->filterResponse() #37 /var/www/html/d10site/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw() #38 /var/www/html/d10site/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle() #39 /var/www/html/d10site/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle() #40 /var/www/html/d10site/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle() #41 /var/www/html/d10site/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle() #42 /var/www/html/d10site/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(191): Drupal\big_pipe\StackMiddleware\ContentLength->handle() #43 /var/www/html/d10site/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(128): Drupal\page_cache\StackMiddleware\PageCache->fetch() #44 /var/www/html/d10site/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(82): Drupal\page_cache\StackMiddleware\PageCache->lookup() #45 /var/www/html/d10site/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle() #46 /var/www/html/d10site/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() #47 /var/www/html/d10site/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() #48 /var/www/html/d10site/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle() #49 /var/www/html/d10site/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle() #50 /var/www/html/d10site/web/index.php(19): Drupal\Core\DrupalKernel->handle() #51 {main}
There is a loop between the issues. Each one references each other and at the end of the day, it does not provide any solution. There is no different situation for Version 2. The problem still persists.By the way, patch in #24 is not applied and does not work.
- πΊπΈUnited States jmester13
I have re-rolled the existing patch as some new code as been added.
- πΊπΈUnited States bluegeek9
This issue seems to be the same as π "An anonymous user must be identified by session ID" crash on Drupal 10 Active .
- Merge request !32Issue #2880521 by bluegeek9: "LogicException: An anonymous user must be identifed by session ID." β (Merged) created by bluegeek9
-
bluegeek9 β
committed bec8787c on 2.0.x
Issue #2880521 by bluegeek9, zanvidmar, jmester13, perfectcu.be: "...
-
bluegeek9 β
committed bec8787c on 2.0.x
Automatically closed - issue fixed for 2 weeks with no activity.